Sun Cluster 3.0 U1 安装指南

如果安装 Sun Cluster 软件 (scinstall)

安装 Solaris 操作环境后,在群集的每个节点上执行此任务以安装 Sun Cluster 软件并建立新的群集节点。您也可以使用此过程向现有的群集添加新节点。


注意:

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


  1. 从 《Sun Cluster 3.0 发行说明》中获得以下现成的配置规划工作表。

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

    • "群集互连工作表"

    有关规划指南,请参阅 "规划 Sun 群集环境"

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

  3. 如果从 CD-ROM 安装,请将 Sun Cluster 3.0 7/01 CD-ROM 插入节点的 CD-ROM 驱动器中以进行安装和配置。

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

  4. 转到 /cdrom/suncluster_3_0u1/SunCluster_3.0/Tools 目录。


    # cd /cdrom/suncluster_3_0u1/SunCluster_3.0/Tools
    

  5. 您正在向一个现有的群集中安装新的节点吗?

  6. 安装第一个节点并建立新的群集。

    使用配置计划工作表中的信息按照提示安装 Sun Cluster 软件。

    1. 启动 scinstall (1M) 实用程序。


      # ./scinstall
      

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

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

      • 除非另外指明,否则按 Control-D 将返回一系列相关问题的开始位置或者返回主菜单。

      • 会话回答存储为下次时间改菜单选项的缺省值。缺省回答显示在提示末尾的括号 ([ ]) 内。


      提示:

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


    2. 在主菜单上,输入1(建立新的群集)


       *** Main Menu ***
       
          Please select from one of the following (*) options:
       
            * 1) Establish a new cluster using this machine as the first node
            * 2) Add this machine as a node in an established cluster
              3) Configure a cluster to be JumpStarted from this install server
              4) Add support for new data services to this cluster node
              5) Print release information for this cluster node
       
            * ?) Help with menu options
            * q) Quit
       
          Option:  1
       
       *** Establishing a New Cluster ***
      ...
       Do you want to continue (yes/no) [yes]?  y
      

    3. 指定群集名称。


       >>> Cluster Name <<<
      ...
          What is the name of the cluster you want to establish?  clustername 
      

    4. 指定将成为群集一部分的其它节点的名称。


       >>> Cluster Nodes <<<
      ...
          Node name:  node2
          Node name (Ctrl-D to finish):  <Control-D>
       
          This is the complete list of nodes:
      ...
          Is it correct (yes/no) [yes]? 

    5. 指定是否使用数据加密标准 (DES) 认证。

      缺省情况下,只有当节点以物理方式连接到了专用互连并且节点名称已经在步骤 d中指定的情况下,Sun Cluster 软件才会允许该节点连接到该群集。不过,该节点实际上会通过公共网络与发起节点通信,因为专用互连尚未配置完毕。通过使发起节点能够更加可靠地认证试图联络它、以便更新群集配置的节点,DES 认证在安装时提供了进一步的安全性。

      如果您为获得进一步的安全性而选择使用 DES 认证,则必须在任何节点加入群集之前配置所有必要的加密键。有关详细信息,请参阅 keyserv (1M) 和 publickey (4) 手册页。


       >>> Authenticating Requests to Add Nodes <<<
      ...
          Do you need to use DES authentication (yes/no) [no]? 

    6. 指定专用网地址和网络屏蔽。


      注意:

      群集构建成功后,您就不能更改专用网地址了。



       >>> Network Address for the Cluster Transport <<<
      ...
          Is it okay to accept the default network address (yes/no) [yes]? 
          Is it okay to accept the default netmask (yes/no) [yes]? 
    7. 如果这是一个双节点群集,请指定群集是否使用传输结点。


      提示:

      您可以指定群集使用传输结点,无论这些节点是否直接互连。如果指定群集使用传输结点,您以后可以更方便地向群集添加新节点。



       >>> Point-to-Point Cables <<<
       ...
          Does this two-node cluster use transport junctions (yes/no) [yes]? 
    8. 如果该群集使用传输结点,则指定传输结点的名称。

      如果群集包含三个或更多的节点,您必须使用传输结点。您可以使用缺省的名称 switchN 或自行创建名称。


       >>> Cluster Transport Junctions <<<
       ...
          What is the name of the first junction in the cluster [switch1]? 
          What is the name of the second junction in the cluster [switch2]? 

    9. 指定群集互连传输适配器,以及它们连接到的传输结点(如果已采用)的名称。

      通过使用 scinstall 命令,您最多可以配置两个适配器。通过使用 scsetup 实用程序,您可以在安装 Sun Cluster 软件之后配置附加的适配器。


       >>> Cluster Transport Adapters and Cables <<<
       ...
          What is the name of the first cluster transport adapter?  adapter
       ...
          Name of the junction to which "adapter" is connected [switch1]? 
       ...
          What is the name of the second cluster transport adapter?  adapter
       ...
          Okay to use the default for the "qfe0" connection (yes/no) [yes]? 
        
          What is the name of the second cluster transport adapter?  adapter
       
          Name of the junction to which "adapter" is connected [switch2]? 
           Use the default port for the "adapter" connection [yes]? 

    10. 指定全局设备文件系统的名称。


       >>> Global Devices File System <<<
      ...
          The default is to use /globaldevices.
       
          Is it okay to use this default (yes/no) [yes]? 

    11. 是否要安装 Sun Cluster 软件修补程序?

      • 如果是,请在"自动重新引导"屏幕上输入 no 以拒绝自动重新引导。

      • 如果否,输入 yes 以接受自动重新引导。


       >>> Automatic Reboot <<<
      ...
          Do you want scinstall to reboot for you (yes/no) [yes]? 
    12. 接受或拒绝生成的 scinstall 命令。

      根据您的输入生成的 scinstall 命令将显示出来,要求您予以确认。


       >>> Confirmation <<<
       
          Your responses indicate the following options to scinstall:
       
            scinstall -i  \
      ...
          Are these the options you want to use (yes/no) [yes]? 
          Do you want to continue with the install (yes/no) [yes]? 

      • 如果接受命令并继续安装,则 scinstall 将继续处理。"示例 - 安装 Sun Cluster 软件" 显示在 scinstall 处理期间可能看到的输出的一个示例。

      • 如果拒绝命令,则 scinstall 实用程序返回到主菜单。从这里可以重新运行菜单选项 1 并且提供一些不同的答案。您先前的回答显示为缺省值。

    Sun Cluster 安装输出记录在 /var/cluster/logs/install/scinstall.log.pid 文件中,其中 pidscinstall 实例的进程 ID 号。


    注意:

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


  7. 是否要安装 Sun Cluster 软件修补程序?

    • 如果是,则在节点上安装 Sun Cluster 软件修补程序并重新引导该节点。有关修补程序的位置和安装说明的信息,请参阅 《Sun Cluster 3.0 U1 发行说明》。

    • 如果否,并且 scinstall 在安装过程中重新引导了该节点,请转到步骤 8。如果 scinstall 没有重新引导节点,则在继续进行 步骤 8 之前,手工重新引导该节点以建立群集。

    Sun Cluster 软件安装形成群集并将此节点建立为群集第一个安装的的节点后,第一个节点重新引导。

  8. 安装群集的第二个节点。

    按照提示安装 Sun Cluster 软件。参考配置规划工作表中的信息。


    注意:

    在其它节点正在安装时不要重新引导或关闭第一个安装的节点,即使使用另一个节点作为发起节点。在将定额投票分配给群集节点并且禁用了群集安装模式之前,建立群集的第一个安装的节点是具有定额投票的唯一节点。重新引导或关闭第一个安装的节点会导致系统因丢失定额而处于应急状态。


    1. 启动 scinstall (1M) 实用程序。

      可以在正在第一个安装的节点上安装软件时执行此步骤。如果需要,等第一个节点完成安装后再安装第二个节点。


      # ./scinstall
      

    2. 在主菜单上,输入 2 (将此机器添加为节点)。


       *** Main Menu ***
       
          Please select from one of the following (*) options:
       
            * 1) Establish a new cluster using this machine as the first node
            * 2) Add this machine as a node in an established cluster
              3) Configure a cluster to be JumpStarted from this install server
              4) Add support for new data services to this cluster node
              5) Print release information for this cluster node
       
            * ?) Help with menu options
            * q) Quit
       
          Option:  2
       
        *** Adding a Node to an Established Cluster ***
      ...
          Do you want to continue (yes/no) [yes]? y
      

    3. 指定现有群集节点的名称,将其作为发起节点


       >>> Sponsoring Node <<<
      ...
          What is the name of the sponsoring node?  node1
      

    4. 指定群集名称。


       >>> Cluster Name <<<
      ...
          What is the name of the cluster you want to join?  clustername
      

    5. 指定这是否为一个双节点的群集,以及群集是否使用传输结点。

      如果群集包含三个或更多的节点,您必须使用传输结点。


       >>> Point-to-Point Cables <<<
      ...
          Is this a two-node cluster (yes/no) [yes]? 
       
          Does this two-node cluster use transport junctions (yes/no) [yes]? 

    6. 指定群集互连传输适配器和传输结点(如果有)。


       >>> Cluster Transport Adapters and Cables <<<
      ...
          What is the name of the first cluster transport adapter?  adapter
      ...
          Name of adapter on "node1" to which "adapter" is connected?  adapter
       
          What is the name of the second cluster transport adapter?  adapter
          Name of adapter on "node1" to which "adapter" is connected?  adapter
      

    7. 指定全局设备文件系统名称。


       >>> Global Devices File System <<<
      ...
          The default is to use /globaldevices.
       
          Is it okay to use this default (yes/no) [yes]? 

    8. 是否要安装 Sun Cluster 软件修补程序?

      • 如果是,请在"自动重新引导"屏幕上输入 no 以拒绝自动重新引导。

      • 如果否,输入 yes 以接受自动重新引导。


       >>> Automatic Reboot <<<
      ...
          Do you want scinstall to reboot for you (yes/no) [yes]? 
    9. 接受或拒绝生成的 scinstall 命令。

      根据您的输入生成的 scinstall 命令将显示出来,要求您予以确认。


       >>> Confirmation <<<
       
          Your responses indicate the following options to scinstall:
       
            scinstall -i  \
      ...
          Are these the options you want to use (yes/no) [yes]? 
          Do you want to continue with the install (yes/no) [yes]? 

      • 如果接受命令并继续安装,则 scinstall 将继续处理。"示例 - 安装 Sun Cluster 软件" 显示在 scinstall 处理期间可能看到的输出的一个示例。如果群集中还未建立发起节点,则 scinstall 将等待,直到发起节点可用。

      • 如果拒绝命令,则 scinstall 实用程序返回到主菜单。从这里可以重新运行菜单选项 2 并且提供一些不同的答案。您先前的回答显示为缺省值。

    Sun Cluster 安装输出记录在 /var/cluster/logs/install/scinstall.log.pid 文件中,其中 pidscinstall 实例的进程 ID 号。


    注意:

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


  9. 是否要安装 Sun Cluster 软件修补程序?

    • 如果是,则在节点上安装 Sun Cluster 软件修补程序并重新引导该节点。有关修补程序的位置和安装说明的信息,请参阅 《Sun Cluster 3.0 U1 发行说明》。


      注意:

      在其它节点正在安装时不要重新引导或关闭第一个安装的节点,即使使用另一个节点作为发起节点。在将定额投票分配给群集节点并且禁用了群集安装模式之前,建立群集的第一个安装的节点是具有定额投票的唯一节点。重新引导或关闭第一个安装的节点会导致系统因丢失定额而处于应急状态。只要您在 "如何执行后安装设置"过程中从未运行过 scsetup(1M) 命令,群集节点就始终处于安装模式。


    • 如果否,并且 scinstall 在安装过程中重新引导了该节点,请转到 步骤 10。如果 scinstall 没有重新引导节点,则在继续进行 步骤 10 之前,手工重新引导该节点以建立群集。

  10. 在每个附加节点上重复 步骤 8步骤 9 的操作,直到所有节点完全配置为止。

    在其它节点上开始安装之前,不需要等待第二个节点完成安装并重新引导。

  11. 设置名称服务的查找顺序。

    转到"如何配置名称服务开关"

示例 - 安装 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 ...