[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#806443: disk-detect/multipath: default path selector is not loaded



On Fri, Nov 27, 2015 at 03:33:39PM +0000, Ben Hutchings wrote:
> On Fri, 2015-11-27 at 15:39 +0100, Hendrik Brueckner wrote:
> [...]
> > --- a/disk-detect.sh
> > +++ b/disk-detect.sh
> > @@ -202,7 +202,7 @@ fi
> >  db_get disk-detect/multipath/enable
> >  if [ "$RET" = true ]; then
> >  > 	> if anna-install multipath-udeb; then
> > -> 	> 	> MODULES="dm-mod dm-multipath dm-round-robin dm-emc"
> > +> 	> 	> MODULES="dm-mod dm-multipath dm-service-time dm-round-robin dm-emc"
> >  > 	> 	> # We need some dm modules...
> >  > 	> 	> depmod -a >/dev/null 2>&1 || true
> >  > 	> 	> for MODULE in $MODULES; do
> 
> At least dm-service-time and dm-round-robin will be automatically
> loaded by the kernel when needed.  I'm not sure about the others.

Just tried it out... the dm-multipath must be loaded manually, otherwise:

~ # multipath
Nov 27 16:42:37 | DM multipath kernel driver not loaded

~ # modprobe dm-multipath
~ # multipath
create: 36005076307ffc5e300000000000082db undef IBM,2107900
size=20G features='0' hwhandler='0' wp=undef
`-+- policy='round-robin 0' prio=1 status=undef
  |- 0:0:0:1088110722 sda 8:0   undef ready running
  `- 1:0:0:1088110722 sde 8:64  undef ready running

Loading the module and running multipath automatically loads the other
kernel modules:

~ # lsmod
Module                  Size  Used by
dm_round_robin         16384  4
dm_multipath           32768  5 dm_round_robin
scsi_dh                20480  1 dm_multipath
dm_mod                139264  5 dm_multipath
sd_mod                 49152  8
qeth_l2                45056  1
fuse                  122880  0
qeth                  122880  1 qeth_l2
ccwgroup               20480  1 qeth
zfcp                  122880  8
scsi_transport_fc      69632  1 zfcp
scsi_mod              241664  4 zfcp,scsi_transport_fc,scsi_dh,sd_mod
dasd_eckd_mod         110592  0
dasd_mod               98304  1 dasd_eckd_mod

multipath automatically tries to load its default path selector module.  In
the example, I modified the multipath.conf to use round-robin.

So strictly this patch is not necessary but at least consistent regarding
the manual loading of the other modules.  I leave the change up to the
maintainer of the hw-detect/disk-detect package.

Thanks for your help.

Kind regards,
  Hendrik

Attachment: pgpGzKOtCVoWB.pgp
Description: PGP signature


Reply to: