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

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.

 

阅读剩余
THE END
阿里云ECS特惠活动
阿里云ECS服务器 - 限时特惠活动

云服务器爆款直降90%

新客首单¥68起 | 人人可享99元套餐,续费同价 | u2a指定配置低至2.5折1年,立即选购享更多福利!

新客首单¥68起
人人可享99元套餐
弹性计费
7x24小时售后
立即查看活动详情
阿里云ECS服务器特惠活动