BecauseScience
[H]ard|Gawd
- Joined
- Oct 9, 2005
- Messages
- 1,047
The problem with HW raid....how do you know? If i checksummed each datablock into a PostgreSQL server, then I could maybe find some errors. But doing that is way to complex and extremly difficult to keep in sync(if possible at all). Not to mention the lack of self healing That's is why I use ZFS for critical data.
No need to checksum each block. A checksum over each file is enough to detect corruption. It takes one shell command to generate the initial checksums:
Code:
find . -type f -exec sha256sum {} \; > SUMS.txt
And one command to check the files against them:
Code:
sha256sum --check SUMS.txt
The latter can be put into a script that's run by cron each night (or however often you choose.) Another option is to use an intrusion detection package.
Also, if you use ncryptfs for file encryption you can tell it to do file checksums.