2.2. 在群集中保持多路径设备名称一致
当将
user_friendly_names 配置选项设为 yes 时,该多路径设备的名称对于节点来说是唯一的,但不保证对使用多路径设备的所有节点都一致。如果您使用 LVM 生成逻辑设备,这将不会给您造成任何困难。但如果您需要将您的多路径设备名称在群集中的每个节点上都保持一致,请执行以下步骤之一:
- Use the
aliasoption in themultipathssection of the multipath configuration file to set the name of the multipath device. Thealiasfor the multipath device is consistent across all the nodes in a cluster. For information on themultipathssection of the multipath configuration file, see see 第 4.4 节 “多路径设备配置属性”. - 如果您想要系统定义的用户友好名称在群集中的所有节点间保持一致,请在一台机器中设置所有多路径设备。然后将那台机器中的
/var/lib/multipath/bindings文件复制到群集中其它所有机器中。