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

添加配置记录设备

本节提供了添加法定设备的过程。有关确定群集所必需的法定选票计数的数目 、 建议的法定配置和故障防护,请参见《Sun Cluster 概念指南(适用于 Solaris OS)》中的“法定和法定设备”

Sun Cluster 支持以下两种类型的法定设备:SCSI 和 Network Appliance (NetApp) NAS。下节中将提供这些设备的添加过程:

您还可以使用 SunPlex Manager GUI 来完成这些过程。有关详细信息,请参阅 SunPlex Manager 的联机帮助。

有关在以下过程中所使用的命令的信息,请参见 scsetup(1M)scconf(1M) 手册页。

Procedure如何添加 SCSI 法定设备

要完成此过程,请用节点共享的设备 ID (device ID, DID) 来标识磁盘驱动器。使用 scdidadm 命令可以查看 DID 名称的列表。有关附加信息,请参阅 scdidadm(1M) 手册页。

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

  2. 启动 scsetup 实用程序。


    # scsetup
    

    将显示 scsetup 主菜单。

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

    这时将显示“Quorum”菜单。

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

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

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

    scsetup 实用程序将询问您要使用哪种全局设备。

  6. 键入您正在使用的全局设备。

    scsetup 实用程序将提示您确认是否要将新的法定设备添加到指定的全局设备。

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

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

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


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


示例 5–1 添加 SCSI 法定设备

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


Become superuser on any cluster node.

[执行 scsetup 实用程序:]
# scsetup
Select Quorum>Add a quorum device.
Select SCSI device.
Type the global device your are using.
d20
Type yes to continue adding the new quorum device.

yes
[检验 scconf 命令是否成功完成:]
 
scconf -a -q globaldev=d20
 
    Command completed successfully.
Quit the scsetup Quorum Menu and Main Menu.
[检验法定设备是否已添加: ]
# scstat -q
 
-- Quorum Summary --
 
  Quorum votes possible: 4
  Quorum votes needed:   3
  Quorum votes present:  4
 
-- 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:  /dev/did/rdsk/d20s1  1        1       Online
  Device votes:  /dev/did/rdsk/d20s2  1        1       Online

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