ESX - Find large files in the Service Console

April 9th, 2008

ESX BoxGot a few cases in work over the last few week where people are finding the root file system full in VMware ESX Server. This causes lots of issues with connectivity to VirtualCenter etc. The problem is that often it is difficult to find the large files that are causing the file system to fill up. I’ve been sending people this handy little script to help them so I thought I’d share it with everyone.

find / -path '/vmfs/*' -prune -o -size +10240000c -exec du -h {} \;

This searches the ESX ignoring the VMFS file system. For standard Linux you can put whatever you want in place of VMFS and it will ignore that folder.

Entry Filed under: VMware, Linux

Leave a Comment

All comments are moderated and will not appear automatically

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Radio

Random Image

View Gallery

Categories

Most Recent Posts

Calendar

April 2008
M T W T F S S
« Mar   May »
 123456
78910111213
14151617181920
21222324252627
282930