Oct '12 03

Verify Linux MD device

Yet another faulty disk with bad blocks has me wondering how to check the MD array for consistancy, found a good post about it.

sudo bash -c "echo check >  /sys/block/md0/md/sync_action"
sudo bash -c "echo repair >/sys/block/md0/md/sync_action"
cat /sys/block/md1/md/mismatch_cnt