Hi,
Using Tech Support Mode, This can be done either via the local console or SSH.
1. Create a uniquely-named directory for this ESXi host using the command:
mkdir /vmfs/volumes/DatastoreName/DirectoryName
For example:
mkdir /vmfs/volumes/Datastore1/.locker-ESXHostname
2. Check the current value of the ScratchConfig.ConfiguredScratchLocation configuration option using the command:
vim-cmd hostsvc/advopt/view ScratchConfig.ConfiguredScratchLocation
Example output:
(vim.option.OptionValue) [
(vim.option.OptionValue) {
dynamicType = <unset>,
key = "ScratchConfig.ConfiguredScratchLocation",
value = "/path/to/location",
}
}
3. Change the ScratchConfig.ConfiguredScratchLocation configuration option, specifying the full path to the directory created in step 1, using the command:
vim-cmd hostsvc/advopt/update ScratchConfig.ConfiguredScratchLocation string /vmfs/volumes/DatastoreName/DirectoryName
For example:
/bin/vim-cmd hostsvc/advopt/update ScratchConfig.ConfiguredScratchLocation string /vmfs/volumes/Datastore1/.locker-ESXHostname
4. Put the ESXi host into maintenance mode and reboot for the configuration change to take effect.