Bug#659229: prio_callout is not executed (manpage unclear or outdated?)
Holger Levsen
holger at layer-acht.org
Thu Feb 9 10:43:12 UTC 2012
package: multipath-tools
version: 0.4.8+git0.761c66f-10
Hi,
thanks for maintaining multipath-tools!
I'm trying to set priorities with prio_callout but I can't make it work. This
is what I have in /etc/multipath.conf:
devices {
device {
vendor "SUN"
product "COMSTAR"
path_grouping_policy group_by_prio
prio_callout "/sbin/multipath_prio %n"
no_path_retry queue
failback 10
}
}
$ cat /sbin/multipath_prio
#!/bin/bash
case $1 in
sda)
echo "10"
;;
sdb)
echo "20"
;;
sdc)
echo "30"
;;
sdd)
echo "40"
;;
sde)
echo "50"
;;
esac
exit 0
$ sudo multipath -v3|grep sda
Feb 09 10:40:53 | sda: not found in pathvec
Feb 09 10:40:53 | sda: mask = 0x1f
Feb 09 10:40:53 | sda: dev_t = 8:0
Feb 09 10:40:53 | sda: size = 104857600
Feb 09 10:40:53 | sda: subsystem = scsi
Feb 09 10:40:53 | sda: vendor = SUN
Feb 09 10:40:53 | sda: product = COMSTAR
Feb 09 10:40:53 | sda: rev = 1.0
Feb 09 10:40:53 | sda: h:b:t:l = 2:0:0:9
Feb 09 10:40:53 | sda: serial =
Feb 09 10:40:53 | sda: get_state
Feb 09 10:40:53 | sda: path checker = directio (config file default)
Feb 09 10:40:53 | sda: state = running
Feb 09 10:40:53 | sda: state = 3
Feb 09 10:40:53 | sda: prio = const (config file default)
Feb 09 10:40:53 | sda: const prio = 1
Feb 09 10:40:53 | sda: getuid = /lib/udev/scsi_id --whitelisted --
device=/dev/%n (config file default)
Feb 09 10:40:53 | sda: uid = 3600144f0affeaffeaffe000000000001 (callout)
3600144f0affeaffeaffe000000000001 2:0:0:9 sda 8:0 1 undef ready SUN,COMS
I would expect get prio 10 here ;-)
Also I'm slightly confused about the manpage, are you sure you didnt
accidentily reopen #644913?
If you need more information, I'd be very happy to provide that.
cheers,
Holger
More information about the pkg-lvm-maintainers
mailing list