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 |