I've a linux server with 2 IDE HD & Raid (hda - hdb)
I've changed the "BAD" hdb with a new:
mdadm --fail /dev/md2 /dev/hdb3
mdadm --fail /dev/md0 /dev/hdb2
mdadm --fail /dev/md1 /dev/hdb1
mdadm --remove /dev/md1 /dev/hdb1
mdadm --remove /dev/md0 /dev/hdb2
mdadm --remove /dev/md2 /dev/hdb3
... change hdb .... fdisk the new hdb ..... and:
mdadm --add /dev/md1 /dev/hdb1
mdadm --add /dev/md0 /dev/hdb2
mdadm --add /dev/md2 /dev/hdb3
Now I need to rebuild the grub/mbr for new hdb
Is it the correct way?
grub
root (hd0,0) <-- ???
setup (hd0) <-- ???
quit
Thanks!