/storage/log partition full due to cloudvm-ram-size.log file rotation is not working in vCenter Server Appliance
book
Article ID: 318468
calendar_today
Updated On:
Products
VMware vCenter Server
Issue/Introduction
Symptoms:
- In VCSA 6.0, the /storage/log/vmware/cloudvm/cloudvm-ram-size.log file size increases without log rotation.
- The available space in the /storage/log directory reduces gradually.
Environment
VMware vCenter Server Appliance 6.0.x
Cause
This issue occurs due to the absence of log rotation configuration for the cloudvm-ram-size.log file.
Resolution
This issue is fixed in vSphere 6.5.
For previous vSphere versions, work around this issue by manually configuring log rotation for the cloudvm-ram-size.log file.
To manually configure log rotation for the
cloudvm-ram-size.log file:
- Log into the vCenter Server Appliance.
- Navigate to:
/etc/logrotate.d
- To create the cloudvm_ram_size.log file, run this command:
touch /etc/logrotate.d/cloudvm_ram_size.log
- Open the cloudvm_ram_size.log file created in step #3 using a text editor.
- Enter these entries:
/storage/log/vmware/cloudvm/cloudvm-ram-size.log{
missingok
notifempty
compress
size 20k
monthly
rotate 5
create 0660 root cis
}
- Save the cloudvm_ram_size.log file.
- To enable log rotation for the cloudvm-ram-size.log file and all the other log files, run this command:
logrotate -f /etc/logrotate.conf
Notes:
- You may see some errors while running the logrotate command, which can be ignored.
- You can keep the latest cloudvm-ram-size.log-xxxxxxxxx-.bz2 file.
- It is recommended to do periodic cleanup of older .bz2 files in the /storage/log/vmware/cloudvm location.
Feedback
thumb_up
Yes
thumb_down
No