4.2. 配置文件黑名单
多路径配置文件的
blacklist
部分指定在系统配置多路径设备时不能使用的设备。黑名单中的设备将无法分组到多路径设备中。
默认情况下,所有设备都列在黑名单中,因为下面这些行出现在配置文件开始的部分。
blacklist { devnode "*" }
blacklist {
devnode "*"
}
To enable multipathing on all of the devices that are supported by default, comment out those lines, as described in 第 3.1 节 “安装 DM-Multipath”.
注释出通用黑名单后,您可以在黑名单中指定一般设备类型和个体设备。您可以根据以下标准将设备列入黑名单:
- By WWID, as described in 第 4.2.1 节 “根据 WWID 将设备列入黑名单”
- By device name, as described in 第 4.2.2 节 “根据设备名称将设备列入黑名单”
- By device type, as described in 第 4.2.3 节 “根据设备类型将其加入黑名单”
By default, a variety of device types are blacklisted, even after you comment out the initial blacklist section of the configuration file. For information, see 第 4.2.2 节 “根据设备名称将设备列入黑名单”.
您可根据全球识别号将单独的设备列入黑名单,即在配置文件的
blacklist
部分加入 wwid
条目。
以下示例显示了在配置文件中可将 WWID 为 26353900f02796769 的设备列入黑名单的行。
blacklist { wwid 26353900f02796769 }
blacklist {
wwid 26353900f02796769
}