Thread (14 messages) 14 messages, 2 authors, 2010-11-22

Re: How to recreate a dmraid RAID array with mdadm

From: Neil Brown <hidden>
Date: 2010-11-18 00:11:49

On Wed, 17 Nov 2010 17:36:23 -0500
Mike Viau [off-list ref] wrote:
quoted
On Wed, 17 Nov 2010 14:15:14 +1100 [off-list ref] wrote:

This looks wrong. mdadm should be looking for the container as listed in
mdadm.conf and it should find a matching uuid on sda and sdb, but it doesn't.

Can you:

mdadm -E /dev/sda /dev/sdb ; cat /etc/mdadm/mdadm.conf

so I can compare the uuids?
Sure.

# definitions of existing MD arrays ( So you don't have to scroll down :P )


ARRAY metadata=imsm UUID=084b969a:0808f5b8:6c784fb7:62659383

ARRAY /dev/md/OneTB-RAID1-PV container=084b969a:0808f5b8:6c784fb7:62659383 member=0 UUID=ae4a1598:72267ed7:3b34867b:9c56497a
....
           UUID : 084b969a:0808f5b8:6c784fb7:62659383
[OneTB-RAID1-PV]:
           UUID : ae4a1598:72267ed7:3b34867b:9c56497a
....
# definitions of existing MD arrays
ARRAY metadata=imsm UUID=084b969a:0808f5b8:6c784fb7:62659383
ARRAY /dev/md/OneTB-RAID1-PV container=084b969a:0808f5b8:6c784fb7:62659383 member=0 UUID=ae4a1598:72267ed7:3b34867b:9c56497a
Yes, the uuids are definitely all correct.
This really should work.  I just tested a similar config and it worked
exactly as exported.
Weird.

Whatever version of mdadm are you running???
Can you try getting the latest (3.1.4) from
     http://www.kernel.org/pub/linux/utils/raid/mdadm/

and see how that works.
Just
    make
    ./mdadm -Asvv

NeilBrown
--
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help