Replace a failed host (Self-deployed)
Replace a host in a Self-deployed environment when it fails, or before an EC2 system-maintenance or instance-retirement event occurs.
You add a new host with the Amazon Elastic VMware Service console or the AWS CLI.
You then move the cluster workloads to it with VMware Cloud Foundation (VCF) 9.x tools and delete the old host.
For when to replace a host, see Host maintenance and retirement events.
For EVS-deployed environments (VCF 5.2.x), see Replace a host (EVS-deployed).
Replace a host with local storage before the scheduled event occurs. If EC2 reboots the instance during the event, you lose the vSAN data that’s stored on its instance store volumes.
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.
Diskless hosts have no instance store volumes, and your data stays on your external storage.
Before you begin
Before you begin, make sure that the following are true.
-
Your Host count per EVS environment quota allows one more host than the environment has. You might need to request a quota increase for maintenance that requires host replacement. For more information, see Service quotas for Amazon EVS.
-
You created the A and PTR DNS records for the new host. For more information, see Step 2: Create DNS records.
-
You know the instance type and ESX version of the hosts in the cluster. The new host must use the same instance type and ESX version.
-
Any spare host or Capacity Reservation that you keep for replacements is available. For more information, see Reserve capacity for hosts.
Step 1: Add the new host
Create the new host, and for a diskless host, connect it to the external storage of the cluster. For the steps, see Step 1: Create the host and Step 2: Connect a diskless host to external storage. Get the ESX root password of the new host from AWS Secrets Manager.
Step 2: Move the workloads and remove the old host from VCF
In VCF
-
Add the new host to the cluster that contains the host to be replaced.
-
If the old host still runs, place it in maintenance mode in the vSphere Client and migrate its VMs to the other hosts.
-
Remove the old host from the cluster and from the VCF inventory.
For the procedures, see the Broadcom documentation for VCF
Step 3: Delete the old host
To delete the old host in the Amazon EVS console or with the AWS CLI, use the following steps.
Example
You have replaced the host. To check the environment after the change, see Monitor environment status. If a step fails, see Troubleshoot hosts.