Originally Posted by
sim085
mmm... so if I disconnect one of the drives, check that I get an error, and then I connect it back in I'll have to resync? Is there a command so that I can check that the size taken of one drive is the same as the size taken on the other drive? Like that at least I will confirm that data is being written on both drives!
I will make sure to take notes on recovery and hope never to need them
Yep. If a RAID1 drive drops from the set, then gets reconnected, a resync will occur which can take hours - days. more /proc/mdstat
If you want to see data being written to both drives, any io-monitoring tool should show it. I use saidar to get a warm fuzzy, but it isn't much use beyond that.
I took notes during and after setting up my RAID arrays. Haven't needed more than these the last 8 yrs. Clearly, modify each command for your situation:
Code:
more /proc/mdstat
sudo mdadm --detail /dev/mdX # See what is up!
sudo mdadm /dev/mdX -a /dev/sdf1 # if 1 disk drops out
sudo mdadm --assemble /dev/mdX -v --force # if the array is migrated to a new box
# RAID Maintenance - run the "check" weekly
echo check > /sys/block/mdX/md/sync_action
echo repair > /sys/block/mdX/md/sync_action
These are just the commands not a script. Each has a specific purpose. Simple stuff for the most part.
Bookmarks