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
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:fcpEdit the
overridessection of the/etc/multipath.conffile, by addingprotocolsubsections for each multipath type.The
overridessection can include multipleprotocolsubsections.重要The
protocolsubsection must include atypeparameter. The configuration of all paths with a matchingtypeparameter is then updated with the rest of the parameters listed in theprotocolsubsection.Settings for path devices, which use the
scsi:fcpprotocol: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:iscsiprotocol: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 } }