Re: mdctl & adding a new drive to a RAID-1 array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday February 21, jr-list-linuxraid@quo.to wrote:
> 
> Doh!  /dev/md0 is actually my root partition... So I guess there's no way to
> change the number of disks with the md device running? Argh...

Well actually.....

- Edit  /etc/fstab and /etc/lilo.conf (or whatever) to make it
  think that /dev/hda2 is your root partitions,
- reboot,
- run the mdctl commands, excluding the --add
- put /etc/fstab and /etc/lilo.conf back
- reboot
- run the mdctl --add

You cannot do it without a reboot or two, but it should work
fine with two reboots.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux