In some situations First Class Disks used for storage nodes by Kubernetes may report as 'Inaccessible' (under 'Cluster > Monitor > vSAN > Virtual Objects') - entries seen consist of volume name followed by volume_id.
This article is applicable when:
VMware vCenter Server 8.x
VMware vCenter Server 9.x
VMware vSphere Kubernetes Service
Deleting volume objects (PVC/PV VMDK descriptor files) directly from the vSAN datastore can lead to the situation when vCenter shows volumes associated with removed VMDK files as 'Inaccessible'.
To remove First Class Disks showing as 'Inaccessible' under 'Cluster > Monitor > vSAN > Virtual Objects', perform the following steps:
NOTE: Before making any changes, take a backup of the vCenter Server Appliance.
NOTE: Verify with the internal Kubernetes administration team that no Container Volumes are missing.
service-control --stop vpxd /opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDBvolume_id for each volume_name noted earlier and make a note of each volume_id <-> volume_name pair, example:VCDB=# select volume_id, volume_name from cns.volume_info where volume_name like '%PX-##############################%';
volume_id | volume_name--------------------------------------+------------------------------------------############################ | PX-##############################
NOTE: volume_name corresponds to the PVC name displayed in the vCenter GUI.
volume_id's noted in previous step, example:VCDB=# delete from cns.volume_info where volume_id='volume_id_from_step_5';\q (or quit) and then press ENTER to quit psql shell.service-control --start vpxdSituation initially encountered with Portworx being used to manage First Class Disks.
No snapshots linked to the PVC volumes were found in this scenario; therefore, the approach outlined in the article Container Volume snapshot objects displayed as Inaccessible Virtual Objects in vSAN Cluster is not viable.