使用命令行界面将节点加入集群

在新安装的控制器模块准备就绪后,您可以使用 cluster setup 命令将每个节点加入集群。

关于本任务

步骤

  1. 在命令行界面提示符处使用 cluster setup 命令启动集群设置向导。
    示例
    ::> cluster setup     
    
    Welcome to the cluster setup wizard....
    
    Use your web browser to complete cluster setup by accessing 
    https://10.63.11.29
    
    Otherwise, press Enter to complete cluster setup using the 
    command line interface:                                                           
    
    注:有关使用基于图形用户界面的集群设置向导的说明,请参见本指南中的“使用 System Manager 向集群添加节点”主题。
  2. 按 Enter 以使用命令行界面完成此任务。在系统提示创建新集群或加入现有集群时,输入 join
    示例
    Do you want to create a new cluster or join an existing cluster? {create, join}:
    join
  3. 在提示是否使用现有集群接口配置时,按 Enter 以接受此配置。
    示例
    Existing cluster interface configuration found:
    
    Port    MTU     IP              Netmask
    e1a     9000    169.254.87.75   255.255.0.0
    
    Do you want to use this configuration? {yes, no} [yes]:
  4. 按照提示加入现有集群。
    示例
    Step 1 of 3: Join an Existing Cluster
    You can type "back", "exit", or "help" at any question.
    
    Enter the name of the cluster you would like to join [cluster1]: cluster1
    
    Joining cluster cluster1                       
    
    Starting cluster support services ..
    
    This node has joined the cluster cluster1.
    
    Step 2 of 3: Configure Storage Failover (SFO)
    You can type "back", "exit", or "help" at any question.
    
    SFO will be enabled when the partner joins the cluster.
    
    Step 3 of 3: Set Up the Node
    
    Cluster setup is now complete.
    
    
    系统会自动重命名此节点,使其与集群名称匹配。
  5. 在此集群上,使用 cluster show 命令验证此节点是否已加入此集群。
    示例
    cluster1::> cluster show
    Node                  Health  Eligibility
    --------------------- ------- ------------
    cluster1-1            true    true
    cluster1-2            true    true
    cluster1-3            true    true
    3 entries were displayed.
  6. 对新安装的第二个控制器模块重复步骤 15
    在第二个节点上,集群设置向导会在以下方面有所不同:
    • 由于其配对节点已加入一个集群,因此它会默认加入现有集群。
    • 它会自动为这两个节点启用存储故障转移。
  7. 使用 storage failover show 命令验证是否已启用存储故障转移以及是否可执行存储故障转移。
    示例
    以下输出显示此集群的所有节点(包括新添加的节点)均已启用存储故障转移并可执行存储故障转移:
    cluster1::> storage failover show
                                  Takeover
    Node           Partner        Possible State
    -------------- -------------- -------- -------------------------------------
    cluster1-1     cluster1-2     true     Connected to cluster1-2
    cluster1-2     cluster1-1     true     Connected to cluster1-1
    cluster1-3     cluster1-4     true     Connected to cluster1-3
    cluster1-4     cluster1-3     true     Connected to cluster1-4
    4 entries were displayed.