5.6. Disabling multipathing by udev property
Exclude devices from multipath using their udev properties in the multipath.conf file. This method allows flexible filtering based on system-detected attributes like hardware type or connection, giving precise control over which devices are excluded from multipathing.
Procedure
Display the
udevvariables for a device:# udevadm info --query=all -n /dev/sdbDisable devices in the
/etc/multipath.confconfiguration file by using thepropertyparameter. This parameter is a regular expression string that matches against theudevenvironment variable name for the devices.The following example disables multipathing on all devices with the
udevpropertyID_ATA:blacklist { property "ID_ATA" }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