Fix Log Disk Exhaustion on Vcenter Server

This document will guide us about the steps to fix Log Disk Exhaustion on Vcenter Server using SSH or vcenter console.


Here we have a case where Core and Log Disks are full for VC-NAME Vcenter Server.

Below Steps can be followed to free up the Disk space.

  1. Run below command to check amount of free disk space on each mounted disk.

Df -h

  1. Goto the disk which is having space crunch-

cd /storage/core

  1. Run below command to show all files with their size in human readable format in current drive.
                  du -shc *

  1. Now delete the unwanted log files using below command.

                Rm -f <file-name>

 

For Example :

rm -f core.in:imfile.6*

rm -f core.in:imfile.5*

rm -f core.in:imfile.4*

rm -f core.in:imfile.3*

  1. After removing files, you can check the total space present on mounted disk.

df -h

  1. Similarly, we can do cleanup for Log directory as well.

                cd /storage/log

du -shc *

                

  1. Now in this case , Log disk has 4 folders out of which vmware folder is consuming approx..9GB of space. Go to folder which is consuming more space & list files.

cd vmware/

du -shc *

  1. Below command will show all files in current directory sorted by modification time in the reverse order in human readable form.

ls -ltrh

Rm –f procstate-*

9.  validate the free space using first command.


Comments

Popular posts from this blog

VMware:- Esxi Log File Locations

ESX and vCenter Alarms

Convert VMware Snapshot into Memory Dump