5.4. Disabling multipathing by device name
Disable multipathing for specific devices by using their device names, such as /dev/sda in the multipath.conf file. This prevents DM Multipath from grouping local disks, USB devices, or other storage into multipath devices, keeping them as individual block devices.
Procedure
Display device information:
# udevadm info --query=all -n /dev/mapper/sd*Disable devices in the
/etc/multipath.confconfiguration file by using thedevnodeentry.The following example shows the lines in the DM Multipath configuration file that disable all SCSI devices, because it disables all
sd*devices as well:blacklist { devnode "^sd[a-z]" }You can use a
devnodeentry to disable individual devices rather than all devices of a specific type. However, this is not recommended because unless it is statically mapped byudevrules, there is no guarantee that a specific device will have the same name on reboot. For example, a device name could change from/dev/sdato/dev/sdbon reboot.By default, DM Multipath disables all devices that are not SCSI, NVMe, or DASD, by using the following
devnodeentry:blacklist { devnode "!^(sd[a-z]|dasd[a-z]|nvme[0-9])" }The devices that this entry disables do not generally support DM Multipath.
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