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 [ 1252 ]
Taged In
(1 Like)
Rate

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.

Steps:-

- 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 https://www.facebook.com/groups/VMwareInsight/

Like my Facebook Page https://www.facebook.com/VMwareInsight/


Thanks for visiting here. Share this article if you found it useful.
Join Facebook Group https://www.facebook.com/groups/VMwareInsight/
Like Facebook Page https://www.facebook.com/VMwareInsight/
Connect to twitter https://twitter.com/VMwareInsight
Share this on Social Media

About the Author

Pranay Jha
Pranay Jha
Founder, Contributer VMwareInsight.com
Follow me

facebook linkedin twitter G+ VMTN

My name is Pranay Jha, working in IBM as Technical Solution Architect for Virtualization platform. I have been working in IT for near around 10 years. Passionate to get involved as an Independent blogger for my blog http://vmwareinsight.com. I am VMware vExpert 2016/2017, VCAP5-DCD/DCA, VCP5-DCV, VCA-Cloud, VCE-CIA, MCSE, MCITP, MCSA(Messaging). For any query or suggestion, please connect me at pranay1988jha@gmail.com. Thanks for visiting here.

 
Please SignUp/Login to comment...

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