Skip to contentSkip to conversation

mpath_prio_weighted usage

linux-lvm Sunil Gupta 1 participant 1 message Apr 25, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

I have a customer who wants to know the usage of prio_callout mpath_prio_weighted . From the usage it shows

Usage: mpath_prio_weighted <hbtl|devname> <regex1> <prio1> [<regex2> <prio2>] ...
Warning: This priority callout is based on a path's device name or its H:T:B:L. Both of these can change when the node is rebooted, and can differ from node to node. (i.e. there is no guarantee that sda will point to the same device after a reboot) If you use this callout, it may be necessary to manually edit /etc/multipath.conf after any reboot.

please describe the <regex1> <prio1> part of the command.

I tried a comand and it succeeded but not sure what it will do.

# mpath_prio_weighted sdb  sdb* 4
4

Thanks in advance

Regards,
Sunil