4.9. Modifying the multipath configuration for specific devices with protocol


You can Use the protocol subsection in the overrides section of /etc/multipath.conf to set path-specific options by transport type. These settings override values in overrides, devices, and defaults and apply only to matching type values.

Prerequisites

  • You have configured Device Mapper (DM) multipath in your system.
  • You have multipath devices where not all paths use the same transport protocol.

Procedure

  1. View the specific path protocol by running the following:

    # multipathd show paths format "%d %P"
    dev protocol
    sda scsi:ata
    sdb scsi:fcp
    sdc scsi:fcp
  2. Edit the overrides section of the /etc/multipath.conf file, by adding protocol subsections for each multipath type.

    The overrides section can include multiple protocol subsections.

    重要

    The protocol subsection must include a type parameter. The configuration of all paths with a matching type parameter is then updated with the rest of the parameters listed in the protocol subsection.

    • Settings for path devices, which use the scsi:fcp protocol:

      overrides {
              dev_loss_tmo 60
              fast_io_fail_tmo 8
              protocol {
                      type "scsi:fcp"
                      dev_loss_tmo 70
                      fast_io_fail_tmo 10
                      eh_deadline 360
              }
      }
    • Settings for path devices, which use the scsi:iscsi protocol:

      overrides {
              dev_loss_tmo 60
              fast_io_fail_tmo 8
              protocol {
                      type "scsi:iscsi"
                      dev_loss_tmo 60
                      fast_io_fail_tmo 120
              }
      }
    • Settings for path devices, which use all other protocols:

      overrides {
              dev_loss_tmo 60
              fast_io_fail_tmo 8
              protocol {
                      type "<type of protocol>"
                      dev_loss_tmo 60
                      fast_io_fail_tmo 8
              }
      }
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2026 Red Hat
返回顶部