Originally Posted by error404
...the resync (should) resume where it left off...
I think you may need a bitmap for this kind of result. I never used one. This is the info I have on bitmaps (from linux raid mailing list):
If you fear the disk might flake out again I suggest you add a bitmap
to the raid by runing (works any time the raid is not resyncing)
mdadm --grow --bitmap internal /dev/md0
This will cost you some performance but when a disk fails and you
readd it it will only have to sync regions that have changed and not
the full disk.
You can also remove the bitmap again with
mdadm --grow --bitmap none /dev/md0
at any later time.
Originally Posted by jeffreydeng
I am certainly interested in any other information about monitoring and shares.
This is the guide I used to set up S.M.A.R.T. monitoring:
Again, for mailing list:
echo check > /sys/block/mdX/md/sync_action.
or "echo repair" to get it to fix anything it finds.
if you want to be regularly reminded about degraded arrays,
get cron to run "mdadm -monitor --oneshot --scan" every morning.
You should set up "mdadm --monitor" to do that for you.
mdadm --monitor --email=root@myhost --scan
at boot time and
mdadm --monitor --oneshot --scan --email=root@whatever
as a cron job once a day to nag you about degraded arrays
I put this in a start-up script:
Sending mail config
mdadm --monitor -f -m firstname.lastname@example.org /dev/md1
Install AFP with SSL
apt-get install cracklib2-dev libssl-dev devscripts
apt-get source netatalk
apt-get build-dep netatalk
DEB_BUILD_OPTIONS=ssl sudo dpkg-buildpackage -us -uc
dpkg -i ../netatalk_*.deb
// restart it if you want
Don't seem to have any notes on setting this up, but:
mount ip:/dir /mount/point
OR in fstab:
ip:/dir /mount/point nfs rsize=8192,wsize=8192,timeo=14,intr
Growing a RAID
apt-get install samba
smbpasswd -a username
mdadm --add /dev/md0 /dev/sd[abcd]1
mdadm /dev/md0 --grow --raid-devices=20 --backup-file=/md0backup
blockdev --setra 65536 /dev/md1
blockdev --getra /dev/md1
hdparm -t /dev/sda
iostat -xm sd[a-c] 1 1
Obviously these aren't extensive guides, but should give you a pointer as to what to read about (man pages etc).