Re: modifying a running array

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

 



Lieven Van Acker wrote:

Hey folks,

I didn't find any direct pointers on this issue, so maybe you experts
can advice me...

I was setting up a system, had only one disk at setup time but wanted to
configure raid 1 in advance...

so I used

mdadm --create /dev/md0 --force --run --level=1 --raid-devices=1
/dev/sda1


On your new disk try this:
mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sdb1 missing

Then make a filesystem on it and copy over the data from /dev/md0
then stop /dev/md0

Once you've done all that try:

mdadm /dev/md1 -a /dev/sda1

I think that'll get you where you want to be.

you may want to hang back a while in case I made a typo ;)

David


PS from the manpage:
Setting a value of 1 is probably a mistake and so requires that --force be specified first.
Guess what ;)
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
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