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

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

当您将 Network Appliance (NetApp) 网络附加存储 (NAS) 设备用做法定设备时,您需要满足以下要求:

请参见以下 Network Appliance NAS 文档以获取有关创建和设置 Network Appliance NAS 设备和 LUN 的信息。您可以在 http://now.netapp.com 访问以下文档。

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

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

  2. 成为群集中任一个节点的超级用户。

  3. 启动 scsetup 实用程序。


    # scsetup
    

    将显示 scsetup 主菜单。

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

    这时将显示“Quorum”菜单。

  5. scsetup 实用程序提示您确认是否要添加法定设备时,键入添加法定设备选项的相应编号,然后键入 yes

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

  6. scsetup 实用程序提示您确认是否要添加 netapp_nas 法定设备时,键入 netapp_nas 法定设备选项的相应编号,然后键入 yes

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

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

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

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

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

    该名称应是网络可存取的名称或该文件管理器的地址。

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

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

    scsetup 实用程序将提示您确认是否要在文件管理器上添加新的法定设备。

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

    如果新法定设备已成功添加,scsetup 实用程序将显示一条相应的消息。

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


    # scstat -q
    
  12. 对共享一个存储附件的每组节点重复从步骤 4步骤 11 的操作。


示例 5–2 添加 NetApp NAS 法定设备

以下示例显示了 scsetup 添加 NetApp NAS 法定设备时所生成的 scconf 命令和检验步骤。


Make sure that all Sun Cluster nodes are online and can communicate with the NetApp clustered filer.

Become superuser on any cluster node.
[执行 scsetup 实用程序:]
# scsetup
Select Quorum>Add a quorum device.
Select Netapp_nas quorum device.
Type the name of the quorum device you are adding.

qd1
Type the name of the filer of the new quorum device.

nas1.sun.com
Type the ID of the quorum device LUN on the filer.
0
Type yes to continue adding the new quorum device.

yes
[检验 scconf 命令是否成功完成:]
 
scconf -a -q name=qd1,type-=netapp_nas,filer=nas1.sun.com,lun_id=0
 
    Command completed successfully.
Quit the scsetup Quorum Menu and Main Menu.
[检验法定设备是否已添加:]
# scstat -q
 
-- Quorum Summary --
 
  Quorum votes possible: 5
  Quorum votes needed:   3
  Quorum votes present:  5
 
-- Quorum Votes by Node --
 
                    Node Name           Present Possible Status
                    ---------           ------- -------- ------
  Node votes:       phys-schost-1       1        1       Online
  Node votes:       phys-schost-2       1        1       Online
 
-- Quorum Votes by Device --
 
                   Device Name         Present Possible Status
                   -----------         ------- -------- ------
 Device votes:     qd1                  1        1       Online
 Device votes:     /dev/did/rdsk/d3s2   1        1       Online
 Device votes:     /dev/did/rdsk/d4s2   1        1       Online