Please enable Javascript for better experience...
Configure Persistent Scratch Partition for ESXi Logs
By Pranay Jha | Jul 18, 2016 | In Tutorials | Update: Jul 18, 2016 | Total Views [ 6707 ]
Taged In
(1 Like)

Step by Step Guide to Configure Persistent Scratch Partition for ESXi Logs

Persistent scratch partition use for storing data such as logs, diagnostic information, and system swap. Though ESXi host later on 4.1 U2  by default configure persistent scratch partition and creates a 4 GB Fat16 partition on the target device during installation. However there are cases when scratch partition is not configured due to any reason then ESXi stores these logs and temporary data on ramdisk which is not persistent after reboot. ESXi Host lost these temporary information across reboot. So in case of any diagnostic required, you may be in panic situation. Hence, it's recommended(but not requirement) to have this for each ESXi.
This article will describe Step by Step procedure to configure Persistent Scratch Partition in ESXi Host.


- Launch vSphere Client and go to Host and Clusters Section. Select ESXi Host in which you want to configure Scratch Partition.

- Select Datastore which you want to use for storing logs. Right click and Click on Browse Datastore.

- Browse Datastore window will appear. Click on highlighted icon to Create a New Folder here.

- Give the Folder Name as ".locker-Host_Name". In below example, we are configuring it for VI-HOST-01, so created folder as .locker-vi-host-01

- Now you can see folder has been created in this datastore.

- Now go to Datastores and Datastore Clusters section, select datastore where you have created Folder. Go to Configuration tab, select Host and check Datastore Details. It will give you Location, which includes UUID of datastore which is unique identifier. Note down this value as you have to configure it in further steps. In below example, we used this path. "/vmfs/volumes/5781da8b-1b5dfe55-d1be-000c2909ac70/.locker-VI-HOST-01"

- Go back to Host and Clusters Section. Select Configuration tab and Click on Advance Settings under Software Options.

- Advance Setting window will appear on screen. Select ScratchConfig. Refer to option ScratchConfig.ConfiguredScratchLocation, It's showing blank for now.

- Provide Scatch Log folder path you created in above steps. Here we used "/vmfs/volumes/5781da8b-1b5dfe55-d1be-000c2909ac70/.locker-VI-HOST-01"Click OK to complete the task

- If you will refer newly created Folder in datastore, it will show you blank. No logs are storing here as of now. Because configuring Scratch Persistent Partition must required reboot of ESXi Host to take effect. Hence put host in Maintainance Mode and Reboot.

- After reboot is completed, again refer to folder in datastore. Now you can see additional 4 folders have been created under .locker-Host_Name, which will be use to store temporary data and will be persistent across reboots.


Thanks for vising here and giving your time to read out this article. Please share if you liked this post.

Join my Facebook Group

Like my Facebook Page

Thanks for visiting here. Share this article if you found it useful.
Like Facebook Page
Connect to twitter
Subscribe my Channel
Connect over Linkedin
Share this on Social Media

About the Author

Pranay Jha
Pranay Jha
Founder, Contributer

Public profile: user/profile/99900000

Follow me

facebook linkedin twitter G+ VMTN youtube

Thank you for visiting my profile. I am Pranay Jha, bring along a total of 11+ years of extensive experience with me in Information Technology sector for organizations from small business to large enterprises, wherein my current assignment I am associated with IBM as a Technical Solution Architect for Virtualization platform. I am vExpert x 3 (16/17/18), VCIX-DCV, VCAP5/6-DCD, VCAP5-DCA, VCP7-CMA, VCP5/6-DCV, VCA-DCV, VCA-Cloud, VSP, VCE-CIA, MCITP, MCSE, MCSA(Messaging). I am also an Independent blogger and founder of and I can be reached via email at or Direct Message via Contact Us form.

Please SignUp/Login to comment...

Or comment as anonymous...
* Name
* Email ID
Facebook Likes