Ce contenu n'est pas disponible dans la langue sélectionnée.
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. The following procedure shows how 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/sdais the internal disk. Note that as originally configured in the default multipath configuration file, executing themultipath -v2shows the local disk,/dev/sda, in the multipath map.For further information on themultipathcommand output, see Section 5.1, “Multipath Command Output”.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - In order to prevent the device mapper from mapping
/dev/sdain its multipath maps, edit thedevnode_blacklistsection of the/etc/multipath.conffile to include this device. Although you could blacklist thesdadevice using adevnodetype, that would not be safe procedure since/dev/sdais 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 -vscommand, the WWID of the/dev/sdadevice is SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1. To blacklist this device, include the following in the/etc/multipath.conffile.devnode_blacklist { wwid SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1 }devnode_blacklist { wwid SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1 }Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following commands:
multipath -F multipath -v2
multipath -F multipath -v2Copy to Clipboard Copied! Toggle word wrap Toggle overflow The local disk or disks should no longer be listed in the new multipath maps, as shown in the following example.Copy to Clipboard Copied! Toggle word wrap Toggle overflow