跳到主要内容

使用 CLI 将节点加入集群

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

关于本任务

  • 必须在两个节点上均执行此过程。

  • 一次必须只加入一个节点,不能同时添加。

  1. 在 CLI 提示符处使用 cluster setup 命令启动集群设置向导。

    示例

    Welcome to the cluster setup wizard.

    You can enter the following commands at any time:
    "help" or "?" - if you want to have a question clarified,
    "back" - if you want to change previously answered questions, and
    "exit" or "quit" - if you want to quit the cluster setup wizard.
    Any changes you made before quitting will be saved.

    You can return to cluster setup at any time by typing "cluster setup".
    To accept a default or omit a question, do not enter a value.

    This system will send event messages and periodic reports to Lenovo Technical
    Support. To disable this feature, enter
    Auto Support modify -support disable
    within 24 hours.

    Enabling Auto Support can significantly speed problem determination and
    resolution should a problem occur on your system.

    Type yes to confirm and continue {yes}:

  2. 为节点管理端口输入网络信息。

    示例

    Enter the node management interface port [e0M]: e0M
    Enter the node management interface IP address: <ip>
    Enter the node management interface netmask: <subnet_mask>
    Enter the node management interface default gateway: <default_gateway>
    A node management interface on port e0M with IP address <ip> has been created.

    Use your web browser to complete cluster setup by accessing
    https://<ip>

    Otherwise, press Enter to complete cluster setup using the command line
    interface:
  3. 提示创建新集群或加入现有集群时,请输入 join

    示例

    Do you want to create a new cluster or join an existing cluster? {join}:
    join
  4. 提示配置现有集群接口时,按 Enter 键接受该请求或输入 yes

    示例

    Existing cluster interface configuration found:

    Port MTU IP Netmask
    e0a 9000 169.254.5.171 255.255.0.0
    e0b 9000 169.254.148.183 255.255.0.0

    Do you want to use this configuration? {yes, no} [yes]:
  5. 根据提示加入现有集群。

    示例

    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.


    节点会自动重命名,以匹配集群名称。
  6. 在集群上使用 cluster show 命令验证节点是否为集群的一部分。

    示例

    cluster1::> cluster show
    Node Health Eligibility
    --------------------- ------- ------------
    cluster1-1 true true
    cluster1-2 true true
    cluster1-3 true true
    3 entries were displayed.
  7. 为第二个新安装的控制器模块重复16

    第二个节点的集群设置向导有以下不同点:
    • 默认情况下会加入现有集群,因为其伙伴已加入此集群。

    • 将自动在两个节点上启用存储故障转移。

  8. 使用 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.