PowerEdge:Dell ESXiホスト上に永続的スクラッチの場所を作成する

Summary: このハウツー記事では、Dell ESXiホスト上に永続的スクラッチの場所を作成する方法に関する包括的なガイドを提供します。永続的なスクラッチの場所は、ホストの再起動後も一時ファイル、ログ、診断データを保持するために不可欠であり、効果的なトラブルシューティングとシステム メンテナンスに貢献します。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

永続的なスクラッチの場所を作成します。

  1. メンテナンス モードの開始
  2. アクセス ホスト: メモリー制限をオーバーライドするには、 SSH
  3. データストアの一覧表示:
ls /vmfs/volumes
  1. スクラッチ ディレクトリーを作成します
mkdir /vmfs/volumes/DatastoreName/DirectoryName Example: mkdir /vmfs/volumes/Datastore1/.locker-ESXHostname
  1. 現在のスクラッチの場所を確認します
vim-cmd hostsvc/advopt/view ScratchConfig.ConfiguredScratchLocation
  1. 新しいスクラッチの場所を設定します
vim-cmd hostsvc/advopt/update ScratchConfig.ConfiguredScratchLocation string /vmfs/volumes/DatastoreName/DirectoryName
Example:
vim-cmd hostsvc/advopt/update ScratchConfig.ConfiguredScratchLocation string /vmfs/volumes/Datastore1/.locker-ESXHostname>
  1. Syslog設定: [Confirm]
esxcli system syslog config get
  1. ローカル ログ出力: 確保 /scratch/log
esxcli system syslog config set --logdir=/scratch/log
  1. Syslog設定の再ロード:
esxcli system syslog reload
  1. リブート ESXiホスト
  2. メンテナンス モードの終了

ESXiはスクラッチ領域を、構成済みの場所、Fat16ファイル システム、VMFSデータストア、RAMディスクの順に使用します。 /tmp/scratchが必要です。


構成を削除するか、RAMディスクにリストアします。

  1. メンテナンス モードの開始
  2. 変更 ScratchConfig.ConfiguredScratchLocation の出力を /tmp ホスト の詳細設定で。
  3. 保存
  4. ホストを再起動します。
  5. 再起動後、 ScratchConfig.CurrentScratchLocation に更新する必要があります /tmpが必要です。
  6. 変更が反映されない場合は、ホストを再起動し て、VMFSデータストアを削除します。

または、次のコマンドを使用して、スクラッチ構成を直接クリアすることもできます。

vim-cmd hostsvc/advopt/update ScratchConfig.ConfiguredScratchLocation string ""

ホストを再起動し て変更を適用します。再起動後、ESXiは /tmp/scratch RAMディスク上のスクラッチの場所として。

Additional Information

vSANの場合:

Affected Products

VMware ESXi 7.x, VMware ESXi 8.x, VMware ESXi 9.x
Article Properties
Article Number: 000217150
Article Type: How To
Last Modified: 23 May 2025
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.