MPATHCONF(8)
β¨ 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_multipathmodule - start and stop the
multipathddaemon - configure the
multipathdservice 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.confblacklist section. Also, creates/etc/multipath.confif it doesn't exist. Basically the "turn it on bestie" button π₯--disableβ Adds a line that blacklists all device nodes to the/etc/multipath.confblacklist section. If no blacklist section exists, it will create one. The "we're done here" button π--allow<device>β Modifies the/etc/multipath/confblacklist to blacklist all wwids, and theblacklist_exceptionsto whitelist<device>.<device>can be in the form ofMAJOR: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 thatmpathconfwill not be able to revert back to its previous state. Because of this,--outfileis required when using--allow. No cap. Don't skip it. π
--user_friendly_names { y | n }β If set toy, this adds the lineuser_friendly_names yesto the/etc/multipath.confdefaults section. If set ton, this removes the line, if present. This command can be used along with any other command. β¨--recheck_wwid { y | n }β If set toy, this adds the linerecheck_wwid yesto the/etc/multipath.confdefaults section, or sets an existing line toyes. If set ton, this sets an existingrecheck_wwidline tono. 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 linefind_multipaths<value>to the/etc/multipath.confdefaults section. This command can be used along with any other command.yandncan be used instead ofyesandno. So many options, so little time π--property_blacklist { y | n }β If set toy, this adds the lineproperty (SCSI_IDENT_|ID_WWN)to the/etc/multipath.confblacklist_exceptionssection. If set ton, this removes the line, if present. This command can be used along with any other command. π¦--enable_foreign { y | n }β If set toy, this adds the lineenable_foreign .*to the/etc/multipath.confdefaults section. If set ton, 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 toy, this runsmodprobe dm_multipathto install the multipath modules. This option only works with the--enablecommand. This option is set toyby default. π--with_multipathd { y | n }β If set toy, this runs:service multipathd startto start themultipathddaemon on--enableservice multipathd stopto stop themultipathddaemon on--disableservice multipathd reloadto reconfiguremultipathdon--user_friendly_namesand--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
- fedora 43: device-mapper-multipath 0.11.1-2.fc43 Β· GPL-2.0-only AND GPL-3.0-only
- fedora 44: device-mapper-multipath 0.13.1-1.fc44 Β· GPL-2.0-only AND GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms