I have an application that write files into a specific directory at the FS. This system, under no circumstances, can lose a single written file.
When I have some problem at the HD, like badblocks or blocks bitmap differences, new and even existing files might get corrupted, but the rsync
and the .tar
backup happen normally and I'll know that the file has a problem only when I try to open it.
I need a way to know that a file get corrupted as soon as it happens or, better yet, know the disk has a problem before it brakes my files.
I was thinking to keep a file with the hash of each file and check it every day, but it will spend more time than I have. Another idea would be put those files into the SGDB, but I wonder if there is a better way to solve this.
I'm pretty sure that I'm missing something, but I'm blind.
System: Debian 6
and Debian 7
32bit
and 64bit
(the application is installed in many places).
All systems are ext4
(is there any other more trustful?)
ext4
and an unreliable hard disk with unrecoverable errors; I installedZFS
in "raidz" mode. After a week the unreliable harddisk gave up, and I could still continue to work (in "degraded" state), and it was easy to replace the defect disk andZFS
incorporated the new disk without problem.)