--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools



Recently Changed Pages:

View All Pages

View All Tags

WIKI Disclaimer: As with most other things on the Internet, the content on this wiki is not supported. It was contributed by me and is published “as is”. It has worked for me, and might work for you.
Also note that any view or statement expressed anywhere on this site are strictly mine and not the opinions or views of my employer.

Pages with comments

2019/11/18 13:52 1 Comment

View All Comments


Creating an ESXi 5.1 Scratch Partition

When using ESXi 5.1 while running from an usb drive a random datastore is selected by ESXi to store the host's logfiles. If you would detach this datastore the logfiles are lost, which is not really something you want. This article shows how to create a scratch partition and how to tell ESXi to use it. Note that you'll need a reboot and this is only necessary on ESXi hosts running without local storage.

The procedure for doing this is pretty straight forward:

  • Create a datastore
    • Set the size to about 1-5 GB per host that will use it
  • Attach the datastore to the host and create a directory in it
    • The VMware default for the directory name is .locker-hostname
  • Configure scratch partition on host's advanced settings
    • Go to Configuration tab → Advanced Settings → ScratchConfig
      • Fill in the ScratchConfig.ConfiguredScratchLocation variable like this: /vmfs/volumes/<datastorename>/.locker-esxihostXXX
    • Note that after a reboot the friendly name will dissappear and change something like /vmfs/volumes/50d82ad1-872mrt40-a404-5cf3fabcf838/.locker-esxihostXXX
    • Als note that this friendly name is still used when browsing through the datastore using the Datastore Browser utility
  • Reboot host
  • Check that files have been created in the directory

More Information

On a medium to busy environment the amount of logging was about 2 GB after more than a year.



Enter your comment. Wiki syntax is allowed:
esxiscratch.txt · Last modified: 2019/11/18 12:22 (external edit)