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

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

 



> What you should have done is
>
>    mdctl --create /dev/md0 --level=1 --raid-disks=2 /dev/hda2 missing
>
> to say  that you want 2 disks, but the second one is currently
> missing.

Ah, thanks.

> You can fix this without loosing data.  Just stop the array and
> re-create it with the correct information.  The data on the drive will
> not be lost.
>
> So:
>    make sure that /dev/md0 is not mounted and not in use.
>    mdctl --stop /dev/md0
>    mdctl --create /dev/md0 --level=1 --raid-disks=2 /dev/hda2 missing
>    mdctl --add /dev/md0 /dev/hdc2

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...

Jordan Russell

-
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