Permanently Decommissioning Hosts and Reshuffling Disks in a vSAN OSA Cluster
search cancel

Permanently Decommissioning Hosts and Reshuffling Disks in a vSAN OSA Cluster

book

Article ID: 460608

calendar_today

Updated On:

Products

VMware vSAN

Issue/Introduction

This article details the end to end procedure for permanently decommissioning ESXi hosts from existing VMware vSAN Original Storage Architecture (OSA) clusters and reshuffling capacity drives between clusters to maintain storage capacity.

Scenario Details

  • There are 2 clusters named "Cluster_1" and "Cluster_2". 
  • Deduplication and compressions are not enabled on these clusters.
  • Both are standard clusters (Not Stretched)
  • Cluster wide requirements are listed below:

    • Cluster_1 (Donor Cluster):

      • Sizing: 12 nodes running vSAN OSA.
      • Disk Configuration: 2 disk groups per host. Each group contains 1 cache tier SSD and 4 capacity drives ((1 Cache + 2 Capacity)*2 disk groups)
      • Action: Permanently decommission 6 hosts (Host-11 through Host-16) and remove 2 capacity drives from each host (12 hosts).

        • Host-11
        • Host-12
        • Host-13
        • Host-14
        • Host-15
        • Host-16

    • Cluster_2 (Recipient Cluster):

      • Sizing: 6 nodes running vSAN OSA.
      • Disk Configuration: 2 disk groups per host. Each group contains 1 cache tier SSD and 4 capacity drives ((1 Cache + 2 Capacity)*2 disk groups)
      • Action: Add the 24 harvested capacity disks across the 4 remaining hosts (6 disks per host, 3 per disk group), then permanently decommission 2 hosts (Host-21 and Host-22) from this cluster.

        • Host-21
        • Host-22

Environment

  • VMware vSAN 7.x
  • VMware vSAN 8.x
  • VMware vSAN 9.x

Resolution

Note: Before following any troubleshooting steps, make sure to have healthy backups for all VMs.

Cluster "Cluster_1": 
  • Decommission the targeted 6 hosts from the vSAN cluster and from vCenter:
  1. Login into vCenter. Navigate to vSAN cluster > Monitor > vSAN > Skyline Health and ensure the cluster is healthy with 100% cluster health.
  2. Ensure that there is no resync on the vSAN cluster.
  3. The current cluster contains 12 hosts, but the plan is to reduce the number of hosts to 6. Therefore, check the current VM storage policies. If required, update the policies to ensure they meet the minimum host requirement for a 6 node cluster.
  4. Wait for the resync to complete.
  5. Place the hosts in Maintenance Mode with Full Data Evacuation and delete the disk groups:

    • Right click on the host which is to be decommissioned > Maintenance mode > Enter Maintenance mode with Full Data Evacuation > Pre-check.

      This pre check simulates what the cluster would look like if it is not contributing to the vSAN cluster. From the pre check results "Verify that none of the vSAN objects go in reduced availability or inaccessible state".

    • Place the host into maintenance mode with full data migration and wait for resync operation to complete.
    • Delete the disk group(s) that reside on the host you want to decommission:

      • Select the vSAN cluster > Configure > Disk Management > Select the host to be decommissioned > View Disks > Select the disk group > Remove the Disk group.

      • Alternatively from command line, the following can be done to remove/delete disk group.

        esxcli vsan storage list    ==> To Get VSAN Disk Group UUID
        esxcli vsan storage remove -u <VSAN Disk Group UUID>

      • Wait for the resync to complete.
      • Detach unwanted 2 disks (storage devices) from host.

  6. Repeat this procedure to all the remaining hosts which are to be decommissioned.
     
  7. Move the ESXi hosts out of the cluster (you can drag and drop the ESXi hosts directly to the datacenter level) to disassociate it from vSAN.

    • Note: The command "esxcli vsan cluster leave"  can also be run from the command line of the host to leave the cluster.

    • Incase the unicastagent entry for this host exists on the remaining hosts in the cluster, run command "esxcli vsan cluster unicastagent list" to validate on each host.

      From the above list, validate if the vSAN IP of the removed host remains.

    • If present, remove it using the command: esxcli vsan cluster unicastagent remove -a <Host_VSAN_IP>

  8. Run below mentioned command on any of the existing hosts and ensure the targeted hosts are not a part of vSAN cluster anymore

    esxcli vsan cluster get

  9. Disconnect these hosts from vCenter and remove them from inventory.
  10. Engage hardware vendor to un present 2 detached disks from selected hosts as per the requirement.
  • Remove 2 hard disks from remaining 6 hosts which are going to stay back as part of existing vSAN cluster. 
  1. Login into vCenter. Navigate to vSAN cluster > Monitor > vSAN > Skyline Health and ensure the cluster is healthy with 100% cluster health.
  2. Ensure that there is no resync on the vSAN cluster.
  3. Place first host in maintenance mode, delete disk groups and re create the disk group.

    • Right click on the host > Maintenance mode > Enter Maintenance mode with Full Data Evacuation > Pre-check.

      This pre check simulates what the cluster would look like if it is not contributing to the vSAN cluster. From the pre check results "Verify that none of the vSAN objects go in reduced availability or inaccessible state".

    • Place the host into maintenance mode with full data migration and wait for resync operation to complete.
    • Select the vSAN cluster > Configure > Disk Management > Select the host > View Disks > Select the disk group > Remove the Disk group.
    • Alternatively from command line, the following can be done to remove/delete disk group. 

      esxcli vsan storage list    ==> To Get VSAN Disk Group UUID
      esxcli vsan storage remove -u <VSAN Disk Group UUID

    • Re create the disk group excluding the 2 disks which are to be removed. Refer to Remove Disk Groups or Devices from vSAN
    • Detach unwanted 2 disks (storage devices) from host.

  4. Exit the host from maintenance mode and wait for the resync to complete.
  5. Ensure the skyline health looks green with 100% cluster health.
  6. Repeat this procedure to all the remaining hosts on which you need to remove disks.  
  7. Engage hardware vendor to un present 2 detached disks from each host as per your requirement.
