/storage/log partition full due to cloudvm-ram-size.log file rotation is not working in vCenter Server Appliance
search cancel

/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:
 
  1. Log into the vCenter Server Appliance.
  2. Navigate to:

    /etc/logrotate.d
     
  3. To create the cloudvm_ram_size.log file, run this command:

    touch /etc/logrotate.d/cloudvm_ram_size.log
     
  4. Open the cloudvm_ram_size.log file created in step #3 using a text editor.
  5. Enter these entries:

    /storage/log/vmware/cloudvm/cloudvm-ram-size.log{
    missingok
    notifempty
    compress
    size 20k
    monthly
    rotate 5      
    create 0660 root cis
    }

     
  6. Save the cloudvm_ram_size.log file.
     
  7. 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.

 


Additional Information