Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 581226 - sys-fs/multipath-tools-0.5.0: init script should load dm-multipath module
Summary: sys-fs/multipath-tools-0.5.0: init script should load dm-multipath module
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-26 07:54 UTC by pva
Modified: 2021-04-08 00:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pva 2016-04-26 07:54:22 UTC
Currently init scripts strives to load dm-mod module. That's not enough and multipath is not working with dm_mod only loaded:
 ~ # lsmod  | grep dm_
dm_mod                 76157  0
 ~ # multipath -v0
Apr 26 10:26:45 | DM multipath kernel driver not loaded

This causes multipath failure on start.

dm-multipath driver should be loaded instead. dm-mod is dependency of dm-multipath and will be loaded automatically:

 ~ # modinfo dm-multipath
filename:       /lib/modules/4.4.6-gentoo/kernel/drivers/md/dm-multipath.ko
license:        GPL
author:         Sistina Software <dm-devel@redhat.com>
description:    device-mapper multipath target
depends:        dm-mod
intree:         Y
vermagic:       4.4.6-gentoo SMP mod_unload 


As for multipath selectors, as I see they are loaded automatically once configured in /etc/multipath.conf (and here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806443 is another confirmation that this happens).

So simple patch for multipath init script will do the job:

-		[ -e /proc/modules ] && modprobe -q dm-mod
+		[ -e /proc/modules ] && modprobe -q dm-multipath