After vCenter Server is upgraded from v8.x to v9.0, volumes may be lost from CNS.
The volumes are actually present in the datastore, but they are missing from CNS DB.
These volumes are created by the vSphere CSI drivers.
vCenter Server 9.0
https://<VC_IP>/vslm/mob/?moid=StorageLifecycleManager&method=VslmSyncDatastoredatastoreUrl should follow the format, ds:///vmfs/volumes/UUID/.fullSync should be set to true.fcdId should be blank.ds:///vmfs/volumes/UUID/ start showing in cns.volume_info table.
/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres -t -c "SELECT * from cns.volume_info";