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.
vSAN
ESXi 7.0 and later
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/NFS datastore cannot be created, we may create a directory and move redirect vsantraces and urgenttraces to Scratch in OSData partition of the ESXi and set it to grow to a maximum of 200MB by taking the following steps:
mkdir -p /scratch/vsantracesesxcli vsan trace set -p /scratch/vsantracesesxcli vsan trace set --urgentnumfiles=10 --urgentsize=10 --numfiles=10 --size=10If there are many hosts that you need to make this change on, you may run the following command on each 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