Le 2016-07-20 13:52, Miles Keaton a écrit :
Got a fileserver with a few terabytes of important personal media, like
all
old home movies, baby photos, etc. Files that I want my family to have
access to when I die.
Really it's more of a file archive. A backup. Just rsync + ssh.
Serving
it isn't the point. Just preserving it forever.
(It's all unencrypted. It's not that kind of private. Private and
offline
from the outside world, but public within the family.)
For years it's been on a Synology, Linux ext4 filesystem. Now I'm
making a
new clone of it (new PC) to be in a different location.
I assumed I'd use FreeBSD + ZFS because of ZFS's checksum features.
But
really I love and prefer OpenBSD for everything else, and don't want
any
other ZFS features : just that checksum.
So I figure if I use OpenBSD + softraid RAID 5 (across 4 disks) and
then
write my own little shell script to track the MD5 (find . -type f -exec
md5
{} \;) whenever I make changes, that should be enough to see if a file
has
been changed due to disk corruption.
(Which makes me realize I don't know a damn thing about disk
corruption,
only that it's happened a few times in the past. The occasional JPG or
MP3
from the late 90s that used to work but now doesn't, and
who-knows-why.)
Before I embark on this direction for a fileserver, I thought I should
check with the smart people here on misc:
Any tips from anyone who's done something similar?
Or would anyone advise me against OpenBSD or this MD5 log approach for
a
fileserver like this?
Thank you.
Hello,
I built a NAS with OpenBSD and I am using aide to track checksum
changes, I have a tutorial on-going on about this but not finished yet,
I will let you know when it's finish.
Quickly, with aide, create a database with modification time, checksum
and size and when you do a check with aide, look at the files which has
a different checksum and where modification time didn't change. This can
be made with a one-liner awk command.
Also, make backup. Raid5 will prevent data loss when a disk fail, but if
2 disks fails or if the filesystem get corrupted, you will lose your
data. When you have multiple terabyte of data, if you use multiple disks
that have been made at the same time, chances are that they can fail at
the same time, also, rebuilding a few terabytes can takes time. Having
backup with rsnapshot to keep track of a few days changes can be a good
idea, or at least save very important data if you can't afford saving
everything (maybe the loss of the musics or videos files is acceptable
?)