3.2. Ignoring Local Disks when Generating Multipath Devices
Some machines have local SCSI cards for their internal disks. DM Multipath is not recommended for these devices. If you set the
find_multipaths
configuration parameter to yes
, you should not have to blacklist these devices. For information on the find_multipaths
configuration parameter, see Section 4.3, “Configuration File Defaults”.
If you do not set the
find_multipaths
configuration parameter to yes
, can use the following procedure to modify the multipath configuration file to ignore the local disks when configuring multipath.
- Determine which disks are the internal disks and mark them as the ones to blacklist.In this example,
/dev/sda
is the internal disk. Note that as originally configured in the default multipath configuration file, executing themultipath -v2
command shows the local disk,/dev/sda
, in the multipath map.This examples specifies the-d
option of themultipath
command to indicate that this is a dry run that will not create the multipath devices. For further information on themultipath
command output, see Section 5.7, “Multipath Command Output”.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - In order to prevent the device mapper from mapping
/dev/sda
in its multipath maps, edit the blacklist section of the/etc/multipath.conf
file to include this device. Although you could blacklist thesda
device using adevnode
type, that would not be a safe procedure since/dev/sda
is not guaranteed to be the same on reboot. To blacklist individual devices, you can blacklist using the WWID of that device.Note that in the output to themultipath -v2
command, the WWID of the/dev/sda
device is SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1. To blacklist this device, include the following in the/etc/multipath.conf
file.blacklist { wwid SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1 }
blacklist { wwid SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1 }
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - After you have updated the
/etc/multipath.conf
file, you must manually tell themultipathd
daemon to reload the file. The following command reloads the updated/etc/multipath.conf
file.systemctl reload multipathd.service
# systemctl reload multipathd.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow