Multipath - Use bindings or multipath.conf ?
In the multipath documentation there is a configuration parameter called user_friendly_names with the following definition:
If set to yes
, specifies that the system should use the /etc/multipath/bindings
file to assign a persistent and unique alias to the multipath, in the form of mpath
n
. If set to no
, specifies that the system should use use the WWID as the alias for the multipath. In either case, what is specified here will be overridden by any device-specific aliases you specify in the multipaths
section of the configuration file. The default value is no
.
So, what does everyone recommend using? The bindings file or the multipath.conf file? To me it seems easier to use a bindings file and just like the documentation says, you can copy it to all nodes in a cluster to have consistant alias naming for all nodes in a cluster.
Also, what happens if a drive gets replaced and the value of the WWN changes? A multipath.conf entry looks like this and specifies the WWN:
multipath {
wwid 360060160e7102200309ddfd6efa5df11
alias mpath-bubba
}
A similar entry in a bindings file would look like this:
mpath-bubba 360060160e7102200309ddfd6efa5df11
So if a drive gets replaced and the WWN changes, do you have to edit these files or is there a command to automatically update the entries?
Thanks in advance for your advice and comments,
Mark