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.
Debian 6 and
64bit (the application is installed in many places).
All systems are
ext4 (is there any other more trustful?)