Size of the Datastores getting changed intermittently
vSphere7.x
vSphere8.x
When a LUN is expanded on the backend SAN, if a rescan is not performed across all ESXi hosts in the cluster, only the hosts that have refreshed their storage view recognize the new size. vCenter randomly selects a connected host to query for capacity; if it selects a host that has not updated, the old size is displayed.
After performing "Rescan Storage" on the Cluster, Datastores showed correct size. A rescan of storage devices is needed when a storage device has been added, removed, expanded or changed from the array.
To resolve this, please perform a storage rescan across the entire cluster:
esxcli storage core adapter rescan --all