PowerEdge: Create a Persistent Scratch Location on Dell ESXi Hosts

Summary: This How-To article provides a comprehensive guide on how to create a persistent scratch location on Dell ESXi hosts. A persistent scratch location is essential for retaining temporary files, logs, and diagnostic data even after host reboots, contributing to effective troubleshooting and system maintenance. ...

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

Create a persistent scratch location.

  1. Enter Maintenance Mode
  2. Access Host: Use SSH
  3. List Datastores:
ls /vmfs/volumes
  1. Create a Scratch Directory:
mkdir /vmfs/volumes/DatastoreName/DirectoryName Example: mkdir /vmfs/volumes/Datastore1/.locker-ESXHostname
  1. Check Current Scratch Location:
vim-cmd hostsvc/advopt/view ScratchConfig.ConfiguredScratchLocation
  1. Set New Scratch Location:
vim-cmd hostsvc/advopt/update ScratchConfig.ConfiguredScratchLocation string /vmfs/volumes/DatastoreName/DirectoryName
Example:
vim-cmd hostsvc/advopt/update ScratchConfig.ConfiguredScratchLocation string /vmfs/volumes/Datastore1/.locker-ESXHostname>
  1. Syslog Configuration: Confirm
esxcli system syslog config get
  1. Local Log Output: Ensure /scratch/log
esxcli system syslog config set --logdir=/scratch/log
  1. Reload Syslog Configuration:
esxcli system syslog reload
  1. Reboot ESXi Host
  2. Exit Maintenance Mode

ESXi uses scratch space in the following order of preference: configured location, Fat16 file system, VMFS datastore, or a ram disk at /tmp/scratch.


Remove the configuration or restore to RAM disk:

  1. Enter Maintenance Mode
  2. Change ScratchConfig.ConfiguredScratchLocation to /tmp in the host's Advanced Settings.
  3. Save
  4. Reboot host.
  5. After reboot, ScratchConfig.CurrentScratchLocation should be updated to /tmp.
  6. If the change does not reflect, Reboot the host again and you can remove the VMFS datastore.

Alternatively, you can use the following command to clear the scratch configuration directly:

vim-cmd hostsvc/advopt/update ScratchConfig.ConfiguredScratchLocation string ""

Reboot the host to apply the changes. After reboot, this should prompt ESXi to use /tmp/scratch as the scratch location on the RAM disk.

Additional Information

For vSAN:

Affected Products

VMware ESXi 7.x, VMware ESXi 8.x, VMware ESXi 9.x
Article Properties
Article Number: 000217150
Article Type: How To
Last Modified: 23 May 2025
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.