Re: O'Reilly RAID Book

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

 



On Tue, 30 Mar 2004, Daniel Pittman wrote:

> 1. Buy and install the second disk.
>    Make sure you partition it to the desired sizes, and set all
>    partitions to type 'fd', 'RAID autodiscovery'.
>
> 2. Use mdadm to create the RAID1 in "degraded" mode, using only the
>    second disk.  eg:

you can do it the other way around with less copying -- using resize2fs to
shrink your main filesystem enough to fit the raid superblock at the end
of the partition.  then use mdadm to create a degraded array containing
your main partition ... then futz partition tables/etc. on the second
disk, and hotadd it.

i'm being deliberately vague because it's the sort of thing you want to
understand well enough that this vague description is all the hints you
need :)

the main difficulty is knowing how much to shrink... this would actually
be a useful addition to mdadm.  but you can't go wrong just shrinking by
128MB or such then grow after turning it into a raid.

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