本节提供了添加法定设备的过程。有关确定群集所必需的法定选票计数的数目 、 建议的法定配置和故障防护,请参见《Sun Cluster 概念指南(适用于 Solaris OS)》中的“法定和法定设备”。
Sun Cluster 支持以下两种类型的法定设备:SCSI 和 Network Appliance (NetApp) NAS。下节中将提供这些设备的添加过程:
您还可以使用 SunPlex Manager GUI 来完成这些过程。有关详细信息,请参阅 SunPlex Manager 的联机帮助。
有关在以下过程中所使用的命令的信息,请参见 scsetup(1M) 和 scconf(1M) 手册页。
要完成此过程,请用节点共享的设备 ID (device ID, DID) 来标识磁盘驱动器。使用 scdidadm 命令可以查看 DID 名称的列表。有关附加信息,请参阅 scdidadm(1M) 手册页。
成为群集中任一个节点的超级用户。
启动 scsetup 实用程序。
# scsetup |
将显示 scsetup 主菜单。
键入法定选项的相应编号。
这时将显示“Quorum”菜单。
当 scsetup 实用程序提示您确认是否要添加法定设备时,键入添加法定设备选项的相应编号,然后键入 yes。
scsetup 实用程序将询问您要添加哪种类型的法定设备。
键入 SCSI 法定设备选项的相应编号。
scsetup 实用程序将询问您要使用哪种全局设备。
键入您正在使用的全局设备。
scsetup 实用程序将提示您确认是否要将新的法定设备添加到指定的全局设备。
键入 yes 继续执行添加新法定设备的操作。
如果新法定设备已成功添加,scsetup 实用程序将显示一条相应的消息。
检验是否已添加法定设备。
# scstat -q |
以下示例显示了 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 |
当您将 Network Appliance (NetApp) 网络附加存储 (NAS) 设备用做法定设备时,您需要满足以下要求:
您必须安装 NetApp 的 iSCSI 许可证。
您必须在作为法定设备的群集文件管理器上对 iSCSI LUN 进行配置。
您必须配置 NetApp NAS 单元以使用 NTP 对时间进行同步。
为群集文件管理器所选定的 NTP 服务器中至少有一个为 Sun Cluster 节点的 NTP 服务器。
引导群集时,请始终在引导群集节点之前引导 NAS 设备。
如果引导设备的顺序不对,节点将找不到法定设备。如果节点在此情况下出现故障,群集将无法保持在服务中。如果出现这种情况,您必须重新引导整个群集,或者删除 NetApp NAS 法定设备然后重新添加。
群集仅可以在单个法定设备中使用 NAS 设备。
如果您需要其他法定设备,可以配置其他共享存储。使用同一 NAS 设备的其他群集可以在该设备上使用单独的 LUN 作为其法定设备。
请参见以下 Network Appliance NAS 文档以获取有关创建和设置 Network Appliance NAS 设备和 LUN 的信息。您可以在 http://now.netapp.com 访问以下文档。
设置 NAS 设备
《System Administration File Access Management Guide》
设置 LUN
《Host Cluster Tool for Unix Installation Guide》
安装 ONTAP 软件
《软件安装指南》、《升级指南》
导出群集卷
Data ONTAP Storage Management Guide
在群集节点上安装 NAS 支持软件包
登录到 http://now.netapp.com。从 "Software Download" 页中,下载《Host Cluster Tool for Unix Installation Guide》。
有关在 Sun Cluster 环境中安装 NetApp NAS 存储器设备的信息,请参见以下 Sun Cluster 文档:《Sun Cluster 3.1 With Network-Attached Storage Devices Manual for Solaris OS》。
请确保所有的 Sun Cluster 节点都处于联机状态,并且可以和 NetApp 群集文件管理器进行通信。
成为群集中任一个节点的超级用户。
启动 scsetup 实用程序。
# scsetup |
将显示 scsetup 主菜单。
键入定额选项的相应编号。
这时将显示“Quorum”菜单。
当 scsetup 实用程序提示您确认是否要添加法定设备时,键入添加法定设备选项的相应编号,然后键入 yes。
scsetup 实用程序将询问您要添加哪种类型的法定设备。
当 scsetup 实用程序提示您确认是否要添加 netapp_nas 法定设备时,键入 netapp_nas 法定设备选项的相应编号,然后键入 yes。
scsetup 实用程序将提示您提供新法定设备的名称。
键入正在添加的法定设备的名称。
法定设备的名称可以是任一名称。该名称仅用于继续执行后续的管理命令。
scsetup 实用程序将提示您提供新法定设备的文件管理器名称。
键入新法定设备的文件管理器名称。
该名称应是网络可存取的名称或该文件管理器的地址。
scsetup 实用程序将提示您提供该文件管理器的 LUN ID。
键入文件管理器上法定设备 LUN 的 ID。
scsetup 实用程序将提示您确认是否要在文件管理器上添加新的法定设备。
键入 yes 继续执行添加新法定设备的操作。
如果新法定设备已成功添加,scsetup 实用程序将显示一条相应的消息。
检验是否已添加法定设备。
# scstat -q |
以下示例显示了 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 |