Thread (17 messages) 17 messages, 3 authors, 2015-12-15

Re: start dm-multipath before mdadm raid

From: P. Remek <hidden>
Date: 2015-12-10 22:44:01

Order of device discovery is not guaranteed, but base devices will
almost always show up before multipath devices.  You have to filter out
the base devices from mdadm consideration:

Add a DEVICES statement to your mdadm.conf that only matches your
multipath device names, not the base names.  Then update your initramfs
so it applies to early boot as well.

This is something which I actually already tried. I specified in my
/etc/mdadm/mdadm.conf following:

DEVICE /dev/mapper/hgst-ssd*

In my /etc/multipath.conf I instruct dm-multipath to create
/dev/mapper/hgst-ssd1 /dev/mapper/hgst-ssd2 /dev/mapper/hgst-ssd3


But the only result is that after this config, the md raid is not
started at all. My conclusion was that when md raid was starting, the
multipath devices did not yet exist so it did not start up the array.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help