esxcli software vib list
command, you see error similar to:Traceback (most recent call last):
File "/usr/lib/vmware/esxcli-software", line 432, in module
setupLogging()
File "/usr/lib/vmware/esxcli-software", line 78, in setupLogging
handler = logging.handlers.SysLogHandler(address='/dev/log')
File "/build/mts/release/bora-504890/bora/build/esx/release/python-
2.6-lib-zip-stage/504890/visor/pylib/python2.6/logging/handlers.py",
line 704, in __init__
File "/build/mts/release/bora-504890/bora/build/esx/release/python-
2.6-lib-zip-stage/504890/visor/pylib/python2.6/logging/handlers.py",
line 719, in _connect_unixsocket
File "string", line 1, in connect
socket.error: [Errno 2] No such file or directory
esxcli software
or esxupdate
do not work.General System Error
/var/log/
file or are not being updated./etc/vmware/locker.conf
configuration file for use during the next boot.ScratchConfig.ConfiguredScratchLocation
.locker-ESXHostname
ScratchConfig.ConfiguredScratchLocation
configuration option, specifying the full path to the directory./vmfs/volumes/DatastoreUUID/.locker-ESXHostname
/tmp/scratch
exists. If it does not exist, use the command mkdir /tmp/scratch
to create it.connect-viserver esx_hostname_or_IP
Get-Datastore
New-PSDrive -Name "mounteddatastore" -Root \ -PSProvider VimDatastore -Datastore (Get-Datastore "DatastoreName")
Set-Location mounteddatastore:\
New-Item "DirectoryName" -ItemType directory
New-Item ".locker-ESXHostname" -ItemType directory
ScratchConfig.ConfiguredScratchLocation
configuration option using the command:Get-VMhost | Get-AdvancedSetting -Name "ScratchConfig.ConfiguredScratchLocation"
ScratchConfig.ConfiguredScratchLocation
configuration option, specifying the full path to the directory created in step 6, using the command:Get-VMhost | Get-AdvancedSetting -Name "ScratchConfig.ConfiguredScratchLocation" | Set-AdvancedSetting -Value "/vmfs/volumes/DatastoreName/DirectoryName"
Get-VMhost | Get-AdvancedSetting -Name "ScratchConfig.ConfiguredScratchLocation" | Set-AdvancedSetting -Value "/vmfs/volumes/Datastore1/.locker-ESXHostname"
.filename
is a hidden file. To view hidden files, use the ls -a
command.ls /vmfs/volumes
mkdir /vmfs/volumes/DatastoreName/DirectoryName
mkdir /vmfs/volumes/Datastore1/.locker-ESXHostname
ScratchConfig.ConfiguredScratchLocation
configuration option using the command:vim-cmd hostsvc/advopt/view ScratchConfig.ConfiguredScratchLocation
(vim.option.OptionValue) [
(vim.option.OptionValue) {
dynamicType = unset,
key = "ScratchConfig.ConfiguredScratchLocation",
value = "/path/to/location",
}
}
ScratchConfig.ConfiguredScratchLocation
configuration option, specifying the full path to the directory created in step 3, using the command:vim-cmd hostsvc/advopt/update ScratchConfig.ConfiguredScratchLocation string /vmfs/volumes/DatastoreName/DirectoryName
/bin/vim-cmd hostsvc/advopt/update ScratchConfig.ConfiguredScratchLocation string /vmfs/volumes/Datastore1/.locker-ESXHostname
Note: The configured scratch location is activated during startup of the ESXi host. A reboot is required after performing the preceding commands.# Generate a new scratch directory for this host on a Datastore
scratchdirectory=/vmfs/volumes/DatastoreName/.locker-$(hostname 2> /dev/null)-$(esxcfg-info -b 2> /dev/null)
# Create the scratch directory
mkdir -p $scratchdirectory
# Change the advanced configuration option
vim-cmd hostsvc/advopt/update ScratchConfig.ConfiguredScratchLocation string $scratchdirectory
ScratchConfig.ConfiguredScratchLocation
configuration option and set it to the full path of the directory./vmfs/volumes/DatastoreName/.locker-ESXHostname
ScratchConfig.ConfiguredScratchLocation
field contains the scratch setting that you configured in step 6. If it does, reboot the host.Is Local
flag in the output of the esxcfg-scsidevs -l
command:
/etc/vmware/locker.conf
configuration file, set by the ScratchConfig.ConfiguredScratchLocation
configuration option, as in this article..locker/
directory./tmp/scratch/.
ScratchConfig.ConfiguredScratchLocation in the specific host Advanced settings to /tmp
Then saved and reboot the host.
Upon reboot you will see the ScratchConfig.CurrentScratchLocation updated to /tmp. If the change does not reflect please reboot the host 1 additional time. You will then be able to remove the VMFS datastore.
For translated versions of this article, see: