>> Disable vsantraced startup by running this command:
chkconfig vsantraced off
>> Stop the vsantraced service by running this command:
/etc/init.d/vsantraced stop
>> Change the syslog to point to the vSAN datastore .
>> Delete any coredump files that are present after checking that they are not required.
>> Sub Step to direct it to syslog :
If not planned or incorrectly configured, vSAN trace-level messages may be:
Taking up a lot of space on ESXi hosts running from a RAM disk
Written to non persistent storage
By default, vSAN traces are saved to /var/log/vsantraces. Default maximum file size is 180MB with rotation of 8 files.
By default, vSAN urgent traces are redirected through the ESXi syslog system. If an external syslog server is defined, the urgent traces are forwarded to the external collector.
Run this command to determine whether vSAN urgent traces are currently configured to redirect through syslog and log rotation settings:
# esxcli vsan trace get
You see output similar to:
VSAN Traces Directory: /vmfs/volumes/568ec568-06d68562-e655-001018ed2950/scratch/vsantraces
Number Of Files To Rotate: 8
Maximum Trace File Size: 180 MB
Log Urgent Traces To Syslog: true
Run this command to send urgent traces through syslog
# esxcli vsan trace set –logtosyslog true
To change the default settings, run with the desired parameter:
# esxcli vsan trace set
-l|–logtosyslog Boolean value to enable or disable logging urgent traces to syslog.
-f|–numfiles=<long> Log file rotation for vSAN trace files.
-p|–path=<str> Path to store vSAN trace files.
-r|–reset When set to true, reset defaults for vSAN trace files.
-s|–size=<long> Maximum size of vSAN trace files in MB.
For example, to reduce the number of files to rotate to 4 and maximum size to which these files can grow 200MB, run this command:
# esxcli vsan trace set -f 4 -s 200
Note: If you reduce the number of files, the older files that are not compliant are removed immediately.
>> Reboot the ESXi host.
>> Unmount the datastore.