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