MULTIPATH(8)
MULTIPATH(8) π«
okay so bestie, let me tell you about multipath β the Device mapper target autoconfig situation. this is the System Manager's Manual entry, and honestly? it's giving iconic storage management energy. periodt.
SYNOPSIS β¨
multipath [-v level] [-B|-d|-i|-q|-r] [-b file] [-p policy] [device]
multipath [-v level] [-R retries] -f device
multipath [-v level] [-R retries] -F
multipath [-v level] [-l|-ll] [device]
multipath [-v level] [-a|-w] device
multipath [-v level] -W
multipath [-v level] [-i] [-c|-C] device
multipath [-v level] [-i] [-u|-U]
multipath [-h|-t|-T]
DESCRIPTION π¦
okay so multipath is used to detect and coalesce multiple paths to devices, for fail-over or performance reasons. that's the whole vibe. it's literally making sure your storage stays connected even when one path dips out. main character energy fr fr. π
ARGUMENTS π
The device argument restricts multipath's operation to devices matching the given expression. The argument may refer either to a multipath map or to its components ("paths"). The expression may be in one of the following formats:
- device node β file name of a device node, e.g.
/dev/dm-10or/dev/sda. If the node refers to an existing device mapper device representing a multipath map, this selects the map or its paths, depending on the operation mode. Otherwise, it selects a path device. - device ID β kernel device number specified by major:minor numbers, e.g.
65:16. This format can only be used for path devices. no cap. - WWID β a World Wide Identifier matching a multipath map or its paths. To list WWIDs of devices present in the system, use e.g. the command
"multipath -d -v3 2>/dev/null". iykyk π
OPERATION MODES π
The default operation mode is to detect and set up multipath maps from the devices found in the system. Other operation modes are chosen by using one of the following command line switches:
-fβ Flush (remove) a multipath device map specified as parameter, if unused. This operation is delegated to themultipathddaemon if it's running. literally the "clean up your room" option.-Fβ Flush (remove) all unused multipath device maps. This operation is delegated to themultipathddaemon if it's running.-lβ Show ("list") the current multipath topology from information fetched in sysfs and the device mapper.-llβ Show ("list") the current multipath topology from all available information (sysfs, the device mapper, path checkers ...). the extralis for extra detail bestie.-aβ Add the WWID for the specified device to the WWIDs file.-wβ Remove the WWID for the specified device from the WWIDs file.-Wβ Reset the WWIDs file to only include the current multipath devices.-cβ Check if a block device should be a path in a multipath device.-Cβ Check if a multipath device has usable paths. This can be used to test whether or not I/O on this device is likely to succeed. The command itself doesn't attempt to do I/O on the device. it's giving "vibe check but make it storage."-uβ Check if the device specified in the program environment should be a path in a multipath device.-Uβ Check if the device specified in the program environment is a multipath device with usable paths. See-C. slay.-hβ Print usage text.-tβ Display the currently usedmultipathdconfiguration.-Tβ Display the currently usedmultipathdconfiguration, limiting the output to those devices actually present in the system. This can be used a template for creating/etc/multipath.conf. obsessed with this for real. π«Ά
OPTIONS β¨π
-v levelβ Verbosity of information printed to stdout in default and "list" operation modes. The default level is-v 2. okay so here's the tea on levels:- 0 β Nothing is printed. silence. peace. π§
- 1 β In default mode, Names/WWIDs of created or modified multipath maps are printed. In list mode, WWIDs of all multipath maps are printed.
- 2 β In default mode, Topology of created or modified multipath maps is printed. In list mode, topology of all multipath maps is printed.
- 3 β All detected paths and the topology of all multipath maps are printed.
The verbosity level also controls the level of log and debug messages printed to stderr. The default level corresponds to LOG_NOTICE (important messages that shouldn't be missed in normal operation). so like, level 2 is your bestie who tells you the important stuff without being too extra.
-dβ Dry run, do not create or update devmaps. it's giving "practice run without the commitment."-eβ Enable all foreign libraries. This overrides theenable_foreignoption frommultipath.conf(5).-iβ Ignore WWIDs file when processing devices. Iffind_multipaths strictorfind_multipaths nois set in/etc/multipath.conf,multipathonly considers devices that are listed in the WWIDs file. This option overrides that behavior. For other values offind_multipaths, this option has no effect. See the description offind_multipathsin/etc/multipath.conf(5). This option should only be used in rare circumstances. lowkey don't touch this unless you know what you're doing bestie.-Bβ Treat the bindings file as read only.-b fileβ (deprecated, do not use) Setuser_friendly_namesbindings file location. The default is/etc/multipath/bindings. ngl this is old news, don't use it. π-qβ Don't unset the device mapper featurequeue_if_no_pathfor multipath maps. Normally,multipathwould do so ifmultipathdis not running, because only a running multipath daemon guarantees that unusable paths are reinstated when they become usable again.-p policyβ Force new maps to use the specified policy, overriding the configuration inmultipath.conf(5). The possible values for policy are the same as the values forpath_grouping_policyinmultipath.conf(5). Existing maps are not modified. no cap.-rβ Force a reload of all existing multipath maps. This command is delegated to themultipathddaemon if it's running. In this case, other command line switches of themultipathcommand have no effect. so like, if multipathd is running, this is the only flag that matters. it ate.-R retriesβ Number of times to retry flushing multipath devices that are in use. The default is0. zero patience energy. π
SEE ALSO π₯
multipathd(8), multipath.conf(5), kpartx(8), udev(8), dmsetup(8), hotplug(8).
AUTHORS π
multipath-tools was developed by Christophe Varoqui <christophe.varoqui@opensvc.com> and others. literal legends. π
and that's the whole manual bestie! multipath-tools on Linux, dated 2023-09-08 β go forth and manage those storage paths like the icon you are. mwah! ππβ¨
π¦ where this page comes from
- arch rolling: multipath-tools 0.15.1-1 Β· GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms