On Wednesday 07 September 2005 12:58, Christoph Gysin wrote:
> First, let me recommend you mdadm. It's a replacement for the old
> raidtools. *Much* better IMHO.

VERY much so.

> - Create a new RAID1 in degraded state from B2:
> # mdadm --create /dev/md0 --level 1 --raid-devices 2 /dev/B2 missing
>
> - Copy contents from A2 to md0
> - umount A2
> - add A2 to md0:
> # mdadm /dev/md0 --add /dev/A2

Quicker method :)

create B1 and B2
umount /dev/A2
# mdadm --create /dev/md0 -l1 -n2 /dev/A2 /dev/B2

You CAN create a mirror of an existing partition, and NOT lose data.
I know, I've done it.
You can also re-create an existing array (instead of the obvious re-assembly), 
and keep all your data.
The software raid drivers and tools are surprisingly intelligent.

But as always, keep backups :)

-- 
Mike Williams
-- 
gentoo-user@gentoo.org mailing list

Reply via email to