5.8. Adding exceptions for devices with disabled multipathing


Re-enable multipathing for specific devices by adding exceptions in multipath.conf. This is useful when broad exclusion rules are in place but certain devices still require multipathing, allowing precise control over which devices are managed by DM Multipath.

Prerequisites

  • Multipathing is disabled on certain devices.

Procedure

  1. Enable multipathing on the devices by using the blacklist_exceptions section of the /etc/multipath.conf configuration file.

    When specifying devices in the blacklist_exceptions section of the configuration file, you must specify the exceptions by using the same criteria as they were specified in the blacklist section. For example, a WWID exception does not apply to devices disabled by a devnode entry, even if the disabled device is associated with that WWID. Similarly, devnode exceptions apply only to devnode entries, and device exceptions apply only to device entries.

    Following is an example for adding exceptions for devices with disabled multipathing

    • An exception by WWID

      If you have a large number of devices and want to multipath only one of them with the WWID of 3600d0230000000000e13955cc3757803, instead of individually disabling each of the devices except the one you want, you could disable all of them, and then enable only the one you want by adding the following lines to the /etc/multipath.conf file:

      blacklist {
              wwid ".*"
      }
      
      blacklist_exceptions {
              wwid "3600d0230000000000e13955cc3757803"
      }

      Alternatively, you could use an exclamation mark (!) to invert the blacklist entry, which disables all devices except the specified WWID:

      blacklist {
              wwid "!3600d0230000000000e13955cc3757803"
      }
    • An exception by udev property

      The property parameter works differently than the other blacklist_exception parameters. The value of the property parameter must match the name of a variable in the udev database. Otherwise, the device is disabled. Using this parameter, you can disable multipathing on certain SCSI devices, such as USB sticks and local hard drives.

      To enable multipathing only on SCSI devices that could reasonably be multipathed, set this parameter to (SCSI_IDENT_|ID_WWN) as in the following example:

      blacklist_exceptions {
              property "(SCSI_IDENT_|ID_WWN)"
      }
  2. Validate the /etc/multipath.conf file after modifying the multipath configuration file by running one of the following commands:

    • To display any configuration errors, run:

      # multipath -t > /dev/null
    • To display the new configuration with the changes added, run:

      # multipath -t
  3. Reload the /etc/multipath.conf file and reconfigure the multipathd daemon for changes to take effect:

    # service multipathd reload
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部