您可以使用 clsetup(1CL) 实用程序向现有法定设备的节点列表中添加节点或从中删除节点。要修改法定设备的节点列表,必须删除该法定设备,修改节点与删除的法定设备的物理连接,然后将该法定设备重新添加到群集配置中。一旦添加了法定设备,clquorum(1CL) 会自动为与磁盘连接的所有节点配置节点到磁盘的路径。
此过程提供了 Sun Cluster 命令的长格式。此外,大多数命令还有简短格式。这些命令除了名称长短的不同以外,其功能都是相同的。有关命令及其简短格式的列表,请参见附录 A,Sun Cluster 面向对象的命令。
在群集的任意一个节点上,成为超级用户或使用一个可提供 solaris.cluster.modify RBAC 授权的角色。
确定要修改的法定设备的名称。
# clquorum list -v |
启动 clsetup 实用程序。
# clsetup |
显示“Main Menu”。
键入法定选项的相应编号。
这时将显示“Quorum”菜单。
键入删除法定设备选项的相应编号。
按照说明操作。系统将询问您要删除的磁盘的名称。
添加或删除与法定设备的物理节点连接。
键入添加法定设备选项的相应编号。
按照说明操作。系统将询问您要作为法定设备使用的磁盘的名称。
检验是否已添加法定设备。
# clquorum list -v |
以下示例显示了如何使用 clsetup 实用程序在法定设备节点列表中添加节点或从中删除节点。在本示例中,法定设备的名称为 d2,过程的最终结果是向法定设备节点列表中添加了另一个节点。
[Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization on any node in the cluster.] [Determine the quorum device name:] # clquorum list -v Quorums Type ------- ----- d2 scsi sc-phys-schost-1 node sc-phys-schost-2 node sc-phys-schost-3 node [Start the clsetup utility:] # clsetup [Type the number that corresponds with the quorum option.] . [Type the number that corresponds with the option to remove a quorum device.] . [Answer the questions when prompted.] [You will need the following information:] Information: Example: Quorum Device Name: d2 [Verify that the clquorum command completed successfully:] clquorum remove d2 Command completed successfully. [Type the number that corresponds with the Quorum option.] . [Type the number that corresponds with the option to add a quorum device.] . [Answer the questions when prompted.] [You will need the following information:] Information Example: quorum device name d2 [Verify that the clquorum command was completed successfully:] clquorum add d2 Command completed successfully. Quit the clsetup utility. [Verify that the correct nodes have paths to the quorum device. In this example, note that phys-schost-3 has been added to the enabled hosts list.] # clquorum show d2 | grep Hosts === Quorum Devices === Quorum Device Name: d2 Hosts (enabled): phys-schost-1, phys-schost-2, phys-schost-3 [Verify that the modified quorum device is online.] # clquorum status d2 === Cluster Quorum === --- Quorum Votes by Device --- Device Name Present Possible Status ----------- ------- -------- ------ d2 1 1 Online[Verify the quorum device is removed:] # clquorum list -v Quorums Type ------- ----- sc-phys-schost-1 node sc-phys-schost-2 node sc-phys-schost-3 node |