Am Mittwoch, den 07.09.2005, 13:58 +0200 schrieb Christoph Gysin:
> Heinz Sporn wrote:
> > Question: may I run mkraid /dev/md0 on the fly now or will that somehow
> > destroy the partition table on the entire disk A ?
> 
> This wont't work since only data written to md0 gets mirrored. You can't 
> mirror 
> an existing partition. An mkraid will probably destroy partition A2.

That I am aware of. A2 will definitely be lost. Would be great
though ;-) Only thing I wasn't sure of is if mkraid or mdadm will touch
anything else aside A2.

> 
> You'll have to unmount the partiton A2 and mount md0 at some time. There's no 
> way to do this on the fly AFAIK.
> 
> But theres still a little shortcut:
> 
> First, let me recommend you mdadm. It's a replacement for the old raidtools. 
> *Much* better IMHO.

Great tip. Thanx. I will use that.

> 
> - 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
> 
> Christoph
> -- 
> echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" [EMAIL PROTECTED]
-- 
Mit freundlichen Grüßen

Heinz Sporn

SPORN it-freelancing

Mobile:  ++43 (0)699 / 127 827 07
Email:   [EMAIL PROTECTED]
         [EMAIL PROTECTED]
Website: http://www.sporn-it.com
Snail:   Steyrer Str. 20
         A-4540 Bad Hall
         Austria / Europe

-- 
gentoo-user@gentoo.org mailing list

Reply via email to