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
Enable multipathing on the devices by using the
blacklist_exceptionssection of the/etc/multipath.confconfiguration file.When specifying devices in the
blacklist_exceptionssection of the configuration file, you must specify the exceptions by using the same criteria as they were specified in theblacklistsection. For example, a WWID exception does not apply to devices disabled by adevnodeentry, even if the disabled device is associated with that WWID. Similarly,devnodeexceptions apply only todevnodeentries, anddeviceexceptions 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.conffile:blacklist { wwid ".*" } blacklist_exceptions { wwid "3600d0230000000000e13955cc3757803" }Alternatively, you could use an exclamation mark (
!) to invert theblacklistentry, which disables all devices except the specified WWID:blacklist { wwid "!3600d0230000000000e13955cc3757803" }An exception by udev property
The
propertyparameter works differently than the otherblacklist_exceptionparameters. The value of thepropertyparameter must match the name of a variable in theudevdatabase. 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)" }
Validate the
/etc/multipath.conffile after modifying the multipath configuration file by running one of the following commands:To display any configuration errors, run:
# multipath -t > /dev/nullTo display the new configuration with the changes added, run:
# multipath -t
Reload the
/etc/multipath.conffile and reconfigure themultipathddaemon for changes to take effect:# service multipathd reload