Use one of the following workaround methods.
Get-Datastore -Refresh command on an hourly schedule to the host.
C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Get-Datastore -RefreshrefreshInterval value to the desired interval.refreshInterval value:
/etc/vmware/hostd/config.xml file on the host.<datastore> element. This element in the default file is similar to:<datastore> <!-- <inventory>/etc/vmware/hostd/datastores.xml</inventory> --> <!-- <refreshInterval>0</refreshInterval> --> <!-- <refetchVMFSDatastoreListInterval>30</refetchVMFSDatastoreListInterval> --> </datastore>
<refreshInterval> element with the desired number of minutes. For example, to set the refresh interval to one hour, change this line:<!-- <refreshInterval>0</refreshInterval> -->to:<refreshInterval>60</refreshInterval>
/bin/configstorecli config current get -c esx -g services -k hostd -outfile tmp.jsonvi tmp.json "hostsvc": { "datastore": { "refresh_interval": 60 },/bin/configstorecli config current set -c esx -g services -k hostd -infile tmp.json/etc/init.d/hostd restartNote:
/etc/vmware/hostd/config.xml is not applicable for ESXi hosts using ConfigStore as ConfigStore was introduced in ESXi 7.0 U1.
For steps on How to change configuration settings for Hostd service in vSphere ESXi 7.0 Update 2 and later, refer to KB 393232.
For more information, see: VMware vSphere PowerCLI Documentation