Migrating a vSAN node from one vSAN cluster to another vSAN cluster
search cancel

Migrating a vSAN node from one vSAN cluster to another vSAN cluster

book

Article ID: 326896

calendar_today

Updated On:

Products

VMware vSAN

Issue/Introduction

Symptoms:

This content provides steps to migrate a vSAN Node from one vSAN cluster to another vSAN cluster with the virtual machines residing on the node going to migrate.



Environment

VMware vSAN 6.6.x
VMware vSAN 7.0.x
VMware vSAN 6.5.x

Resolution

Perform the following steps to migrate a vSAN Node from one vSAN cluster to another vSAN cluster:

  1. Put the Host in maintenance mode with Full Data Migration.
  2. Once the host is in maintenance mode, delete the disk groups on that host.
  3. Through SSH or ESXi shell, run the below command to leave the host from the existing cluster:

    esxcli vsan cluster leave
     
  4. Right click on the ESXi Host > Connection > Disconnect.
  5. Drag and drop the disconnected host into the new cluster.
  6. Right click on the ESXi Host Connection > Connect.

    Note: This step connects the ESXi host back to vCenter.
     
  7. Open an SSH session to any existing host in the new cluster. Run the below command to get the Sub-Cluster UUID:

    esxcli vsan cluster get

    In the output make a note of the Sub-Cluster UUID.

    Example:

    [root@IS-EVO-02:~] esxcli vsan cluster get

    Cluster Information

    Enabled: true

    Current Local Time: 2017-05-12T07:58:40Z

    Local Node UUID: 548f2cd7-c7ce-9d2c-0663-3417ebe523ab

    Local Node Type: NORMAL

    Local Node State: MASTER

    Local Node Health State: HEALTHY

    Sub-Cluster Master UUID: 548f2cd7-c7ce-9d2c-0663-3417ebe523ab

    Sub-Cluster Backup UUID:

    Sub-Cluster UUID: 5e4ae17c-5fa6-4b9e-a40d-007dd6e00664

    Sub-Cluster Membership Entry Revision: 0

    Sub-Cluster Member Count: 1

    Sub-Cluster Member UUIDs: 548f2cd7-c7ce-9d2c-0663-3417ebe523ab

    Sub-Cluster Membership UUID: d2951259-7d13-609d-d0d4-a0369f4aadc0

    Unicast Mode Enabled: true

    Maintenance Mode State: ON
     
  8. Open an SSH session to the newly added host and run the below command to add the host to the new vSAN cluster :

    esxcli vsan cluster join -u "<sub-cluster uuid>"

    Here, <sub-cluster uuid> is the Sub Cluster UUID obtained from Step 8.

    Note: Now, the ESXi host is part of the new cluster.
     
  9. Recreate the Disk groups on the newly added host.
  10. If required to migrate other hosts, follow Steps 2 through 9 on the remaining hosts.