raid-check mismatch count

Lets see…

You have a server with soft raid (unfortunately but ur gona have to live with it!) and you get the unfortunate email:
WARNING: mismatch_cnt is not 0 on /dev/md0
Step 1: Dont panic ;)
Step 2:Troubleshooting
cat /sys/block/md0/md/mismatch_cnt
you should be seeing a number there other than the good 0
cat /sys/block/md0/md/sync_action
should be idle… so lets wake it up:
echo repair > /sys/block/md0/md/sync_action
echo check > /sys/block/md0/md/sync_action
cat /proc/mdstat
all looks well in the world and
cat /sys/block/md0/md/mismatch_cnt is 0 this time ;)
Cheers :)

Popular Posts