Linux Device Mapper development
 help / color / mirror / Atom feed
From: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: [patch] multipath-tools weighted path priority routine
Date: Fri, 21 Nov 2008 16:51:29 +0900	[thread overview]
Message-ID: <49266881.7030701@ct.jp.nec.com> (raw)
In-Reply-To: <2118D41AB77C214BBF7D2330CD977BCF1BB3958036@GVW1162EXB.americas.hpqcorp.net>

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

  reply	other threads:[~2008-11-21  7:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-12 14:17 [patch] leastpending_io load balancing policy Balasubramanian, Vijayakumar (STSD)
2008-11-13 17:53 ` [patch] multipath-tools weighted path priority routine Balasubramanian, Vijayakumar (STSD)
2008-11-21  7:51   ` Kiyoshi Ueda [this message]
2008-12-03 22:08 ` [patch] leastpending_io load balancing policy Alasdair G Kergon
2008-12-03 23:01   ` Alasdair G Kergon
2008-12-11  1:43     ` Kiyoshi Ueda
2008-12-11 10:14       ` Balasubramanian, Vijayakumar (STSD)
2008-12-12  2:51         ` Kiyoshi Ueda
2008-12-04 11:42   ` Balasubramanian, Vijayakumar (STSD)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49266881.7030701@ct.jp.nec.com \
    --to=k-ueda@ct.jp.nec.com \
    --cc=dm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox