This article provides information on how to troubleshoot and resolve the /storage/log partition being full on vCenter Appliance.
Impact/Risks:
Under default settings, when the partition reaches 75% full of continuous disk use for at least 10 minutes:
Disk usage alarm is being triggered.Deleting critical files may prevent the vCenter Server Appliance from working.
Resizing vCenter Appliance virtual disks carries the risk of data corruption.
WARNING: Ensure a good backup (VAMI file backup, VADP backup, or both) has recently been taken of the vCenter Appliance before deleting files or resizing the VCSA system's disks.
Symptoms:
vSphere UI Health Alarm", "Log disk exhaustion on vcenter name.
Database Health Alarm", "Core and Inventory Disk Exhaustion on vcenter nameAt 75% of continuous disk use the space will trigger Yellow status warnings
At 85% the space will trigger Red critical alarmsFrom VAMI: Health Status: "File system /storage/log is low on storage space. Increase the size of disk /storage/log."To investigate the issue of vCenter Server /storage/space showing as full, follow these steps:
cd /storage/log find . -type f -print0 | xargs -0 du -h | sort -rh | head -n 10 This command will display the 10 largest files in the directory. Example output:
3.7G ./vmware/wcp/stdstream.log-2.stderr
2.5G ./vmware/wcp/stdstream.log-1.stderr
266M ./vmware/wcp/stdstream.log.stderr
190M ./vmware/vpxd/vpxd-profiler-154.log
104M ./vmware/procstate
101M ./vmware/vsphere-ui/logs/threadmonitor1.log
83M ./vmware/wcp/stdstream.log-4.stderr
46M ./vmware/vpxd-svcs/perf.log.37
45M ./vmware/sso/ssoAdminServer.log
41M ./vmware/vsphere-ui/logs/threadmonitor.logfind ./ -type d -exec sh -c 'echo -n "{}: " && find "{}" -type f | wc -l' \; | awk '$2 > 100' | sort -k2,2nr This command will display directories containing more than 100 files, sorted by file count. Example output:
./: 1442
./etc: 486
./etc/vmware: 366
./var: 321
./var/run: 275
./var/log: 274
./usr: 108
| Affected Versions | Associated Knowledgebase Article link |
|---|---|
| 6.0 | |
| 6.0 before Update 3, 6.5 before Update 1 | |
| 7.0 before Update 1C | |
| 7.0 before Update 3c | |
| 7.0 before Update 3o, 8.0 before Update 1 | |
| 7.0, 8.0, not resolved in any newer version | |
7.0 Update 1 through Update 2 | |
| 7.0 Update 2. Fixed in Update 3 | |
| 8.0. Fixed in Update 3 | |
| All versions |
vCenter Server Appliance disk space is full (318953)
vCenter Server /storage/log filling up due to localhost_access.log and catalina.log in sso and lookupsvc log directories(318209)
In addition to using find command noted in the resolution section above, using the du (disk utilization) command below can assist to quickly identify large directories in a file system:
du -xh -d 1 | sort -rh
Run df -i to check if the i nodes are full if you see any space related errors in the logs.
Sometimes storage/log may look fine when we run df -h but the storage/log could be full when you run df -i
cd /storage/logrun this query :
for i in *; do echo $i; find $i | wc -l; done | paste - - | sort -k2 -nYou may refer to this article
/storage/log filling up with imfile-state files | rsyslogd
If the known issues don't identify the problem, and the search commands above don't provide helpful information, the drive might be too small for the current log traffic due to increased usage.
The size of the /storage/log virtual disk may be increased if the environment needs additional logging space. See "Resizing the vCenter virtual disks' in KB vCenter Server Appliance disk space is full (318953)