Re: musical chairs

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

 



On Wed, 2004-09-22 at 15:00, dr_snafu wrote:
> hello, 
> 
> i have a disk with data on it /dev/hdc, 
>     and a brand new empty disk /dev/hdb. 

Partitions not in use?

> want to set up raid 1 without moving data off hdc. 
>     it very large and i have no where to put it
> 
> will this work?: (notice # of devices)
> 
> mdadm --create --verbose /dev/md0 --level=1 
>         --raid-devices=1  /dev/hdb

Again, no partitions?  You can do that, don't get me wrong, but things
like raidautodetect work a bit more smoothly if you actually have a
partition table.

> will this create an unmirrored raid 1 setup? 
>     can i start and mount md0?
>     then copy the data from hdb to md0?
> 
> then?:
> 
> mdadm /dev/md0 --add /dev/hdc
> 
> 
> seems too good to be true, 
>     maybe you know another way?

Use e2fsresize or whatever it's called to shrink the size of the e2fs on
/dev/hdc by 64k, then mdadm -C /dev/md0 -l raid1 -n 2 /dev/hdc failed,
then mdadm /dev/md0 -a /dev/hdb and all the data will then be synced
from hdc to hdb and when it's done the raid array will be up, running,
and fully operational.

-- 
  Doug Ledford <dledford@xxxxxxxxxx>     919-754-3700 x44233
         Red Hat, Inc.
         1801 Varsity Dr.
         Raleigh, NC 27606


-
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