How to refresh data store esxi host server.

1 enable ssh on the host.
2 connect with putty to the host. And edit the config.xml:
3 # vi /etc/vmware/hostd/config.xml

And find the datastore section. How to find this in VI?  type /<datastore>   and press enter.

Now you find the line with <datastore> 

Now to edit the file type the letter I for insert.

Change the line :

<!-- <refreshInterval>0</refreshInterval> -->

to:

<refreshInterval>60</refreshInterval>

The 60 stands for 60 minutes refresh of the datastore. 

How to save the editor?    Press esc then type   :wq!  and press enter.

Restart the hostd service for the changes to take effect. How to restart the hostd?

/etc/init.d/hostd restart


Now exit putty and test if the server still working?

Disable ssh on the host.

Done!