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

如何在第一个群集节点上安装 Sun Cluster 软件 (scinstall)

安装 Solaris 操作环境后,在群集的一个节点上执行此任务以安装 Sun Cluster 软件并建立群集。


注意:

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


  1. 确保已安装了 Solaris 操作环境来支持 Sun Cluster 软件。

    必须按"如何安装 Solaris 软件"中的说明安装 Solaris 软件。即使节点上已安装了 Solaris 软件,也还是必须重新安装它,才能确保 Solaris 安装满足 Sun Cluster 软件和任何其他要在群集中安装的软件的要求。

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

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

    • "群集互连工作表"

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

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

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

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

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

    • 否则转到步骤 6

    • 如果是,则从 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-2 支持 RSMAPI 和 SCI-PCI 适配器的 Sun Cluster 3.0 软件包

      功能 

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

      RSMAPI 

      SUNWscrif

      SCI-PCI 适配器 

      SUNWsci SUNWscid SUNWscidx

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


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

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


    # ./scinstall
    

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

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

    • 交互式的 scinstall 使您可以提前键入。因此,在下一个菜单屏幕弹出之前,请不要多次按 Return ?

    • 除非另外指明,否则按 Control-D 键可返回到一系列相关问题的起始处或返回到 "Main Menu"。如果安装了 Sun Cluster 软件之后按 Control-D 键 来终止会话,scinstall 将询问您是否要它取消安装那些软件包。

    • 您针对如何处理会话所作的回答将存储为下次运行该菜单选项时的缺省值。 缺省回答显示在提示末尾的方括号 ([ ]) 之中。


    提示:

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


  8. 在 "Main Menu" 上,键入 1(建立新群集)。

    阅读了 "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:1
     
     *** Establishing a New Cluster ***
    ...
     Do you want to continue (yes/no) [yes]?yes
    

  9. 当提示是否继续安装 Sun Cluster 软件包时,键入 yes


    >>> Software Package Installation <<<
      
        Installation of the Sun Cluster framework software packages will 
        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 键继续下一屏幕。

  10. 指定群集名称。


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

  11. 运行预安装检查。


    >>> 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 检测到的问题,然后返回步骤 7并重新启动 scinstall

  12. 指定将成为该群集一部分的其他节点的名称。


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

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

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

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


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

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


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


    注意:

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


  15. 指定群集是否使用传输结点。

    • 如果这是两个节点的群集,请指定是否使用传输结点。


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


      提示:

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


    • 如果该群集有三个或更多节点,则必须使用传输结点。按 Return 键继续下一屏幕。


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

  16. 此群集是否使用传输结点?

    • 如果是,指定传输结点的名称。可以使用缺省名称 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]?

    • 否则跳到步骤 17.。

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

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


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

  18. 如果群集使用传输结点,请指定第一个传输结点的名称及其端口。

    否则,跳到步骤 19


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


    注意:

    如果配置使用 SCI 适配器,则当您得到提示要求输入适配器连接(端口名称)时,请不要接受缺省值。而是提供该节点物理连接到的 Dolphin 交换机上找到的端口名称(0123)。以下示例显示了拒绝缺省端口名称并指定 Dolphin 交换机端口名称 0 的提示和回答。


        Use the default port name for the "adapter" connection (yes/no) [yes]?no
        What is the name of the port you want to use?0
    


  19. 选择第二个群集互连传输适配器。

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


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

    如果使用 scinstall 命令,则至多可以配置两个适配器。如果使用 scsetup 实用程序,则安装 Sun Cluster 软件之后可以配置附加适配器。

  20. 如果群集使用传输结点,请指定第二个传输结点的名称及其端口。

    否则,请跳到步骤 21


        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:


    注意:

    如果配置使用 SCI 适配器,当您得到提示要求输入适配器端口名称时,请不要接受缺省值。而是提供该节点物理连接到的 Dolphin 交换机上找到的端口名称(0123)。以下示例显示了拒绝缺省的端口名称并指定 Dolphin 交换机端口名称 0 的提示和回答。


        Use the default port name for the "adapter" connection (yes/no) [yes]?no
        What is the name of the port you want to use?0
    


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


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

  22. 是否要安装所有 Sun Cluster 软件修补程序?


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

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

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

  23. 接受或拒绝生成的 scinstall 命令。

    此时会显示根据您的输入生成的 scinstall 命令,以供您确认。


    >>> Confirmation <<<
     
        Your responses indicate the following options to scinstall:
     
          scinstall -ik  \
    ...
        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 处理期间可能显示的输出示例。

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


      注意:

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


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


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

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

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

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

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

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

    在 Sun Cluster 软件安装程序形成群集并建立了群集中第一个安装的节点之后,此第一个节点会重新引导。

  26. 安装群集中的其他节点。

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

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

以下示例说明在节点 phys-schost-1(群集中第一个要安装的节点)上完成 scinstall 安装任务时,所执行的 scinstall 命令和所显示的进度消息。该群集将有四个节点并使用以太网适配器和传输结点。


>>> Confirmation <<<
  
    Your responses indicate the following options to scinstall:
  
      scinstall -ik \
           -C sc-cluster \
           -F \
           -T node=phys-schost-1,node=phys-schost-2,node=phys-schost-3,node=phys
-schost-4,authtype=sys \
           -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
  
Initializing cluster name to "sc-cluster" ... done
Initializing authentication options ... done
Initializing configuration for adapter "hme1" ... done
Initializing configuration for adapter "hme3" ... 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
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.061401232831
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.10559
  
  
Rebooting ...