Unable to view ESXi host in list while trying to add host to cluster from SDDC
book
Article ID: 402921
calendar_today
Updated On:
Products
VMware SDDC Manager
Issue/Introduction
We can see the mentioned host as "Unassigned" under the list of hosts.
However, when we try to add it to the cluster, it does not appear in the Host Selection list.

Environment
SDDC Manager, VCF 4.x, 5.x
Cause
The primary datastore name has changed.
A new primary datastore is being used in the environment - this change has not been reflected in the SDDC Manager database.
Resolution
- Take a snapshot of the SDDC Manager
- ssh to the SDDC Manager as vcf and su to root
- Reflect the change in the datastore name in the SDDC Manager
- Connect to the database -
psql -U postgres -h localhost -d platform
- Retrieve the information on the primary datastore name currently set -
select id,datacenter,name,primary_datastore_name from cluster where primary_datastore_name=ยดwhat_sddc_understands_it_to_be_currently`;
- The command above returns an id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- Set the primary_datastore_name of id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx to what the new primary datastore name is actually now
update cluster set primary_datastore_name='what_it_actually_is_now' where id ='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';
- Exist the database -
You should be able to see the host in the list now.
Feedback
thumb_up
Yes
thumb_down
No