I think more information is needed. If you're storing files PAR2 can help. If you're hashing passwords, bcrypt and scrypt should be investigated.
Securing the database against bitrot, etc. would be another question entirely.
https://en.m.wikipedia.org/wiki/ZFS
ZFS is a file system that is available on FreeBSD, and Linux, and more!