mpathconf (8) Linux Manual Page
mpathconf – A tool for configuring device-mapper-multipath
Synopsis
mpathconf [commands] [options]
Description
mpathconf is a utility that creates or modifies /etc/multipath.conf. It can enable or disable multipathing and configure some common options. mpathconf can also load the dm_multipath module, start and stop the multipathd daemon, and configure the multipathd service to start automatically or not. If mpathconf is called with no commands, it will display the current configuration.
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. This is so that users can manually edit their config file if necessary, before starting multipathd.
If /etc/multipath.conf already exists, mpathconf will edit it. If it does not exist, mpathconf will use /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf as the starting file. This file has user_friendly_names set. If this file does not exist, mpathconf will create /etc/multipath.conf from scratch. For most users, this means that user_friendly_names will be set by default, unless they use the –user_friendly_names n command.
Commands
–enable- Removes any line that blacklists all device nodes from the
/etc/multipath.confblacklist section. –disable- Adds a line that blacklists all device nodes to the
/etc/multipath.confblacklist section. If no blacklist section exists, it will create one. –user_friendly_name{y|n}- If set to
y, 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. –find_multipaths{y|n}- If set to
y, this adds the linefind_multipaths yesto the/etc/multipath.confdefaults section. If set ton, this removes the line, if present. This command can be used aldong with any other command.
Options
–with_module{y|n}- If set to
y, 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 to
y, this runsservice multipathd startto start the multipathd daemon on–enable,service multipathd stopto stop the multipathd daemon on–disable, andservice multipathd reloadto reconfigure multipathd on–user_frindly_namesand–find_multipaths. This option is set tonby default.
Files
/etc/multipath.conf
See Also
multipath.conf(5), modprobe(8), multipath(8), multipathd(8), service(8),
Author
Benjamin Marzinski <bmarzins [at] redhat.com>
