I tested it on Vivid, and it does not work. The dev_loss_tmo and fast_io_fail_tmo sysfs settings do *not* get set. More information on my test environment below:
I know for a fact that the device{} section is being applied, because if I remove the path_grouping_policy keyword and restart multipathd, the topology changes to one path per group:
I tested it on Vivid, and it does not work. The dev_loss_tmo and fast_io_fail_tmo sysfs settings do *not* get set. More information on my test environment below:
root@ucstest:~# cat /etc/multipath.conf grouping_ policy "multibus" io_fail_ tmo 16 a9d12b755101000 000 dm-0 HP ,P2000G3 FC/iSCSI
defaults {
fast_io_fail_tmo 8
dev_loss_tmo 1024
}
devices
device {
vendor "HP.*"
product "P2000G3.*"
path_
fast_
dev_loss_tmo 2048
}
}
root@ucstest:~# multipath -ll
3600c0ff0001204
size=30G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 1:0:0:1 sdb 8:16 active ready running
|- 1:0:1:1 sdc 8:32 active ready running
|- 2:0:0:1 sdd 8:48 active ready running
`- 2:0:1:1 sde 8:64 active ready running
I know for a fact that the device{} section is being applied, because if I remove the path_grouping_ policy keyword and restart multipathd, the topology changes to one path per group:
root@ucstest:~# sed -i 's/path_ grouping/ #path_grouping/ ' /etc/multipath.conf tools.service a9d12b755101000 000 dm-0 HP ,P2000G3 FC/iSCSI
root@ucstest:~# systemctl restart multipath-
root@ucstest:~# multipath -ll
3600c0ff0001204
size=30G features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=1 status=active
| `- 1:0:0:1 sdb 8:16 active ready running
|-+- policy='round-robin 0' prio=1 status=enabled
| `- 1:0:1:1 sdc 8:32 active ready running
|-+- policy='round-robin 0' prio=1 status=enabled
| `- 2:0:0:1 sdd 8:48 active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
`- 2:0:1:1 sde 8:64 active ready running
After reverting that change and restarting again, I can confirm that my config file timeout settings are being read by multipathd:
root@ucstest:~# multipathd -k'show config' | grep -B5 -A1 dev_loss_tmo wwids grouping_ policy multibus
defaults {
verbosity 2
wwids_file /etc/multipath/
fast_io_fail_tmo 8
dev_loss_tmo 1024
}
--
device {
vendor "HP.*"
product "P2000G3.*"
path_
fast_io_fail_tmo 16
dev_loss_tmo 2048
}
However, they are *not* being applied to sysfs:
root@ucstest:~# grep . /sys/class/ fc_remote_ ports/rport- */*tmo fc_remote_ ports/rport- 1:0-0/dev_ loss_tmo: 30 fc_remote_ ports/rport- 1:0-0/fast_ io_fail_ tmo:off fc_remote_ ports/rport- 1:0-1/dev_ loss_tmo: 30 fc_remote_ ports/rport- 1:0-1/fast_ io_fail_ tmo:off fc_remote_ ports/rport- 1:0-2/dev_ loss_tmo: 30 fc_remote_ ports/rport- 1:0-2/fast_ io_fail_ tmo:off fc_remote_ ports/rport- 2:0-0/dev_ loss_tmo: 30 fc_remote_ ports/rport- 2:0-0/fast_ io_fail_ tmo:off fc_remote_ ports/rport- 2:0-1/dev_ loss_tmo: 30 fc_remote_ ports/rport- 2:0-1/fast_ io_fail_ tmo:off fc_remote_ ports/rport- 2:0-2/dev_ loss_tmo: 30 fc_remote_ ports/rport- 2:0-2/fast_ io_fail_ tmo:off
/sys/class/
/sys/class/
/sys/class/
/sys/class/
/sys/class/
/sys/class/
/sys/class/
/sys/class/
/sys/class/
/sys/class/
/sys/class/
/sys/class/
Versions:
root@ucstest:~# dpkg -l kpartx multipath-tools Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Conf-files/ Unpacked/ halF-conf/ Half-inst/ trig-aWait/ Trig-pend /Reinst- required (Status,Err: uppercase=bad) ======= ======= ======= ======= ======= ======= ======= =-===== ======= ======= ======= =====-= ======= ======= ======= ======= ==-==== ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= === .15.04. 2 amd64 create device mappings for partitions .15.04. 2 amd64 maintain multipath block device access
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii kpartx 0.4.9-3ubuntu12
ii multipath-tools 0.4.9-3ubuntu12
Tore