PowerEdge: Create a Persistent Scratch Location on Dell ESXi Hosts

Summary: Dit instructieartikel bevat een uitgebreide handleiding voor het maken van een permanente scratch-locatie op Dell ESXi hosts. Een permanente scratch-locatie is essentieel voor het bewaren van tijdelijke bestanden, logboeken en diagnostische data, zelfs nadat de host opnieuw is opgestart, wat bijdraagt aan effectieve probleemoplossing en systeemonderhoud. ...

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

Maak een permanente kraslocatie.

  1. Onderhoudsmodus activeren
  2. Access Host: Gebruik SSH
  3. Datastores weergeven:
ls /vmfs/volumes
  1. Maak een kladmap:
mkdir /vmfs/volumes/DatastoreName/DirectoryName Example: mkdir /vmfs/volumes/Datastore1/.locker-ESXHostname
  1. Controleer de huidige kraslocatie:
vim-cmd hostsvc/advopt/view ScratchConfig.ConfiguredScratchLocation
  1. Set New Scratch Location:
vim-cmd hostsvc/advopt/update ScratchConfig.ConfiguredScratchLocation string /vmfs/volumes/DatastoreName/DirectoryName
Voorbeeld:
vim-cmd hostsvc/advopt/update ScratchConfig.ConfiguredScratchLocation string /vmfs/volumes/Datastore1/.locker-ESXHostname>
  1. Syslog-configuratie: Bevestigen
esxcli system syslog config get
  1. Uitvoer van lokaal logboek: Verzekeren /scratch/log
esxcli system syslog config set --logdir=/scratch/log
  1. Syslog-configuratie opnieuw laden:
esxcli system syslog reload
  1. Opnieuw opstarten ESXi-host
  2. Onderhoudsmodus afsluiten

ESXi gebruikt scratchruimte in de volgende voorkeursvolgorde: geconfigureerde locatie, Fat16-bestandssysteem, VMFS-datastore of een RAM-schijf op /tmp/scratch.


Verwijder de configuratie of herstel naar RAM-schijf:

  1. Onderhoudsmodus activeren
  2. Wijzigen ScratchConfig.ConfiguredScratchLocation Aan /tmp in de geavanceerde instellingen van de host.
  3. Save
  4. Start de host opnieuw op.
  5. Na het opnieuw opstarten, ScratchConfig.CurrentScratchLocation moet worden bijgewerkt naar /tmp.
  6. Als de wijziging niet wordt doorgevoerd, start u de host opnieuw op en kunt u de VMFS datastore verwijderen.

U kunt ook de volgende opdracht gebruiken om de scratch-configuratie direct te wissen:

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

Start de host opnieuw op om de wijzigingen toe te passen. Na het opnieuw opstarten zou dit ESXi moeten vragen om gebruik te maken van /tmp/scratch als scratchlocatie op de RAM-schijf.

Additional Information

Voor 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.