esxcli software vib list
コマンドを実行すると、次のようなエラーが表示される。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
または esxupdate
に関連するコマンドが機能しない。General System Error
/var/log/
ファイルにログ ファイルが見つからないか、更新されていない。/etc/vmware/locker.conf
構成ファイルに書き込まれます。ScratchConfig.ConfiguredScratchLocation
を特定します。locker-ESXHostname
ScratchConfig.ConfiguredScratchLocation
構成オプションを変更し、ディレクトリへのフル パスを指定します。/vmfs/volumes/DatastoreUUID/.locker-ESXHostname
/tmp/scratch
が存在することを確認します。存在しない場合は、コマンド mkdir /tmp/scratch
を使用して作成します。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
構成オプションの現在の値を確認します。Get-VMhost | Get-AdvancedSetting -Name "ScratchConfig.ConfiguredScratchLocation"
ScratchConfig.ConfiguredScratchLocation
構成オプションを変更し、手順 6 で作成したディレクトリのフル パスを指定します。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
は隠しファイルです。隠しファイルを表示するには、ls -a
コマンドを実行します。ls /vmfs/volumes
mkdir /vmfs/volumes/DatastoreName/DirectoryName
mkdir /vmfs/volumes/Datastore1/.locker-ESXHostname
ScratchConfig.ConfiguredScratchLocation
構成オプションの現在の値を確認します。vim-cmd hostsvc/advopt/view ScratchConfig.ConfiguredScratchLocation
(vim.option.OptionValue) [
(vim.option.OptionValue) {
dynamicType = unset,
key = "ScratchConfig.ConfiguredScratchLocation",
value = "/path/to/location",
}
}
ScratchConfig.ConfiguredScratchLocation
構成オプションを変更し、手順 3 で作成したディレクトリのフル パスを指定します。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
注:構成されたスクラッチの場所は ESXi ホストの起動中に有効になります。上記のコマンドを実行した後は再起動が必要です。# 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
の構成オプションを変更し、ディレクトリのフル パスに設定します。/vmfs/volumes/DatastoreName/.locker-ESXHostname
ScratchConfig.ConfiguredScratchLocation
フィールドに手順 6 で構成したスクラッチ設定が含まれていることを確認します。含まれていない場合はホストを再起動します。esxcfg-scsidevs -l
コマンドの出力で Is Local
フラグも確認します。
ScratchConfig.ConfiguredScratchLocation
構成オプションによって設定される、/etc/vmware/locker.conf
構成ファイルで指定された場所。.locker/
ディレクトリにあるローカル デバイス上の VMFS データストア。/tmp/scratch/.
にある ramdisk。この記事の翻訳バージョンについては、次を参照してください。