Software raid - mdadm

From Skytech
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Force check of a software raid

echo "check" > /sys/block/md0/md/sync_action

Force create a new raid array with no spared (in case of existing data from previos raid)

Assuming Raid 5 using 3 drives: sda1 - sdc1 - sdd1

First we overwrite the superblock

mdadm --zero-superblock /dev/sd[acd]1

Then re-create the array using the --assume-clean

mdadm --create /dev/md1 --assume-clean --verbose --level=5 --raid-devices=3 /dev/sda1 /dev/sdc1 /dev/sdd1

Possible force-check the array if needed with the above.