Bobcares

System logs on ESXi host are stored on Non-Persistent Storage

by | Dec 8, 2020

Wondering how to get rid of the warning message ‘system logs on the host are stored on non-persistent storage’? We can help you with it.

Here at Bobcares, we have seen several such VMWare related errors as part of our Server Management Services for web hosts and online service providers.

Today we will take a look at the causes for this error and see how to fix it.

 

Why does system logs on the host are stored on non-persistent storage?

Sometimes, when we install the VMware ESXi to an SD card or USB stick, the yellow exclamation mark icon is displayed next to the hostname in the vCenter client console, and the following warning appears on the Summary tab:

System logs on host test.bobcares.com are stored on non-persistent storage.

The esx.problem.syslog.nonpersistent warning means that the system writes logs (scratch) to the non-persistent USB device and if we restart the host, they will not be saved.

Thus, in case of any host issues, we will not be able to examine its logs or provide any data to VMWare technical support team.

In order to remove the warning, we must change the log storage path to a local disk or a VMFS datastore in the ESXi host settings.

 

How we resolve the problem of system logs on the host are stored on non-persistent storage

Now let’s take a look at how our Support Engineers remove this warning by changing the log storage path.

  1. First, we open the vSphere client and select the ESXi host with the warning in the Hosts & Clusters.
  2. Next, we go to the Configure tab and click Advanced System Settings.
  3. In the list of advanced settings, we click Edit and type Syslog.global.logDir in the Filter field. Here we see, [] /scratch/log folder is used to store the ESXi logs.
    system logs on host are stored on non-persistent storage
  4. Then we change the path in the Syslog.global.logDir variable to [youtVMFSdatastorename] /systemlogs.
    Also, we must create /systemlogs folder on the VMFS datastore in advance. Otherwise, we will get this error: A general system error occurred: Internal error.
  5. If the Syslog.global.logDir field is empty, check the value of the ScratchConfig.CurrentScratchLocation parameter. It shows the path to the scratch partition containing logs.

We can also change the log path using the PowerCLI command prompt:

get-vmhost ny-esxi21 | Get-AdvancedSetting -Name “Syslog.global.logDir” | Set-AdvancedSetting -Value “[HQVMFSDatastore1] /system_log_folder_name”

Also, we can change the value of Syslog.global.logDir using the Host Profiles. We can apply this profile to all ESXi hosts in the datacenter.

 

Verifying the Location of System Logs in vSphere Web Client

  • First, we browse to host in the vSphere Web Client navigator.
  • Next, we click the Manage tab and then click Settings.
  • Under System, we click Advanced System Settings
  • We ensure that Syslog.global.logDir points to a persistent location.
  • Also, we ensure that the field ScratchConfig.CurrentScratchLocation shows a location on persistent storage if the field Syslog.global.logDir is empty or points to a scratch partition.
  • If the folder is used as a scratch location is to be shared by multiple ESXi hosts, we must also set the field Syslog.global.logDirUnique to avoid contention over log files.

 

Verifying the Location of System Logs in vSphere Client (vSphere 6.0 and earlier)

  • First, we select a host in the inventory panel in the vSphere Client.
  • Next, we click the Configuration tab and then we click Advanced Settings under Software.
  • Also, we ensure that Syslog.global.logDir points to a persistent location.
  • We specify the directory as [datastorename] path_to_file where the path is relative to the datastore. For example, [datastore1] /systemlogs.
  • Also, we ensure that the field ScratchConfig.CurrentScratchLocation shows a location on persistent storage if the field Syslog.global.logDir is empty or explicitly points to a scratch partition.

If a working host has its information for the scratch location in a UUID format:
/vmfs/volumes/xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx/foldername and want to find out what the “friendly” name is, as it would appear in vCenter or host client view, we can:

1. Connect to the working host via an SSH session, and log on with root credentials

2. Execute the command:

# esxcli storage filesystem list

3. The output will look similar to this:

/vmfs/volumes/ad495351-37d00fe1-c498-a82a75e0c050 abc-lun3 ad495451-37d00fe1-c498-a82a72e0c050 true VMFS-5 805038932144 400613703380

[Need any further assistance in fixing VMWare errors? – We are here to help you]

 

Conclusion

Today, we saw the solution provided by our Support Engineers to get rid of this warning message

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF