kubectl get pvc -n <namespace> | grep <pvc name> select * from cns.volume_info where volume_name ~ 'pvc-<id>';
VCDB=# select * from cns.volume_info where volume_name ~ 'pvc-<>'; volume_id | volume_name | volume_type | mark_for_delete | static_provision | datastore | vclock | is_cns_volume | disk_path | backing_object_id | capacity | last_modified_date | used_capacity | create_time | allocated_space-----------+-------------+-------------+-----------------+------------------+-----------+--------+---------------+-----------+-------------------+----------+--------------------+---------------+-------------+-----------------(0 rows)"level":"info","time":"YYYY-MM-DDTHH:MM:SSZ","caller":"syncer/fullsync.go:776","msg":"FullSync for VC <VC FQDN>: create is required for volume: \"<volume-id>\""}{"level":"warn","time":"YYYY-MM-DDTHH:MM:SSZ","caller":"syncer/fullsync.go:460","msg":"FullSync for VC <VC FQDN>: Failed to create volume with the spec: (types.CnsVolumeCreateSpec) {\n DynamicData: (types.DynamicData) {\n },\n Name: (string) (len=40) \"pvc-<id>\",\n VolumeType: (string) (len=5) \"BLOCK\",\n Datastores: ([]types.ManagedObjectReference) <nil>,\n Metadata: ... EntityType: (string) (len=23) \"PERSISTENT_VOLUME_CLAIM\",\n EntityName: (string) (len=27) \"<pod-name>\",\n Namespace: (string) (len=24) \"<namespace>\",\n ClusterID: (string) (len=8) \"<cluster-id>\"\n }\n }\n })\n },\n ContainerClusterArray: ([]types.CnsContainerCluster) (len=1 cap=1) {\n (types.CnsContainerCluster) {\n DynamicData: (types.DynamicData) {\n },\n ClusterType: (string) (len=10) \"KUBERNETES\",\n ClusterId: (string) (len=8) \"<cluster-id>\",\n BackingDiskUrlPath: (string) \"\",\n BackingDiskObjectId: (string) \"\"\n }),\n Profile: ([]types.BaseVirtualMachineProfileSpec) <nil>,\n CreateSpec: (types.BaseCnsBaseCreateSpec) <nil>,\n VolumeSource: (types.BaseCnsVolumeSource) <nil>\n}\n. Err: ServerFaultCode: The object or item referred to could not be found."}vSphere 7.0, 8.0
TKR 1.27.11
TKGM 2.5.1
Accidental removal or a synchronization issue between datastore and database
Resync the datastore in the vCenter database.
psql -d VCDB -U postgres
select * from cns.volume_info where volume_name ~ 'pvc-<id>';
https://<VCIP>/vslm/mob//?moid=StorageLifecycleManager&method=VslmSyncDatastoreds:///vmfs/volumes/########-########-####-############.fullSync=truefcdId should be blank
service-control --restart vsan-health
select * from cns.volume_info where volume_name ~ 'pvc-<id>';