ESXi disks must be “considered local” for scratch to be created
A new KB was released yesterday (http://kb.vmware.com/kb/1033696), in which I noticed something interesting.
ESXi Installable creates a 4 GB Fat16 partition on the target device during installation if there is sufficient space, and if the device is considered Local.
This made me prick up my ears, as only a couple of weeks ago I was having problems using a kickstart script to deploy ESXi to some HP DL580 G7 servers. This issue arose because the ESXi installer considered the local disk controller as non-local.
<aside>
To get around this kickstart issue, I had to add “remote” to the firstdisk option on the autopart line, so it ended-up looking like this:
autopart --firstdisk=local,remote --overwritevmfs
Basically, this tells the installer to tries the first local disk and if it can’t find one then in goes for the first remote disk. Clearly this increases the chances of accidentally wiping a SAN LUN, but as the site had migrated to NFS only, I wasn’t too concerned.
</aside>
So I had a quick check of a few ESXi hosts that I had rolled out recently, and sure enough no scratch partition had been created. This was unexpected behaviour as the hosts had indeed local spinning disks and had enough space (4GB free) for the scratch partition to be created during the install. This means there will be no persistent scratch area – so the scratch will instead be created on a volitile ramdisk, which eats a bit of your host’s memory, and means the scratch contents don’t survive a reboot. After further investigation I found this was also true on some DL380 G6 servers, but not on some DL380 G5 servers. It seems this is something you want to go and check yourself on a case-by-case (RAID controller-by-RAID controller) basis.
To check if a host has a scratch partition, login via the TSM and run:
EDIT - see here for an updatecat /etc/vmware/locker.config
If the file is blank, then no scratch is configured.
Here it is without a scratch partition:

And here it is with a scratch partition created by the installer:

To create a scratch partition for these servers on their local “non-local” disks then follow the steps in the KB. You can do this after deployment via the vSphere client, vCLI, PowerCLI or the TSM.
Here is an outline of doing it at the TSM:
1. Create a directory on the local VMFS volume
2. Run vim-cmd hostsvc/advopt/update ScratchConfig.ConfiguredScratchLocation string /vmfs/volumes/DatastoreName/DirectoryName
3. Reboot the host
The KB also details how to add this configuration to your kickstart files for future deployments or rebuilds.
3 Responses to ESXi disks must be “considered local” for scratch to be created
Leave a Reply Cancel reply
Forbes Guthrie
Recent Posts
- Small update to the Reference Card
- Minor update to the vSphere 5 Reference Card
- vSphere 5 vReference Card released
- Cisco UCS boot from iSCSI SAN – ESXi design consideration
- vSphere 5 vReference card – Storage section
- Does 2008 R2 Failover Clustering require a change to the Notify Switches policy?
- vSphere 5 vReference card – Host section
- vSphere 5 vReference card – Install section
- Auto Deploy design concern
- vSphere 5 vReference card – vCenter section
Recent Comments
- Steve on vSphere 5 Card
- honglus on How to PXE boot from your trunked vmnic0
- Sunmeet on Understanding ESXi – stateless, diskless, feckless
- Forbes Guthrie on vSphere 5 Card
- Forbes Guthrie on vSphere 5 Card
- Jakk on vSphere 5 Card
- Purushothama S on vSphere 5 notes
- Bjorn on vSphere 5 Card
- Chris on Minor update to the vSphere 5 Reference Card
- Michael Webster on Auto Deploy design concern
Twitter
- This is going to be a tough week. Time to relax and unplug. @jtroyer - remember this view? http://t.co/c9mNIDGX : 3 days ago
- RT @billyc5022: "VMware vSphere Design" by @forbesguthrie @scott_lowe & @maishsk is an awesome book! #vmware << thanks! : 3 days ago
- @maishsk Yes mate, still alive :) Busy working on projects. Let my tweeting (& blogging) slip of late. Time to put my feet up this week. : 3 days ago
- Aloha! http://t.co/6xJTvWUd : 3 days ago
- As much as I've become an NFS supporter over the years, VMFS5 & ATS is really making me like iSCSI & its better multipathing. : 3 weeks ago
- @__wintertale__ Hi Iona (& Lesley). Welcome to the twitterverse from a cloudy and wet Vancouver. How's the coffee? : 1 month ago
- RT @jtroyer: ... Kaua'i http://t.co/s4Ovo4jD << Staying in same resort next month. Pls, no destroying it with wild parties ;) : 1 month ago
- RT @dobaer: @forbesguthrie How was the run in your shiny new shoes? << Nice, the trails around Vancouver are stunning. : 1 month ago
- @h0bbel I'm a Salomon addict, but I'm scared to get these ones muddy :) : 1 month ago
- Just took my pwutty new #salomon trail shoes for an hour's run in Pacific Spirit Park. http://t.co/7dAQDXgl : 1 month ago






Also to note that if the scratch partition has to go ramdisk, only a 512MB partition (and not 4GB) will be created. 512MB taken out of the server’s available physical memory.
Cheers,
Didier
That’s a good point – thanks.
Newer HP Smart Array Drivers show as Remote because there is no differentiation in the driver between an internal only card (P410i, etc) and the cards that support external shared SAS arrays (P412 / P812 / P711m / etc)
Thus Smart Array has become “remote” as far as ESXi is concerned.