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

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

执行此过程向现有群集添加新节点。

  1. 在新的群集节点上安装硬件。

    1. 在新节点上安装主机适配器并检验所有现有群集互连是否可以支持此新节点。

      请参阅 Sun Cluster Hardware Administration Manual for Solaris OS

    2. 安装所有其它存储器。

      请参阅 Sun Cluster 3.x Hardware Administration Collection 中的相应手册。

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

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

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

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

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

    表 2–9 已添加节点配置工作表

    组件 

    说明/示例 

    在此输入答案  

    软件修补程序安装 

    是否要使用 scinstall 安装修补程序?

    是  |  否  

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

     

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

    是  |  否  

    发起节点 

    发起节点的名称是什么?  

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

     

    群集名称 

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

     

    检查 

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

    是  |  否  

    群集传输自动发现 

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

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

    是  |  否  

    点对点电缆 

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

    是  |  否  

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

    是  |  否  

    群集传输结点 

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

      缺省值: switch1switch2


    第一个

    第二个

    群集传输适配器和电缆 

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

      

    各个传输适配器分别连接到何处(传输结点或其它适配器)?

      结点缺省值: switch1switch2


      

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

    是 | 否 

    是 | 否  

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

      

    全局设备文件系统 

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

      缺省值: /globaldevices


     

    自动重新引导 

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

    是  |  否 

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

  5. 是否要将此节点添加到单节点群集中?

  6. 确定现有群集节点中是否存在两个群集互连。

    必须配置了至少两条电缆或两个适配器。


    # scconf -p | grep cable
    # scconf -p | grep adapter
    
    • 如果输出显示两条电缆或两个适配器的I配置信息,则跳到步骤 8

    • 如果输出并未显示任何电缆或适配器的信息,或仅显示了一条电缆或一个适配器的信息,则继续执行步骤 7

  7. 配置新的群集互连。

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


      # scsetup
      
      将显示“Main Menu”。

    2. 选择“Cluster interconnect”。

    3. 选择“Add a transport cable”。

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

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

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

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


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

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

  8. 向群集认证节点列表中添加新节点。

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


      # scsetup
      

      显示“Main Menu”。

    2. 选择“New nodes”。

    3. 选择“Specify the name of a machine which may add itself”。

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

    5. 检验任务是否已经成功。

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

    6. 退出 scsetup 公用程序。

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

  10. 启动 scinstall 公用程序。


    # /usr/cluster/bin/scinstall
    

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

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

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

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

  12. 从“Main Menu”中选择“Install a cluster or cluster node”。


      *** 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
    
          * ?) Help with menu options
          * q) Quit
    
        Option:  1
    

  13. 从“Install Menu”中选择“Add this machine as a node in an existing cluster”。

  14. 按照菜单提示将您的答案提供给 步骤 4 中完成的表 2–9

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

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

  16. 通过活动节点成员,阻止所有其它节点加入群集。


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

    添加

    -T

    指定验证选项

    node=.

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

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

  17. SPARC: 是否要安装 VERITAS File System?

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

以下示例显示执行的 scinstall 命令以及被公用程序记录为 scinstall 的消息如何在节点 phys-schost-3 上完成配置任务。 发起节点为 phys-schost-1


 >>> 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
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 ...