Mailinglist Archive: opensuse (1213 mails)
| < Previous | Next > |
Re: [opensuse] build RAID1 partition from previously used ordinary partition without data loss?
- From: Jim Cunning <jcunning@xxxxxxxxxxxxxxx>
- Date: Mon, 16 Apr 2012 08:38:58 -0700
- Message-id: <4F8C3D12.2040202@cunning.ods.org>
On 04/15/2012 11:26 PM, Per Jessen wrote:
mdadm --create /dev/md7 --level=1 -n2 /dev/sdb14 missing
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx
Felix Miata wrote:This might be better:
I've since replaced the 250G with a 500G, succeeded in replacing theSounds good.
individual RAID elements on md0-md6, and want to create a clone of the
152G partition on the 320G disk on the 500G disk, then create md7 from
those two partitions.
I tried initially creating md7 using only the original 152G partition
to ensure against data loss, then add the new 152G partition to the
existing single partition md7.
These mdX partitions are all type 0xFD in the partition tables.Shouldn't your command be:
But 'mdadm -cv/dev/md7 --level=1 /dev/sdb14' produces an error
message "mdadm: -c does not set the mode, and so
cannot be the first option". So, I don't know what to do. If there's
anything in the mdadm man page on converting existing partitions to
RAID1 elements, I'm missing it.
mdadm --create /dev/md7 --level=1 -n1 /dev/sdb14
mdadm --create /dev/md7 --level=1 -n2 /dev/sdb14 missing
From the man page:
To create a "degraded" array in which some devices areJim
missing, simply
give the word "missing" in place of a device name. This
will cause
mdadm to leave the corresponding slot in the array empty. For
a RAID4
or RAID5 array at most one slot can be "missing"; for a RAID6
array at
most two slots. For a RAID1 array, only one real device
needs to be
given. All of the others can be "missing".
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx
| < Previous | Next > |