/var/mail/root file size in vCenter increases gradually and causes root partition to fill up to 100%./var/mail/root file:considering file Path:/var/log/vmware/procstate-<date><time>.gz Size:2.3096351623535156 cTime: <date><time> mTime: <date><time> aTime: <date><time>considering file Path:/var/log/vmware/messages.gz Size:0.3527231216430664 cTime: <date><time>mTime: <date><time> aTime: <date><time>file is olderconsidering file Path:/var/log/vmware/messages.gz Size:0.3422117233276367 cTime: <date><time>mTime: <date><time>aTime: <date><time>file is olderconsidering file Path:/var/log/vmware/messages.zst Size:0.7484207153320312 cTime: <date><time> mTime: <date><time> aTime: <date><time>considering file Path:/var/log/vmware/procstate<date><time>.gz Size:2.3476810455322266 cTime: <date><time> mTime: <date><time> aTime: <date><time>file is olderspace_utility cron job./var/mail/root file, causing it to expand continuously./var/mail/root file shows the below contents:Loaded the configuration from /etc/vmware/appliance/space_utility.confConf loaded from file{"LOG_BASE_PATH": "/var/log/vmware/", "SUPPORT_BUNDLE_BASE_PATH": "/storage/log/", "CORE_DUMP_BASE_PATH": "/storage/core/", "RSYSLOG_BASE_PATH": "/etc/vmware-syslog", "REPORT_FILE_PATH": "/var/log/vmware/vcsa_space_util_report.json", "KNOWN_CORE_DUMP_CLEANUP_FILES": ["core.in:imuxsock", "core.in:imfile", "core.rs:main Q:Reg"],This is a known issue with vCenter and Broadcom Engineering is actively working towards fixing this issue in the future patch release.
Cleanup the /var/mail/root file and edit the space_util.cron file to redirect the output of the cron job to /dev/null.
rm /var/mail/rootvi /etc/cron.d/space_util.cronInsert Key and add '> /dev/null 2>&1' to the end of the line:Default contents of the file:
0 0 * * * root python3 /usr/lib/applmgmt/support/space_utility --report-file-path /var/log/vmware/ --report-file-name-base vcsa_space_util_report
After modifying the file:
0 0 * * * root python3 /usr/lib/applmgmt/support/space_utility --report-file-path /var/log/vmware/ --report-file-name-base vcsa_space_util_report > /dev/null 2>&1
ESC key, type wq! and hit Enter key to save and exit the file.