Cluster "Cluster_2" :
  • Add disks to hosts:

    At this stage, you will get 24 (2 disks * 12 hosts) disks which are removed from the cluster Cluster_1 to add it to this cluster. Therefore, 6 disks ca be added to each host (3 per disk group). Find the procedure below:
  1. Ensure you present the disks which are to be added to respective hosts from hardware end.
  2. Login into vCenter. Navigate to vSAN cluster > Monitor > vSAN > Skyline Health and ensure the cluster is healthy with 100% cluster health.
  3. Ensure that there is no resync on the vSAN cluster.
  4. Add disks to each disk group on first host. 

    Refer to Add a Capacity Device to vSAN Disk Group

  5. Ensure the skyline health looks green with 100% cluster health.
  6. Repeat this procedure to remaining 3 hosts on which you need to add disks.  
  • Decommission the targeted 2 hosts from vSAN cluster and from the vCenter.
  1. Login into vCenter. Navigate to vSAN cluster > Monitor > vSAN > Skyline Health and ensure the cluster is healthy with 100% cluster health.
  2. Ensure that there is no resync on the vSAN cluster.
  3. Current cluster contains 6 hosts. But the plan is to reduce the number of hosts to 4. Therefore, check the current VM policies. If required, change the policies to ensure the policy meets minimum requirement.
  4. Wait for the resync to complete.
  5. Place the hosts in maintenance mode with full data evacuation and delete disk groups.

    • Right click on the host which is to be decommissioned > Maintenance mode > Enter Maintenance mode with Full Data Evacuation > Pre-check.

      This pre check simulates what the cluster would look like if it is not contributing to the vSAN cluster. From the pre check results "Verify that none of the vSAN objects go in reduced availability or inaccessible state".

    • Place the host into maintenance mode with full data migration and wait for resync operation to complete.
    • Delete the disk group(s) that reside on the host you want to decommission:

      • Select the vSAN cluster > Configure > Disk Management > Select the host to be decommissioned > View Disks > Select the disk group > Remove the Disk group.

      • Alternatively from command line, the following can be done to remove/delete disk group.

        esxcli vsan storage list    ==> To Get VSAN Disk Group UUID
        esxcli vsan storage remove -u <VSAN Disk Group UUID

      • Wait for the resync to complete.

    • Repeat this procedure to all the remianing hosts which are to be decommissioned.
       
  6. Move the ESXi hosts out of the cluster (you can drag and drop the ESXi hosts directly to the datacenter level) to disassociate it from vSAN.

    • Note: The command "esxcli vsan cluster leave"  can also be run from the command line of the host to leave the cluster.

    • Incase the unicastagent entry for this host exists on the remaining hosts in the cluster, run command "esxcli vsan cluster unicastagent list" to validate on each host:

      From the above list, validate if the vSAN IP of the removed host remains.

    • If present, remove it using the command: esxcli vsan cluster unicastagent remove -a <Host_VSAN_IP>

  7. Run below mentioned command on any of the existing hosts and ensure the targeted hosts are not a part of vSAN cluster anymore

    esxcli vsan cluster get

  8. Disconnect these hosts from vCenter and remove them from inventory.