Ignoring Local Disks when Generating Multipath Devices
9
[size=12 GB][features="0"][hwhandler="0"]
\_ round-robin 0
\_ 2:0:0:1 sdc 8:32
\_ 3:0:0:1 sdg 8:96
create: 3600a0b80001327d800000070436216b3
[size=12 GB][features="0"][hwhandler="0"]
\_ round-robin 0
\_ 2:0:0:2 sdd 8:48
\_ 3:0:0:2 sdh 8:112
create: 3600a0b80001327510000009b4362163e
[size=12 GB][features="0"][hwhandler="0"]
\_ round-robin 0
\_ 2:0:0:3 sde 8:64
\_ 3:0:0:3 sdi 8:128
2. 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 the
sda
device using a
devnode
type, that would not be 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 the
multipath -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
}
3. After you have updated the
/etc/multipath.conf
file, you must manually tell the
multipathd
daemon to reload the file. The following command reloads the updated
/etc/
multipath.conf
file.
service multipathd reload
4. Run the following commands:
multipath -F
multipath -v2
The local disk or disks should no longer be listed in the new multipath maps, as shown in the
following example.
[root@rh4cluster1 ~]#
multipath -F