Remove VC logs of more than 60 days to release /storage/log space.
search cancel

Remove VC logs of more than 60 days to release /storage/log space.

book

Article ID: 390705

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

There could be a error message at VAMI:

"File system /storage/log has run out of storage space. Increase the size of disk /storage/log."

After checking no log bundle is left under /storage/log/, the space is still almost full.

To check and remove log bundles for space, see /storage/log becomes 100% full when exporting the vCenter Appliance log bundles.

Resolution

  1. Verify the space status of /storage/log directory.
    df -h
  2. Change directory to /storage/log.
    cd /storage/log
  3. Find all log files longer than 60 days. Verify that there's no useful one.
    find  ./ -type f  -mtime +60 -exec ls -l {} \; | cut -d " " -f 6-15
  4. Remove all log files longer than 60 days.
    find  ./ -type f  -mtime +60 -exec rm {} \;
  5. Verify they are removed by repeating step 3.
  6. Verify space is released by repeating step 1.