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

Re: [dm-devel] [patch] multipath-tools weighted path priority routine



Hi Vijayakumar,

Balasubramanian, Vijayakumar (STSD) wrote:
> Hi,
> 'Weighted path' is a new path prioritizer for device mapper multipath, where specific paths and the corresponding priority values can be provided as arguments.
> This prioritizer assigns the priority value provided in the configuration file based on the comparison made between the specified paths and the path instance for which this is called. Paths can be specified as a regular expression of devname of the path or as hbtl information of the path.
> 
> Syntax:
> weightedpath  <hbtl|devname> <regex1> <prio1> <regex2> <prio2> ...
> 
> Examples:
> prio  "weightedpath hbtl 1:.:.:. 2 4:.:.:. 4"   #All paths through SCSI 'H' as '1' will take prio 2 and all paths with SCSI 'H' as 4 will take prio as 4.
> prio  "weightedpath devname sda$ 10 sde$ 20"    #Path sda takes prio 10 and path sde takes prio 20. can be provided in multipath section.
> 
> 
> This prioritizer allows user to set static load balancing for devices. Useful when user has prior knowledge of path performance difference or unavailability of certain paths.

I think we can't specify a prefered path reliably in this way.
Device name, host number, etc may vary for each system reboot.
It's horrible to check and change the config file after every reboot.
We should use more persistent name.

If you'd like to specify a prefered host, you may be able to use
hosts's WWN like /sys/class/fc_host/host?/[node|port]_name.

Thanks,
Kiyoshi Ueda


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