Sun Cluster 3.0 12/01 软件安装指南

如何在其他群集节点上安装 Sun Cluster 软件 (scinstall)

在第一个安装的节点上安装了 Sun Cluster 软件并建立了群集之后,在群集中其他每个要安装的节点上执行此任务。您也可以使用此过程向现有的群集添加新节点。


注意:

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


  1. 确保第一个安装的节点已成功安装了 Sun Cluster 软件并且群集也已建立。

    有关建立群集的安装过程,请参阅"如何在第一个群集节点上安装 Sun Cluster 软件 (scinstall)"

  2. 如果要向完全安装好的现有群集添加一个新节点,请确保您已执行了以下任务。

    1. 准备群集以接受新的节点。

      遵循《Sun Cluster 3.0 12/01 系统管理指南》中 "如何将群集节点添加到授权节点列表中"这一过程中的说明进行操作。

    2. 在新节点上安装 Solaris 软件。

      遵循"如何安装 Solaris 软件"中的说明进行操作。无论新节点上是否安装了 Solaris 操作环境,您都必须执行这一步骤。

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

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

    • "群集互连工作表"

    有关规划指南的信息,请参阅"规划 Sun Cluster 环境"

  4. 成为要进行安装的群集节点上的超级用户。

  5. 如果从 CD-ROM 安装,请将 Sun Cluster 3.0 12/01 CD-ROM 插入要安装和配置的节点的 CD-ROM 驱动器中。

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

  6. 是否要将 Remote Shared Memory Application Programming Interface (RSMAPI) 或 SCI-PCI 适配器用于互连传输?

    • 否则转到步骤 7

    • 如果是,则从 Sun Cluster 3.0 12/01 CD-ROM 的 Packages 目录安装附加软件包。scinstall(1M) 并不自动安装这些软件包。


      # cd /cdrom/suncluster_3_0_u2/SunCluster_3.0/Packages
      # pkgadd -d . packages
      

      下表列出了支持 RSMAPI 或 SCI-PCI 适配器所需的 Sun Cluster 3.0 软件包和安装它们所必须遵循的顺序。

      表 2-3 支持 RSMAPI 和 SCI-PCI 适配器的 Sun Cluster 3.0 软件包

      功能 

      待安装的附加 Sun Cluster 3.0 软件包 

      RSMAPI 

      SUNWscrif

      SCI-PCI 适配器 

      SUNWsci SUNWscid SUNWscidx

  7. 转到 /cdrom/suncluster_3_0_u2/SunCluster_3.0/Tools 目录。


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

  8. 启动 scinstall 实用程序。


    # ./scinstall
    

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


    小心:小心:

    正在安装其他任何节点时,请不要重新引导或关闭第一个安装的节点,即便使用另一个节点作为发起节点也是如此。在将定额投票分配给群集节点并且禁用了群集安装模式之前,建立群集的第一个安装的节点是具有定额投票的唯一节点。 如果群集仍处于安装模式下,那么重新引导或关闭第一个安装的节点将引起定额丢失,从而导致系统出现紧急情况。


  9. 在 "Main Menu" 上,键入 2(将此机器添加为节点)。

    阅读完 "Establishing a New Cluster" 屏幕中的信息之后,键入 yes 继续下一屏幕。


     *** 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]?yes
    

  10. 当得到提示询问是否继续安装 Sun Cluster 软件包时,键入 yes


    >>> Software Installation <<<
      
        Installation of the Sun Cluster framework software packages will only
        take a few minutes to complete.
      
        Is it okay to continue (yes/no) [yes]?yes
      
    ** Installing SunCluster 3.0 **
            SUNWscr.....done
    ...Hit ENTER to continue:

    安装好所有软件包之后,按 Return 键继续下一屏幕。

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


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

  12. 指定群集名称。


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

  13. 运行预安装检查。


    >>> Check <<<
     
        This step runs sccheck(1M) to verify that certain basic hardware and
        software pre-configuration requirements have been met. If sccheck(1M)
        detects potential problems with configuring this machine as a cluster
        node, a list of warnings is printed.
     
    Hit ENTER to continue:

    如果 sccheck 命令检测到任何问题,它会显示有关所发现的问题的信息并提示您采取下一步操作。


    The sccheck utility has detected the following potential problems:
    ...  
    Hit ENTER to continue:
    ...
     What would you like to do?
      
            1) Proceed with the installation anyway
            2) Retry sccheck
            q) Return to the main menu
      
        Option:

    如果您看到此 sccheck 错误消息,请键入以下选项之一作为回答。

    • 如果您知道可以忽略该 sccheck 消息,而不会有任何危险(例如,《Sun Cluster 3.0 12/01 发行说明》中的通知指出新近的检验会触发无害的错误消息),则键入 1 以继续安装。

    • 如果不退出 scinstall 实用程序就可以纠正问题,则纠正问题,然后键入 2 以再次运行 sccheck

    • 键入 q 停止安装。纠正 sccheck 检测到的问题,然后返回步骤 8并重新启动 scinstall

  14. 指定是否使用自动查找来配置群集传输。

    如果配置不使用以太网适配器,则回答 no 并转到步骤 16


    >>> Autodiscovery of Cluster Transport <<<
      
        If you are using ethernet adapters as your cluster transport
        adapters, autodiscovery is the best method for configuring the
        cluster transport.
      
        Do you want to use autodiscovery (yes/no) [yes]?
    ...
        The following connections were discovered:
      
            node1:adapter switch node2:adapter 
            node1:adapter switch node2:adapter 
      
        Is it okay to add these connections to the configuration (yes/no) [yes]?

  15. 是否在步骤 14中使用自动查找?

  16. 指定此是否为两个节点的群集。


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

  17. 是否已指定它为两个节点的群集?

    • 如果是,则指定是否使用传输结点。


          Does this two-node cluster use transport junctions (yes/no) [yes]?

    • 否则,按 Return 键以继续。如果群集包含三个或更多的节点,则必须使用传输结点。


          Since this is not a two-node cluster, you will be asked to configure
          two transport junctions.
        
      Hit ENTER to continue:

  18. 是否已指定群集将使用传输结点?

    • 如果是,则指定传输结点。


      >>> 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]?

    • 否则跳到步骤 19

  19. 指定第一个群集互连传输适配器。

    键入 help,列出该节点可用的所有传输适配器。


    >>> Cluster Transport Adapters and Cables <<<
    ...
        What is the name of the first cluster transport adapter (help)?adapter
    

  20. 指定第一个传输适配器连接的设备。

    • 如果传输适配器使用传输结点,则指定该结点的名称及其端口。


          Name of the junction to which "adapter" is connected [switch1]?
      ...
          Use the default port name for the "adapter" connection (yes/no) [yes]?

    • 如果传输适配器不使用传输结点,则指定它将连接的其他传输适配器的名称。


          Name of adapter on "node1" to which "adapter" is connected?adapter
      
  21. 指定第二个群集互连传输适配器。

    键入 help,列出该节点可用的所有传输适配器。


        What is the name of the second cluster transport adapter (help)?adapter
    

  22. 指定第二个传输适配器连接的设备。

    • 如果传输适配器使用传输结点,则指定该结点的名称及其端口。


          Name of the junction to which "adapter" is connected [switch2]?
          Use the default port name for the "adapter" connection (yes/no) [yes]?
       
      Hit ENTER to continue:

    • 如果传输适配器不使用传输结点,则指定它将连接的其他传输适配器的名称。


          Name of adapter on "node1" to which "adapter" is connected?adapter
      

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


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

  24. 是否要安装任何 Sun Cluster 软件修补程序?


    >>> Automatic Reboot <<<
    ...
        Do you want scinstall to reboot for you (yes/no) [yes]?

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

    • 否则,键入 yes 以接受自动重新引导。

  25. 接受或拒绝生成的 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 将等待,直到已经有了发起节点为止。

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


      注意:

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


    • 如果您拒绝该命令,scinstall 会询问您是否要取消安装 Sun Cluster 软件。


          Do you want to de-install the Sun Cluster software (yes/no) [no]?

      scinstall 使您返回到 "Main Menu" 之后,可以重新运行菜单选项 2 并提供不同的回答。此时,您先前对会话所作的回答显示为缺省值。

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

    有关修补程序的位置和安装说明,请参阅《Sun Cluster 3.0 12/01 发行说明》。

  27. 重新引导节点以建立群集。

    如果在步骤 26中安装修补程序之后已重新引导了节点,则不需要再一次重新引导该节点。


    小心:小心:

    正在安装其他任何节点时,请不要重新引导或关闭第一个安装的节点,即便使用群集中的另一个节点作为发起节点也是如此。在将定额投票分配给群集节点并且禁用了群集安装模式之前,建立群集的第一个安装的节点是具有定额投票的唯一节点。 如果群集仍处于安装模式下,那么重新引导或关闭第一个安装的节点将使定额丢失,从而导致系统出现紧急情况。只要在"如何执行安装后设置"这一过程中从未执行过 scsetup(1M) 命令,群集节点就始终处于安装模式。


  28. 在其他每个节点上重复此过程,直到所有节点都完全配置好为止。

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

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

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

