Delete a host (VCF 9.x)
You can delete a host from a Self-deployed environment when you no longer need it. You remove the host from its cluster with VMware Cloud Foundation (VCF) 9.x tools first, and then delete it with the Amazon Elastic VMware Service console or the AWS CLI. Before you delete a host, make sure that the cluster keeps enough hosts for your VCF topology.
For minimum host counts, see the Broadcom documentation for VCF
Don’t use the Amazon EC2 console to stop, start, or terminate Amazon EVS hosts. On hosts with local storage, these actions cause the loss of the vSAN data on the instance store volumes. To create, replace, or delete a host, use the Amazon EVS console, the AWS CLI, or the Amazon EVS API. Deleting a host from the Amazon EC2 console can leave your environment in an inconsistent state.
To delete every host and the environment, see Clean up a Self-deployed environment instead. For EVS-deployed environments (VCF 5.2.x), see Delete a host (VCF 5.x).
Step 1: Remove the host from VCF
In VCF
-
Place the host in maintenance mode in the vSphere Client, and migrate its VMs to the other hosts in the cluster.
-
Remove the host from its cluster and from the VCF inventory.
For the procedures, see the Broadcom documentation for VCF
For a diskless host, the datastores of the cluster are on external storage, so removing the host doesn’t delete them.
Step 2: Delete the host
To delete the host in the Amazon EVS console or with the AWS CLI, use the following steps.
Example
You have deleted the host. To check the environment after the change, see Monitor environment status.