Sun Cluster 3.0 安装指南

如何安装 Sun Cluster 软件并且建立新的集群节点

在安装 Solaris 操作环境后,请对群集中的每个节点执行该任务。


注意:

如果使用了 scinstall(1M) 定制 JumpStart 方法安装软件,则 Sun Cluster 软件已经安装了。继续进行"如何配置名称服务开关"


  1. Sun Cluster 3.0 发行说明获得下列完成的配置规划工作表。

    • "群集和节点名称工作表"

    • "群集互连工作表"

    请参见第 1 章,规划 Sun Cluster 配置以获取规划指南。

  2. 成为群集节点的超级用户。

  3. 如果正在从 CD-ROM 中安装,请将 Sun Cluster 3.0 CD-ROM 插入要安装并配置的节点的 CD-ROM 驱动器中。

    如果卷管理守护程序 vold(1M)正在运行并且配置成管理 CD-ROM设备,则它自动将 CD-ROM 安装在 /cdrom/suncluster_3_0 目录中。

  4. 转换到 /cdrom_image/suncluster_3_0/SunCluster_3.0/Tools 目录。


    # cd /cdrom_image/suncluster_3_0/SunCluster_3.0/Tools
    
  5. 启动 scinstall(1M) 公用程序。


    # ./scinstall
    

    使用交互式的 scinstall 公用程序时请遵照以下指南。

    • 交互式的 scinstall 允许您提前键入。因此,如果不立即出现下一个屏幕,则不要多次按 Return 键。

    • 除非另外声明,否则按 Control_D 将返回一系列相关问题的开始或者返回主菜单。

    • 会话回答存储为下次时间改菜单选项的缺省值。

    • 直到在群集模式下成功引导节点时,才可以重新运行 scinstall 并且按需要更改配置信息。但是,如果节点的错误配置数据被推送到群集的已建立的部分,则可能需要首先删除错误的信息。为此,注册到活动的群集节点之一,然后使用 scsetup(1M)公用程序删除错误的适配器、结点或电缆信息。

  6. 要安装第一个节点并且建立新的群集,请输入 1(建立新的群集)。

    使用配置计划工作表中的信息按照提示安装 Sun Cluster 软件。将请求您输入下列信息。

    • 群集名称

    • 将成为该群集一部分的其它节点的名称。

    • 节点认证

    • 专用网地址和网络屏蔽-不能在成功形成群集后更改专用网地址

    • 群集互连(传输适配器和传输结点)-可以使用 scinstall 命令配置两个以下的适配器,但是以后可以使用 scsetup 公用程序配置更多的适配器。

    • 全局设备文件系统名称

    • 自动重新引导-如果有一些要安装的 Sun Cluster 软件修补程序,则不要选择自动重新引导

    完成回答提示后,显从输入中生成的 scinstall 命令以便确认。如果选择不接受该命令,则 scinstall 公用程序将您返回主菜单。从这里可以重新运行菜单选项 1 并且提供一些不同的答案。先前的项显示为缺省值。


    注意:

    除非您安装了自己的 /etc/inet/ntp.conf 文件,否则 scinstall 命令将为您安装一个缺省 ntp.conf 文件。 因为缺省文件在提供时带有对于 8 个节点的引用,所以 xntpd(1M) 守护程序可能在引导时发出关于部分这些引用的错误消息。您可以放心地忽略这些消息。有关如何在其他正常群集条件下抑制这些消息的信息,请参阅"如何更新网络时间协议(NTP)"


  7. 要群集的第二个节点,请输入 2(将该机器添加为一个节点)。

    可以在第一个节点仍在安装时开始该步骤。

    使用配置计划工作表中的信息按照提示安装 Sun Cluster 软件。将请求您输入下列信息。

    • 现有群集节点的名称,称为发起节点

    • 群集名称

    • 群集互连(传输适配器和传输结点)

    • 全局设备文件系统名称

    • 自动重新引导-如果有一些要安装的 Sun Cluster 软件修补程序,则不要选择自动重新引导

    完成回答提示后,显从输入中生成的 scinstall 命令以便确认。如果选择不接受该命令,则 scinstall 公用程序将您返回主菜单。从这里可以重新运行菜单选项 2 并且提供一些不同的答案。先前的回答显示为缺省值。

    如果选择继续安装并且还未建立发起节点,则 scinstall 等待发起节点成为可用。

  8. 对每个附加节点重复步骤 7,直到所有节点完全配置为止。

    在附加节点上开始安装时,不需要等待第二个节点完成安装。

  9. 安装所有 Sun Cluster 软件修补程序。

    有关修补程序的位置和安装说明的信息,请参阅Sun Cluster 3.0 发行说明

  10. 如果安装了 Sun Cluster 软件修补程序,则关闭群集,然后停机群集中的每个节点。

    重新引导群集的第一个节点之前,请使用 scshutdown 命令关闭群集。直到群集节点从安装模式中删除,只有建立群集的第一个节点(发起节点)才有 quorum 表决。在一个仍处于安装模式的已建立的群集中,如果在重新引导第一个节点之前不关闭该群集,则剩余群集节点不能获取 quorum 并且整个群集将关闭。

    群集节点保持在安装模式下,直到在"如何执行后安装设置"过程中第一次运行 scsetup(1M) 命令。

示例-安装 Sun Cluster 软件

下面的示例显示进度消息,该消息显示为 scinstall 安装任务在 phys-schost-1 节点中已完成,这是要在群集中安装的第一个节点。


** Installing SunCluster 3.0 **
        SUNWscr.....done.
        SUNWscdev...done.
        SUNWscu.....done.
        SUNWscman...done.
        SUNWscsal...done.
        SUNWscsam...done.
        SUNWscrsmop.done.
        SUNWsci.....done.
        SUNWscid....done.
        SUNWscidx...done.
        SUNWscvm....done.
        SUNWmdm.....done.
 
Initializing cluster name to "sccluster" ... done
Initializing authentication options ... done
Initializing configuration for adapter "hme2" ... done
Initializing configuration for adapter "hme4" ... done
Initializing configuration for junction "switch1" ... done
Initializing configuration for junction "switch2" ... done
Initializing configuration for cable ... done
Initializing configuration for cable ... done
Setting the node ID for "phys-schost-1" ... done (id=1)
 
Checking for global devices global file system ... done
Checking device to use for global devices file system ... done
Updating vfstab ... done
 
Verifying that NTP is configured ... done
Installing a default NTP configuration ... done
Please complete the NTP configuration after scinstall has finished.
 
Verifying that "cluster" is set for "hosts" in nsswitch.conf ... done
Adding the "cluster" switch to "hosts" in nsswitch.conf ... done
 
Verifying that "cluster" is set for "netmasks" in nsswitch.conf ... done
Adding the "cluster" switch to "netmasks" in nsswitch.conf ... done
 
Verifying that power management is NOT configured ... done
Unconfiguring power management ... done
/etc/power.conf has been renamed to /etc/power.conf.060199105132
Power management is incompatible with the HA goals of the cluster.
Please do not attempt to re-configure power management.
 
Ensure routing is disabled ... done
Network routing has been disabled on this node by creating /etc/notrouter.
Having a cluster node act as a router is not supported by Sun Cluster.
Please do not re-enable network routing.
 
Log file - /var/cluster/logs/install/scinstall.log.276
 
Rebooting ... 

从此处可转到何处

要设置名称服务查找顺序,请转到"如何配置名称服务开关"