The following event of failure is logged by the vCenter, repetitively:
The ramdisk 'vsantraces' is full. As a result the file /vsantraces/vsantraces--####-##-##T##h##m##s###--########-####.####.####-############.zst could not be written.When executing the vdf -h command via SSH on the affected ESXi host, the vsantraceFailover ramdisk is reported at 100% capacity (300 MB Used / 300 MB Size).VMware vSAN 8.x
VMware vSAN 9.1
To resolve the issue, configure a persistent scratch location and follow steps from this article to resolve the issue The ramdisk 'vsantraces' is full
If a dedicated VMFS or NFS datastore is unavailable, you can redirect the standard and urgent vSAN traces to the Scratch directory within the ESXi OSData partition. To configure this directory and limit the total trace size to 200 MB, perform the following steps:
mkdir -p /scratch/vsantracesesxcli vsan trace set -p /scratch/vsantracesesxcli vsan trace set --urgentnumfiles=10 --urgentsize=10 --numfiles=10 --size=10To apply this configuration across multiple hosts, execute the following command on each ESXi host:mkdir -p /scratch/vsantraces;esxcli vsan trace set -p /scratch/vsantraces;esxcli vsan trace set --urgentnumfiles=10 --urgentsize=10 --numfiles=10 --size=10
To check whether scratch is contained in the OSData Partition, take the following steps:
vim-cmd hostsvc/advopt/view ScratchConfig.ConfiguredScratchLocation [root@esx###:~] vim-cmd hostsvc/advopt/view ScratchConfig.ConfiguredScratchLocation (vim.option.OptionValue) [ (vim.option.OptionValue) { key " ScratchConfig . ConfiguredScratchLocation" , value = "/vmfs/volumes/########-########-####-############"
vmkfstools -Ph <path to partition from step 1>[root@esx###:~] vmkfstools -Ph /vmfs/volumes/########-########-####-############VMFSOS-6.82 (Raw Major Version: 24) file system spanning 1 partitions.File system label (if any): OSDATA-########-########-####-############Mode: publicCapacity 23.8 GB, 21.6 GB available, file block size 1 MB, max supported file size 64 TBMedia type: Local HDDDisk Block Size: 512/512/0UUID: ########-########-####-############Partitions spanned (on "lvm"): naa.#########################Is Native Snapshot Capable: NO