MPATHCONF(8)

πŸ“¦
version 0.13.1 Β· 3 versions
, in fedora 43, fedora 44

✨ NAME ✨

mpathconf β€” bestie's very own tool for configuring device-mapper-multipath πŸ’– (yes it's an admin tool, yes it's section 8, yes we're doing this together)


πŸ¦‹ SYNOPSIS πŸ¦‹

mpathconf [commands] [options]

🌸 DESCRIPTION 🌸

Okay so mpathconf is a utility that creates or modifies /etc/multipath.conf. That's its whole thing. It can:

  • enable or disable multipathing
  • configure some common options
  • load the dm_multipath module
  • start and stop the multipathd daemon
  • configure the multipathd service to start automatically or not

And if you call mpathconf with no commands at all? It just displays the current configuration β€” it will not create or modify /etc/multipath.conf. It's just showing you the vibes, not touching anything. 🫢


The default options for mpathconf are --with_module. The --with_multipathd option is not set by default. Enabling multipathing will load the dm_multipath module, but it will not immediately start it β€” and that's on purpose, so you can manually edit your config file if necessary before starting multipathd. Considerate of it fr fr πŸ’…


If /etc/multipath.conf already exists, mpathconf will edit it. If it does not exist, mpathconf will create a default file with user_friendly_names set and find_multipaths set to on.

To disable these, use the --user_friendly_names n and --find_multipaths off options. Slay ✨


πŸ‘‘ COMMANDS πŸ‘‘

  • --enable β€” Removes any line that blacklists all device nodes from the /etc/multipath.conf blacklist section. Also, creates /etc/multipath.conf if it doesn't exist. Basically the "turn it on bestie" button πŸ”₯
  • --disable β€” Adds a line that blacklists all device nodes to the /etc/multipath.conf blacklist section. If no blacklist section exists, it will create one. The "we're done here" button πŸ’€
  • --allow <device> β€” Modifies the /etc/multipath/conf blacklist to blacklist all wwids, and the blacklist_exceptions to whitelist <device>. <device> can be in the form of MAJOR:MINOR, a wwid, or the name of a device-mapper device β€” either a multipath device, or any device on stacked on top of one or more multipath devices. This command can be used multiple times to allow multiple devices.
⚠️ NOTE: This action will create a configuration file that mpathconf will not be able to revert back to its previous state. Because of this, --outfile is required when using --allow. No cap. Don't skip it. πŸ™ˆ
  • --user_friendly_names { y | n } β€” If set to y, this adds the line user_friendly_names yes to the /etc/multipath.conf defaults section. If set to n, this removes the line, if present. This command can be used along with any other command. ✨
  • --recheck_wwid { y | n } β€” If set to y, this adds the line recheck_wwid yes to the /etc/multipath.conf defaults section, or sets an existing line to yes. If set to n, this sets an existing recheck_wwid line to no. This command can be used along with any other command. πŸŽ€
  • --find_multipaths { on | yes | y | off | no | n | strict | greedy | smart } β€” If set to <value>, this adds the line find_multipaths <value> to the /etc/multipath.conf defaults section. This command can be used along with any other command. y and n can be used instead of yes and no. So many options, so little time 😭
  • --property_blacklist { y | n } β€” If set to y, this adds the line property (SCSI_IDENT_|ID_WWN) to the /etc/multipath.conf blacklist_exceptions section. If set to n, this removes the line, if present. This command can be used along with any other command. πŸ¦‹
  • --enable_foreign { y | n } β€” If set to y, this adds the line enable_foreign .* to the /etc/multipath.conf defaults section. If set to n, this removes the line, if present. This command can be used along with any other command. 🌈
  • --option <option_name>:[<value>] β€” Sets the defaults section option <option_name> to <value>. If the option was not previously set in the defaults section, it is added. If it was set, its value is changed to <value>. If <value> is left blank, then the option is removed from the defaults section, if it was set there. This command can be used along with any other command. πŸ’…
  • --outfile <filename> β€” Write the resulting multipath configuration to <filename> instead of /etc/multipath.conf. Custom destination, iconic behavior ⭐

πŸ’– OPTIONS πŸ’–

  • --with_module { y | n } β€” If set to y, this runs modprobe dm_multipath to install the multipath modules. This option only works with the --enable command. This option is set to y by default. πŸ‘‘
  • --with_multipathd { y | n } β€” If set to y, this runs:
    • service multipathd start to start the multipathd daemon on --enable
    • service multipathd stop to stop the multipathd daemon on --disable
    • service multipathd reload to reconfigure multipathd on --user_friendly_names and --find_multipaths

This option is set to n by default. It is not coming out to play unless you ask. πŸ™ˆ


πŸ“ FILES πŸ“

  • /etc/multipath.conf

🧚 SEE ALSO 🧚

multipath.conf(5), modprobe(8), multipath(8), multipathd(8), service(8),


πŸ’œ AUTHOR πŸ’œ

Benjamin Marzinski <bmarzins@redhat.com>


okay that's the whole thing bestie β€” this page came straight out of the Linux Administrator's Manual, dated June 2010, and it's all about mpathconf in section 8. go configure some multipath, you absolute main character πŸŒŸπŸ’…πŸ«Ά

πŸ“¦ where this page comes from