Sun Cluster 软件安装指南(适用于 Solaris OS)

如何在附加群集节点上配置 Sun Cluster 软件 (scinstall)

执行此过程,将新节点添加到现有群集。

  1. 确保已安装所有必需的硬件。

  2. 确保已安装支持 Sun Cluster 软件的 Solaris OS。

    如果节点上已安装了 Solaris 软件,必须确保 Solaris 安装满足 Sun Cluster 软件和任何其他要在群集中安装的软件的要求。有关安装 Solaris 软件需要满足 Sun Cluster 软件要求方面的信息,请参阅如何安装 Solaris 软件

  3. 确保节点上安装了 Sun Cluster 软件包。

    请参阅如何安装 Sun Cluster 软件包

  4. 完成以下配置工作单。

    表 2–8 已添加的节点配置工作单

    组件 

    说明/示例 

    在此输入答案 

    软件修补程序安装 

    是否希望 scinstall 为您安装修补程序?

    是  |  否 

    如果是,修补程序目录是什么? 

     

    是否要使用修补程序列表? 

    是  |  否 

    发起节点 

    支持节点的名称是什么? 

    选择群集中任一活动节点。

     

    群集名称 

    要使节点加入的群集的名称是什么? 

     

    检查 

    是否要运行 sccheck 验证实用程序?

    是  |  否 

    群集传输自动发现 

    是否要使用自动发现以配置群集传输? 

    如果否,请提供以下附加信息: 

    是  |  否 

    点对点电缆 

    向群集中添加的节点是否使此群集成为双节点群集? 

    是  |  否 

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

    是  |  否 

    群集传输结点 

    如果已使用,两个传输结点的名称是什么? 

      缺省值:switch1switch2


    第一个

      

    第二个

      

    群集传输适配器和电缆 

    两个传输适配器的名称是什么? 

    第一个

      

    第二个

      

    各个传输适配器将连接到何处(传输结点还是其他适配器)?

      结点缺省值:switch1switch2


      

    对于传输结点,是否要使用缺省端口名称? 

    是 | 否 

    是 | 否 

    如果否,您要使用什么端口名称? 

      

    全局设备文件系统 

    全局设备文件系统的名称是什么? 

      缺省值:/globaldevices


     

    自动重新引导 

    是否需要 scinstall 在安装之后自动重新引导该节点?

    是  |  否 

    有关规划指南的信息,请参见规划 Solaris OS规划 Sun Cluster 环境

  5. 如果要将此节点添加到单节点群集,请确定是否存在两个群集互连。

    添加节点之前,必须具有已配置的至少两条电缆或两个适配器。


    # scconf -p | grep cable
    # scconf -p | grep adapter
    
    • 如果输出显示两条电缆或两个适配器的配置信息,请继续执行步骤 6

    • 如果输出未显示电缆或适配器的配置信息,或者仅显示一条电缆或一个适配器的配置信息,请配置新的群集互连。

    1. 在现有群集节点上,启动 scsetup(1M) 实用程序。


      # scsetup
      

    2. 选择菜单项“群集互连”。

    3. 选择菜单项“添加传输电缆”。

      按照说明指定要添加到群集中的节点名称、传输适配器的名称,并指定是否使用传输结点。

    4. 如果需要,重复步骤 c 以配置第二个群集互连。

      完成后,退出 scsetup 实用程序。

    5. 验证群集现在是否已配置两个群集互连。


      # scconf -p | grep cable
      # scconf -p | grep adapter
      

      命令输出结果应该显示至少两个群集互连的配置信息。

  6. 如果要将此节点添加到现有的群集,请将新节点添加到群集的授权节点列表。

    1. 在所有活动群集成员上,启动 scsetup(1M) 实用程序。


      # scsetup
      

      显示“Main Menu”。

    2. 选择菜单项 “新建节点”。

    3. 选择菜单项,指定可能添加其自身的机器的名称。

    4. 按照提示操作,将节点名称添加到验证过的机器列表中。

      如果无误地完成任务,scsetup 实用程序将输出消息 Command completed successfully

    5. 退出 scsetup 实用程序。

  7. 成为要配置的群集节点上的超级用户。

  8. 安装 Sun Web Console 软件包。

    Sun Cluster 软件需要这些软件包,即使您不使用 Sun Web Console。

    1. 将 Sun Cluster 3.1 9/04 CD-ROM 放入 CD-ROM 驱动器。

    2. 切换到 /cdrom/cdrom0/Solaris_arch/Product/sun_web_console/2.1/ 目录,其中 archsparcx86

    3. 运行 setup 命令。


      # ./setup
      

      setup 命令用于安装支持 Sun Web Console 的所有软件包。

  9. 如果要使用任何以下功能,请安装附加软件包。

    • 远程共享内存应用程序编程接口 (RSMAPI)

    • 用于互连传输的 SCI-PCI 适配器

    • RSMRDT 驱动程序


    注意 –

    RSMRDT 驱动程序只能在运行已启用 RSM 的 Oracle9i 版本 2 SCI 配置的群集中使用。有关详细的安装和配置说明,请参阅 Oracle9i 版本 2 的用户文档。


    1. 确定哪些软件包必须安装。

      下表列出了各功能所需的 Sun Cluster 3.1 9/04 软件包以及安装各组软件包时的必须遵循的顺序。scinstall 实用程序不会自动安装这些软件包。

      功能 

      要安装的附加 Sun Cluster 3.1 9/04 软件包 

      RSMAPI 

      SUNWscrif

      SCI-PCI 适配器 

      SUNWsci SUNWscid SUNWscidx

      RSMRDT 驱动程序 

      SUNWscrdt

    2. 确保已安装所有相关的 Solaris 软件包。

      请参见如何安装 Solaris 软件中的步骤 8

    3. 在 Sun Cluster 3.1 9/04 CD-ROM 上,转到 Solaris_arch/Product/sun_cluster/Solaris_ver/Packages/ 目录,其中 archsparcx86ver8(对于 Solaris 8)或 9(对于 Solaris 9) 。


      # cd /cdrom/cdrom0/Solaris_arch/Product/sun_cluster/Solaris_ver/Packages/
      

    4. 安装附加软件包。


      # pkgadd -d . packages
      

    5. 如果要将节点添加到单节点群集,请重复这些步骤,以向原群集节点添加相同的软件包。

  10. 在 Sun Cluster 3.1 9/04 CD-ROM 上,转到 Solaris_arch/Product/sun_cluster/Solaris_ver/Tools/ 目录,其中 archsparcx86,其中 ver8(对于 Solaris 8)或 9(对于 Solaris 9) 。


    # cd /cdrom/cdrom0/Solaris_arch/Product/sun_cluster/Solaris_ver/Tools/
    

  11. 启动 scinstall 实用程序。


    # /usr/cluster/bin/scinstall
    

  12. 按照以下指导信息使用交互式的 scinstall 实用程序:

    • 交互式 scinstall 使您可以提前键入。因此,如果未立即显示下一个菜单屏幕,请勿多次按 Return 键。

    • 除非另外指明,否则按 Control-D 键可返回到一系列相关问题的开始处或者返回到 “主菜单”。

    • 缺省答案或以前会话的答案将显示在问题末尾的方括号 ([ ]) 中。按 Return 键即可输入括号中的答复而无需键入。

  13. 从“主菜单”中选择菜单项“安装群集或群集节点”。


      *** Main Menu ***
    
        Please select from one of the following (*) options:
    
          * 1) Install a cluster or cluster node
            2) Configure a cluster to be JumpStarted from this install server
            3) Add support for new data services to this cluster node
          * 4) Print release information for this cluster node        
            4) Upgrade this cluster node
          * 5) Print release information for this cluster node
    
    
          * ?) Help with menu options
          * q) Quit
    
        Option:  1
    

  14. 从“安装菜单”中选择菜单项“以节点形式将此计算机添加到现有的群集”。

  15. 按照菜单提示进行操作以提供中的答案 (来自步骤 4 中完成的工作单)。

    scinstall 实用程序将配置节点并将节点引导到群集中。

  16. 切换到 CD-ROM 中的目录,然后弹出 CD-ROM。


    # eject cdrom
    

  17. 在所有其他节点上重复此过程以将其添加到群集中,直到完全配置了这些节点。

  18. 从活动的群集节点中,阻止任何其他节点加入群集。


    # /usr/cluster/bin/scconf -a -T node=.
    
    -a

    添加

    -T

    指定验证选项

    node=.

    指定将带点 (.) 的节点名称添加到认证列表中,以阻止任何其他节点将自身添加到群集中

    或者,也可以使用 scsetup(1M) 实用程序。有关步骤,请参见Sun Cluster 系统管理指南(适用于 Solaris OS)》的“添加和删除群集节点”中的“如何将节点添加到授权的节点列表中”。

  19. 更新法定选票计数。

    增加或减少附着到法定设备的节点数时,群集不会自动重新计算法定选票计数。此步骤将重新建立正确的法定选票。

    使用 scsetup 实用程序删除每个法定设备,然后将其添加回配置中。一次对一个法定设备执行此操作。

    如果群集仅有一个法定设备,请首先配置第二个法定设备,然后删除和重新添加原法定设备。然后,删除第二个法定设备,将群集返回到其原配置。

  20. 安装 Sun StorEdge QFS 文件系统软件。

    按照Sun StorEdge QFS and Sun StorEdge SAM-FS Software Installation and Configuration Guide中的初始安装过程进行操作。

  21. (可选的) SPARC:要安装 VERITAS 文件系统,请转至SPARC: 如何安装 VERITAS 文件系统 软件?

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

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

示例 – 在其他节点上配置 Sun Cluster 软件。


 >>> 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 \
           -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-3" 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
Copying the security keys from "phys-schost-1" ... done

Setting the node ID for "phys-schost-3" ... done (id=3)
 
Verifying the major number for the "did" driver with "phys-schost-1" ...done
  
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 that the EEPROM parameter "local-mac-address?" is set to "true" ...done
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 ...