How to add a new node to a Nutanix cluster using CLI

If you want to expand you Nutanix cluster with a new node you have the option to do this from the GUI. But sometime you want to do it from the command line using the CLI.

Before you start check a couple of things:

Is IPV6 working between the Nutanix hosts?

  1. Get the IPV6 address of the node you want to add by entering the command:
    ifconfig etho | grep inet6

    You will get a output something like:
    inet6 addr: fe80::20c::29ff:feb7:a9c7/64 Scope:Link

  2. Try to ping the node you want to add from a cluster node by entering the command:
    ping6 -I eth0 fe80::20c::29ff:feb7:a9c7

    You should get a reply

If IPV6 is working you can add the new node to the cluster.

  1. Enter the NCLI interface by entering ncli
  2. Check if the node you want to add is discovered by entering:
    cluster discover-nodes

    You should get a output something like:
    ncli> cluster discover-nodes
    Cluster Id                           :
    Hypervisor Address         : xx.xx.x.xx
    Ip                                         : fe80::20c:29ff:feb7:a9c7%eth0
    Ipmi Address                    : xx.xx.x.xx
    Node Position                   : A
    Node Serial                        : ZMxxxxxxxxxx
    Node Uuid                         : d1b9d9c3-7f6f-4cb8-bf16-f379fd73e342
    Rackable Unit Model       : NX-3051
    Rackable Unit Serial        : 13SMxxxxxxxx
    Service Vm Address         : xx.xx.xx.xx
    Svm Id                                :

    Notice the Node Uuid

  3. Add the node to the cluster by entering the command:
    cluster add-node node-uuid=[node uuid from step 4]

After this the node will be add to your cluster

About Michael
Michael Wilmsen is a experienced VMware Architect with more than 20 years in the IT industry. Main focus is VMware vSphere, Horizon View and Hyper Converged with a deep interest into performance and architecture. Michael is VCDX 210 certified, has been rewarded with the vExpert title from 2011, Nutanix Tech Champion and a Nutanix Platform Professional.

RSS feed for comments on this post.

Leave a Reply

You must be logged in to post a comment.