Today I was facing a weird issue in my vCloud Lab. All my datastores have disappeared from vCloud Director and the storage policy was not showing any datastore. I have included a few snapshots from my lab here:
1: Storage Policies was not listing any datastore
2: Selecting Datastore and Datastore Cluster was not listing any datastore either
3: Due to this my Provider vDC was not able to see any datastores
4: And since Provider vDC had no visibility to any datastore, my Organization vDC was throwing this alert
This was strange as till last night everything was all right in my lab.
I started googling and got a cool VMware KB 2075366 which helped me in resolving my issue.
This is what I done to resolve the issue:
1: SSH to my vCloud Director Server and navigated to directory /opt/vmware/vcloud/bin and fired the following commands:
[root@vcd bin]# ./cell-management-tool -u svcvcloud -p MYPassword cell –quiesce true
[root@vcd bin]# service vmware-vcd stop
2: Login to SQL Server Management Studio and selected my vCloud Database and ran the following SQL query
Note: Before running the below query make sure you have taken backup of your database
delete from dbo.cluster_compute_resource_inv;… Read More