System logs on host are stored on non-persistent storage


Jonathan Frappier Virtxpert

I’ve seen this come up in more and more situations lately, especially as people move towards SD/USB media for ESXi installation so I thought I’d write up quick how-to for changing it.  The error you receive is System logs on host are stored on non-persistent storage.  This happens when there is no VMFS partition available during installation which causes log files to be written to RAM disk.  When you log into vCenter, you would see a warning on your host, and the following message on the summary tab:

system_logs_on_host_non-persistent_storage

Depending on your host configuration, you can chose to create a folder on a local datastore to write logs to, or perhaps another shared VMFS volume where all servers can write logs.  My preference is regardless of this choice is to send all server logs to some sort of central syslog server.

To fix the error, do the following steps:

  • Log into the vSphere web client
  • Click on Hosts and Clusters and expand your datacenter/clusters until you see the host you want to change
  • Click on the Manage tab, then Settings, then Advanced System Settings
  • Scroll down until you find Syslog.global.logDir
  • Click on Syslog.global.logDir and click the pencil icon to edit the value
  • Change this value to the location of where you want to store the logs.  For example:  [esxihostname-local]/esxilogs where esxihostgname-local is the name of the datastore and exilogs is the name of the folder.
    • What is in brackets should match the name you see in the Storage view.  For example if the datastore name was homersimpson and a folder name bart it would look like [homersimpson]/bart

You can read up on this further in the VMware KB 2032823 and more information on configuring syslog here.

 

System logs on host are stored on non-persistent storage