Gentoo Archives: gentoo-user

From: Mike Williams <mike@××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Introducing RAID 1 into a running system
Date: Wed, 07 Sep 2005 12:21:51
Message-Id: 200509071317.17047.mike@gaima.co.uk
In Reply to: Re: [gentoo-user] Introducing RAID 1 into a running system by Christoph Gysin
1 On Wednesday 07 September 2005 12:58, Christoph Gysin wrote:
2 > First, let me recommend you mdadm. It's a replacement for the old
3 > raidtools. *Much* better IMHO.
4
5 VERY much so.
6
7 > - Create a new RAID1 in degraded state from B2:
8 > # mdadm --create /dev/md0 --level 1 --raid-devices 2 /dev/B2 missing
9 >
10 > - Copy contents from A2 to md0
11 > - umount A2
12 > - add A2 to md0:
13 > # mdadm /dev/md0 --add /dev/A2
14
15 Quicker method :)
16
17 create B1 and B2
18 umount /dev/A2
19 # mdadm --create /dev/md0 -l1 -n2 /dev/A2 /dev/B2
20
21 You CAN create a mirror of an existing partition, and NOT lose data.
22 I know, I've done it.
23 You can also re-create an existing array (instead of the obvious re-assembly),
24 and keep all your data.
25 The software raid drivers and tools are surprisingly intelligent.
26
27 But as always, keep backups :)
28
29 --
30 Mike Williams
31 --
32 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Introducing RAID 1 into a running system Heinz Sporn <heinz.sporn@××××××××.com>
Re: [gentoo-user] Introducing RAID 1 into a running system Christoph Gysin <cgysin@×××.ch>