示例 - 在第二个节点上安装 Sun Cluster 软件

以下示例说明了在节点 phys-schost-2(群集中要安装的第二个节点)上完成 scinstall 安装任务时,所执行的 scinstall 命令和所显示的进度消息。


>>> Confirmation <<<
  
    Your responses indicate the following options to scinstall:
  
      scinstall -ik \
           -C sc-cluster \
           -N phys-schost-1 \
           -A trtype=dlpi,name=hme1 -A trtype=dlpi,name=hme3 \
           -B type=switch,name=switch1 -B type=switch,name=switch2 \
           -m endpoint=:hme1,endpoint=switch1 \
           -m endpoint=:hme3,endpoint=switch2
  
    Are these the options you want to use (yes/no) [yes]?
  
    Do you want to continue with the install (yes/no) [yes]?
  
Checking device to use for global devices file system ... done
  
Adding node "phys-schost-2" to the cluster configuration ... done
Adding adapter "hme1" to the cluster configuration ... done
Adding adapter "hme3" to the cluster configuration ... done
Adding cable to the cluster configuration ... done
Adding cable to the cluster configuration ... done
  
Copying the config from "phys-schost-1" ... done
Setting the node ID for "phys-schost-2" ... done (id=2)
  
Checking for global devices global 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.61501001054
Power management is incompatible with the HA goals of the cluster.
Please do not attempt to re-configure power management.
  
Ensure network 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.9853
  
  
Rebooting ...