Sun Cluster 系统管理指南(适用于 Solaris OS)

Procedure如何修改法定设备节点列表

您可以使用 clsetup(1CL) 实用程序向现有法定设备的节点列表中添加节点或从中删除节点。要修改法定设备的节点列表,必须删除该法定设备,修改节点与删除的法定设备的物理连接,然后将该法定设备重新添加到群集配置中。一旦添加了法定设备,clquorum(1CL) 会自动为与该磁盘连接的所有节点配置节点到磁盘的路径。

phys-schost# 提示符表示全局群集提示符。此操作过程适用于全局群集。

此过程提供了 Sun Cluster 命令的长格式。此外,大多数命令还有简短格式。这些命令除了名称长短的不同以外,其功能都是相同的。有关命令及其简短格式的列表,请参见附录 B

  1. 在群集的任意一个节点上,成为超级用户或使用一个可提供 solaris.cluster.modify RBAC 授权的角色。

  2. 确定要修改的法定设备的名称。


    # clquorum list -v
    
  3. 启动 clsetup 实用程序。


    # clsetup
    

    显示“Main Menu”。

  4. 键入法定选项的相应编号。

    这时将显示“Quorum”菜单。

  5. 键入删除法定设备选项的相应编号。

    按照说明操作。系统将询问您要删除的磁盘的名称。

  6. 添加或删除 节点与法定设备之间的连接。

  7. 键入添加法定设备选项的相应编号。

    按照说明操作。系统将询问您要作为法定设备使用的磁盘的名称。

  8. 检验是否已添加法定设备。


    # clquorum list -v
    

示例 6–7 修改法定设备节点列表

以下示例显示了如何使用 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
Quorum            Type
-------            -----
d2                 shared_disk
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.

[Verify that the quorum device was removed.]
# clquorum list -v
Quorum            Type
-------            -----
sc-phys-schost-1   node
sc-phys-schost-2   node
sc-phys-schost-3   node

[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