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.