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-10 or /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 the multipathd daemon if it's running. literally the "clean up your room" option.
  • -F β€” Flush (remove) all unused multipath device maps. This operation is delegated to the multipathd daemon 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 extra l is 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 used multipathd configuration.
  • -T β€” Display the currently used multipathd configuration, 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 the enable_foreign option from multipath.conf(5).
  • -i β€” Ignore WWIDs file when processing devices. If find_multipaths strict or find_multipaths no is set in /etc/multipath.conf, multipath only considers devices that are listed in the WWIDs file. This option overrides that behavior. For other values of find_multipaths, this option has no effect. See the description of find_multipaths in /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) Set user_friendly_names bindings file location. The default is /etc/multipath/bindings. ngl this is old news, don't use it. πŸ™ˆ
  • -q β€” Don't unset the device mapper feature queue_if_no_path for multipath maps. Normally, multipath would do so if multipathd is 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 in multipath.conf(5). The possible values for policy are the same as the values for path_grouping_policy in multipath.conf(5). Existing maps are not modified. no cap.
  • -r β€” Force a reload of all existing multipath maps. This command is delegated to the multipathd daemon if it's running. In this case, other command line switches of the multipath command 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 is 0. 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