/var/log/vsantraced.log from the ESXi host
YYYY-MM-DDTHH:MM:SS.252Z Er(11) chardevlogger[8244481]: Failed to read trace: Cannot allocate memory
YYYY-MM-DDTHH:MM:SS253Z Er(11) chardevlogger[8244544]: Failed to read trace: Cannot allocate memory
/var/log/vobd.log from the ESXi host,
Execute the following command to validate the usage of the vsantraced partition.
vdf -h
-----
Ramdisk Size Used Available Use% Mounted on
root 32M 2M 29M 8% --
etc 28M 232K 27M 0% --
opt 32M 0B 32M 0% --
var 48M 516K 47M 1% --
tmp 256M 12K 255M 0% --
iofilters 32M 0B 32M 0% --
shm 1024M 0B 1024M 0% --
hostdstats 114M 2M 111M 1% --
vsantraces 300M 287M 12M 95% --
vsantraces ramdisk appears to be full or nearly full on the ESXi:
esxcli vsan trace getvSAN Traces Directory: /vsantracesNumber Of Files To Rotate: 8Maximum Trace File Size: 180 MBLog Urgent Traces To Syslog: trueesxcli vsan trace set -f|--numfiles: Log file rotation for vSAN trace files. -p|--path: Path to store vSAN trace files. -r|--reset: When set to true, reset defaults for VSAN trace files. -s|--size: Maximum size of vSAN trace files in MB. mkdir /vmfs/volumes/Datastore/scratch/localhost/vsantraces/ esxcli vsan trace set -f 10 -s 60 -p /vmfs/volumes/Datastore/scratch/localhost/vsantraces/[root@esx:/vsantraces] ls -ahl-rw-r--r-- 1 root root 20.0M Jun 2 16:51 vsantraces--YYYY-MM-DDT07h56m21s853.gz-rw-r--r-- 1 root root 20.0M Jun 3 01:48 vsantraces--YYYY-MM-DDT16h51m11s433.gz-rw-r--r-- 1 root root 8.0M Jun 1 05:55 vsantracesClom--YYYY-MM-DDT02h54m10s389.gz-rw-r--r-- 1 root root 8.0M Jun 4 18:09 vsantracesClom--YYYY-MM-DDT05h55m47s005.gz-rw-r--r-- 1 root root 206.3K Jun 4 20:16 vsantracesClom--YYYY-MM-DDT18h09m27s740.gz-rw-r--r-- 1 root root 192 Jun 4 18:09 vsantracesClom.index-rw-r--r-- 1 root root 620.8K Jun 4 03:29 vsantracesDOMObj--YYYY-MM-DDT17h23m25s376.gz-rw-r--r-- 1 root root 24 Mar 13 17:23 vsantracesDOMObj.index-rw-r--r-- 1 root root 1.0M Jun 4 15:56 vsantracesIODiag--YYYY-MM-DDT17h10m06s623.gz-rw-r--r-- 1 root root 195.4K Jun 4 20:17 vsantracesIODiag--YYYY-MM-DDT15h56m16s897.gz-rw-r--r-- 1 root root 72 Jun 4 15:56 vsantracesIODiag.index-rw-r--r-- 1 root root 2.0M May 17 13:09 vsantracesLSOM--YYYY-MM-DDT17h23m25s299.gz-rw-r--r-- 1 root root 575.1K Jun 4 20:11 vsantracesLSOM--YYYY-MM-DDT13h09m23s998.gz-rw-r--r-- 1 root root 48 May 17 13:09 vsantracesLSOM.index-rw-r--r-- 1 root root 15 Mar 13 17:23 vsantracesLSOMVerbose--YYYY-MM-DDT17h23m25s333.gz-rw-r--r-- 1 root root 24 Mar 13 17:23 vsantracesLSOMVerbose.index-rw-r--r-- 1 root root 10.0M Jun 4 10:11 vsantracesUrgent--YYYY-MM-DDT12h01m34s418.gz-rw-r--r-- 1 root root 1.0M Jun 4 20:17 vsantracesUrgent--YYYY-MM-DDT10h11m46s702.gz-rw-r--r-- 1 root root 96 Jun 4 10:11 vsantracesUrgent.indexrm vsantraces*20##-05*.gzrm vsanObserver--20##-05*.gzrm vsantracesUrgent--20##-05*.gzNote: Please engage Broadcom Support if you are not certain about deleting the files or moving it to a new location.
esxcli vsan trace set -f 10 -s 20esxcli vsan trace set --urgentnumfiles=10 --urgentsize=10 --numfiles=10 --size=10esxcli vsan trace set --urgentnumfiles=4 --urgentsize=8 --numfiles=10 --size=8esxcli vsan trace set --urgentnumfiles=10 --urgentsize=10 --numfiles=10 --size=10".esxcli vsan trace set --urgentnumfiles=4 --urgentsize=8 --numfiles=10 --size=8" which is specified for ESXi 8.x version to limit vsantraces as per the desired limit.