- Connect to vPostgres DB. For more information, see Connecting to the embedded vPostgres Database in a Windows installed vCenter Server 6.0.
- Run this query to find the CTID of the duplicate.
SELECT ID,CTID from VPX_VM where ID=id;
Note: Replace id with the VM ID per the log errors.
- Run this query to find the duplicate entry.
SELECT CTID,ID,DNS_NAME,COUNT(ID) FROM VPX_VM GROUP BY ID,DNS_NAME HAVING COUNT(ID) > 1;
Note: Make a note of the CTID of each duplicate VM ID.
- Using the higher CTID for each ID, delete it from the table.
DELETE FROM VPX_VM WHERE CTID='CTID'
Note: Replace ctid with the CTID found in step 3.
- Restart vCenter Server Service.