I would expect partitions to appear under /dev/mapper as well as whole devices. Reproducible: Always Steps to Reproduce: 1. Create LUN on San, map it to gentoo box 2. Configure multipath, multipath -ll must show LUN 3. partition LUN, ex fdisk /dev/mapper/largeLUN 4. Reboot or otherwise have udev take care of the new LUN 5. ls /dev/mapper Actual Results: me@gentoobox ~ $ ls -al /dev/mapper total 0 drwxr-xr-x 2 root root 280 Mar 9 12:09 . drwxr-xr-x 17 root root 34340 Mar 9 12:09 .. brw-rw---- 1 root disk 253, 0 Mar 9 12:09 largeLUN brw-rw---- 1 root disk 253, 1 Mar 9 12:09 reallyHugeLUN lrwxrwxrwx 1 root root 16 Mar 9 12:06 control -> ../device-mapper Expected Results: me@gentoobox ~ $ ls -al /dev/mapper total 0 drwxr-xr-x 2 root root 280 Mar 9 12:09 . drwxr-xr-x 17 root root 34340 Mar 9 12:09 .. brw-rw---- 1 root disk 253, 0 Mar 9 12:09 largeLUN brw-rw---- 1 root disk 253, 2 Mar 9 12:09 largeLUNp1 brw-rw---- 1 root disk 253, 3 Mar 9 12:09 largeLUNp2 brw-rw---- 1 root disk 253, 4 Mar 9 12:09 largeLUNp3 brw-rw---- 1 root disk 253, 5 Mar 9 12:09 largeLUNp4 brw-rw---- 1 root disk 253, 6 Mar 9 12:09 largeLUNp5 brw-rw---- 1 root disk 253, 1 Mar 9 12:09 reallyHugeLUN brw-rw---- 1 root disk 253, 7 Mar 9 12:09 reallyHugeLUNp1 brw-rw---- 1 root disk 253, 8 Mar 9 12:09 reallyHugeLUNp2 brw-rw---- 1 root disk 253, 10 Mar 9 12:09 reallyHugeLUNp3 brw-rw---- 1 root disk 253, 9 Mar 9 12:09 reallyHugeLUNp4 lrwxrwxrwx 1 root root 16 Mar 9 12:06 control -> ../device-mapper I wrote a small patch which modifies /etc/udev/rules.d/66-kpartx.rules It works for me but i don't know if it is the right way to do it --- 66-kpartx.rules.orig 2010-03-09 11:41:17.000000000 -0500 +++ 66-kpartx.rules 2010-03-09 11:47:11.000000000 -0500 @@ -7,7 +7,7 @@ KERNEL!="dm-*", GOTO="kpartx_end" ACTION=="remove", GOTO="kpartx_end" -ENV{DM_TABLE_STATE}!="LIVE", GOTO="kpartx_end" +ENV{DM_TABLE_LIVE}!="1", GOTO="kpartx_end" ENV{DM_UUID}=="?*", IMPORT{program}=="/lib/udev/kpartx_id %M %m $env{DM_UUID}" @@ -30,6 +30,8 @@ RUN+="/sbin/kpartx -a -p -part /dev/$kernel" ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="dmraid-*", \ RUN+="/sbin/kpartx -a -p -part /dev/$kernel" +ENV{DM_UUID}=="mpath-*", \ + RUN+="/sbin/kpartx -a /dev/mapper/$env{DM_NAME}" LABEL="kpartx_end"
emerge gentoolkit, then attach the output of "equery belongs /etc/udev/rules.d/66-kpartx.rules"
Created attachment 225109 [details] equery belongs kpartx.rules
Comment on attachment 225109 [details] equery belongs kpartx.rules 66-kpartx.rules belongs to multipath-tools-0.4.8-r2
Fixing the bug assignments
Does this bug still valid for 0.4.9?
*** Bug 581182 has been marked as a duplicate of this bug. ***
Yes, the problem still exists. See investigation in bug #581182 and better solutions presented there. Please, reopen this one.
Reopened per Peter's request
looks like upstream has posted a fix now
nm, i thought i was reading the 2016 thread and not the old 2007 thread. looks like upstream is poking the issue again though, so we could just wait a bit longer and see what shakes out.
Fixed in tree: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e78d65c9e9ffa54a6bece600c8d09881361c4889