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

Procedure如何添加 Network Appliance 网络连接存储 (Network-Attached Storage, NAS) 法定设备

将 Network Appliance (NetApp) 网络连接存储 (Network-Attached Storage, NAS) 设备用作法定设备时,需要满足以下要求:

有关在 Sun Cluster 环境中安装 NetApp NAS 存储设备的信息,请参见以下 Sun Cluster 文档:《Sun Cluster 3.1 - 3.2 With Network-Attached Storage Devices Manual for Solaris OS》

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

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

  1. 确保所有的 Sun Cluster 节点都处于联机状态,并且可以和 NetApp 群集文件管理器进行通信。

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

  3. 启动 clsetup 实用程序。


    # clsetup
    

    屏幕上将显示 clsetup 主菜单。

  4. 键入与“法定”选项对应的编号。

    这时将显示“Quorum”菜单。

  5. 键入添加法定设备选项的相应编号。然后键入 yes 确认添加法定设备。

    clsetup 实用程序将询问您要添加哪种类型的法定设备。

  6. 键入 netapp_nas 法定设备选项的相应编号。然后键入 yes 确认添加 netapp_nas 法定设备。

    clsetup 实用程序将提示您提供新的法定设备的名称。

  7. 键入正在添加的法定设备的名称。

    法定设备的名称可以是任一名称。该名称仅用于继续执行后续的管理命令。

    clsetup 实用程序将提示您提供新法定设备的文件管理器的名称。

  8. 键入新法定设备的文件管理器名称。

    该名称是一个网络可访问名称或该文件管理器的地址。

    clsetup 实用程序将提示您提供文件管理器的 LUN ID。

  9. 键入文件管理器上法定设备 LUN 的 ID。

    clsetup 实用程序将询问您是否要在文件管理器中添加新的法定设备。

  10. 键入 yes 继续执行添加新法定设备的操作。

    如果成功添加了新的法定设备,clsetup 实用程序会为此显示一条相应的消息。

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


    # clquorum list -v
    

示例 6–3 添加 NetApp NAS 法定设备

以下示例显示了当 clsetup 添加 NetApp NAS 法定设备时所生成的 clquorum 命令。此外,该示例还显示了检验步骤。


Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization on any cluster node.

[Start the clsetup utility:]
# clsetup
[Select Quorum>Add a quorum device]
[Answer the questions when prompted.]
[You will need the following information.]
  [Information:                Example:]
  [Quorum Device               Netapp_nas quorum device]
  [Name:        		         qd1]
  [Filer:                      nas1.sun.com]
  [LUN ID:                     0]

[Verify that the clquorum command was completed successfully:]
 clquorum add -t netapp_nas -p filer=nas1.sun.com,-p lun_id=0 qd1
 
    Command completed successfully.
[Quit the clsetup Quorum Menu and Main Menu.]
[Verify that the quorum device is added:]
# clquorum list -v
 
Quorum         Type
-------         ----
qd1             netapp_nas
scphyshost-1    node
scphyshost-2    node