Manually deleting a VMware vSphere Storage Appliance 5.x cluster
search cancel

Manually deleting a VMware vSphere Storage Appliance 5.x cluster

book

Article ID: 309647

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

This article provides steps to manually delete a VMware vSphere Storage Appliance 5.x cluster without using the cleanup.bat script.


Environment

VMware vSphere Storage Appliance 5.5.x
VMware vSphere Storage Appliance 5.1.x

Resolution

Notes: Before proceeding, ensure to save all data and/or virtual machines that are stored in a VSADs- datastore (NFS) that is a part of the VSA cluster to be deleted.
To delete a VSA Cluster manually:
  1. Launch the vSphere Client and connect to vCenter Server.
  2. Right-click the data center object associated with the cluster to be deleted and click Remove.
  3. In the vSphere Client, click Home > Administration > Licensing.
  4. Select the Asset option.
  5. Click the VMware vSphere Storage Appliance asset.
  6. Click Copy to Clipboard and save the license key for future use.
  7. Right-click the VMware vSphere Storage Appliance asset and click Remove Asset.
  8. Close the vSphere Client.
  9. Connect directly to vCenter Server via RDP or a direct console.
  10. In the vCenter Server system, launch the Services snap-in.
  11. Restart the VMware vCenter Management Webservices service.
  12. In vCenter Server, open a command prompt and change to the C:\Program Files\VMware\Infrastructure\VSA Manager\tools directory.
  13. In the command prompt window, enter this command:

    "C:\Program Files\VMware\Infrastructure\jre\bin\java.exe" -jar WSCLI.jar IP_Address destroyVCS

    Where IP_Address is the IP address of the VSA cluster to be deleted.

    For example:

    "C:\Program Files\VMware\Infrastructure\jre\bin\java.exe" -jar WSCLI.jar 10.131.3.120 destroyVCS

    You see multiple lines of output along with some errors including a connection timed out error. These errors can be safely ignored.

  14. Launch vSphere Client and connect to vCenter Server again.
  15. Click Home > Administration > Licensing and click the Asset option. You should now see the VMware vSphere Storage Appliance asset as Unlicensed.
  16. In vCenter Server, switch back to the Hosts and Clusters view.
  17. Right-click at the top level and select New Datacenter.
  18. Enter a name for the new data center. If you plan to create a new VSA cluster, ensure you enter an appropriate name.
  19. Right-click the new data center object and click Add Host for each host that you want to add.
  20. After the hosts are added, switch to the Home > Inventory > Datastores and Datastore Clusters view.
  21. Right-click the first VSADs- datastore associated with the former cluster and click Unmount. The hosts selected should be the ones that were added back.
  22. Click Next > Finish. Repeat for any other VSADs- datastore associated with the former cluster.
  23. Go to the Home > Inventory > Hosts and Clusters view. You should still see the former VSA virtual appliance.
  24. Right-click the former VSA virtual appliance and click Power > Power Off.
  25. Right-click the former VSA- appliance virtual machines and click Delete from disk.

    Note: If you do not want to create a new VSA cluster now, remove the data center object and then add your hosts to appropriate locations, as required.

  26. If the VSA cluster service was installed on a different server, RDP to that server, open a command prompt window, and change to the C:\Program Files\VMware\Infrastructure\VSA Manager\VSAClusterService-1.5\bin directory.
  27. Run this command:

    vmvcs.bat cleanup

    This command stops and restarts the cluster service and performs background cleanup tasks.

  28. After the script completes, recreate another VSA cluster, if required, using this server. Also, start the VSA cluster service from the Services snap-in.

If you want to create a new cluster on the hosts:

  1. From the vSphere Client connected to vCenter Server, click Home > Administration > Licensing.
  2. Select the Asset option.
  3. Click the VMware vSphere Storage Appliance asset and click Change License Key.
  4. Enter the license key that you copied in Step 6 of the preceding procedure.
  5. Right-click the new data center object and click the VSA Manager tab.
  6. Answer Yes if you get an SSL security alert.

    The VSA Installer wizard starts and allows you to create a new cluster. Follow and complete the wizard to create the new cluster.