/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.

 

版权声明:
作者:SE_Gao
链接:https://www.cnesa.cn/2435.html
来源:CNESA
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
打赏
海报
/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: 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.  
<<上一篇
下一篇>>