I have an existing software raid1 array of two disks, /dev/sda2 and /dev/sdb2, which has always been /dev/md0 until now. In the same way there is another device (/dev/md1) also raid1 for /dev/sda6 and /dev/sdb6. I want to repartition the disks, without booting from livecd, so I will do it a disk at a time. I just used mdadm to set /dev/sdb2 as faulty (and the same for /dev/sdb6), so as to free the whole /dev/sdb disk, and repartitioned it. Rebooted for the kernel to see the new partitions on /dev/sdb, and now I want to assign a new /dev/md0 using a new partition on the /dev/sdb drive. But /dev/md0 is already taken from the still active (old) system. I know I could use another md device like /dev/md3, but at the end, I would like to have the md devices start from md0 as before.
So the Q is: How should I proceed to switch /dev/md0 to a new set of devices ? (hope I made myself clear ;-) -- gentoo-user@lists.gentoo.org mailing list