RE: mdadm -A -s and a mirror of two stripes
From: Chris Stromsoe <hidden>
Date: 2004-04-17 22:26:26
On Sat, 17 Apr 2004, Guy wrote:
I took a quick look. I think this is the issue. Your device line does not have md0
md0 is the device that I'm building; md1 and md2 are the members. I believe that the problem is that mdadm is assembling md1 and md2, but not including them as potential candidates when looking for members to assemble md0. Hence the "bug or feature" question. But thanks for the suggestion. :) -Chris
Change:
DEVICE /dev/sd[abcdefghij]1 /dev/md[12]
To:
DEVICE /dev/sd[abcdefghij]1 /dev/md[012]
Guy
-----Original Message-----
From: linux-raid-owner@vger.kernel.org
[mailto:linux-raid-owner@vger.kernel.org] On Behalf Of Chris Stromsoe
Sent: Saturday, April 17, 2004 4:55 AM
To: linux-raid@vger.kernel.org
Subject: mdadm -A -s and a mirror of two stripes
I've got two stripes that were set up as
mdadm -C /dev/md1 --level=stripe -n 5 \
/dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1
mdadm -C /dev/md2 --level=stripe -n 5 \
/dev/sdf1 /dev/sdg1 /dev/sdh1 /dev/sdi1 /dev/sdj1
and a mirror that was set up by doing
mdadm -C /dev/md0 --level=mirror -n 2 /dev/md1 /dev/md2
My /etc/mdadm/mdadm.conf reads
DEVICE /dev/sd[abcdefghij]1 /dev/md[12]
ARRAY /dev/md1 level=raid0 num-devices=5
UUID=75892ebc:b52333a4:b77cbdca:9d50c65d
devices=/dev/sda1,/dev/sdb1,/dev/sdc1,/dev/sdd1,/dev/sde1
ARRAY /dev/md2 level=raid0 num-devices=5
UUID=c7547e18:48952f89:49893143:e477c407
devices=/dev/sdf1,/dev/sdg1,/dev/sdh1,/dev/sdi1,/dev/sdj1
ARRAY /dev/md0 level=raid1 num-devices=2
UUID=26e3111e:90a3407d:341ed800:1f431f24 devices=/dev/md1,/dev/md2
mdadm -A -s starts md1, then md2, but doesn't start md0. I have to run it
a second time to get md0 to start. The first run prints out:
mdadm: /dev/md1 has been started with 5 drives.
mdadm: /dev/md2 has been started with 5 drives.
mdadm: no devices found for /dev/md0
Is that a bug or a feature? mdadm is v1.4.0.
-Chris
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html