1833693 Members
3573 Online
110062 Solutions
New Discussion

Re: find large files

 
SOLVED
Go to solution
Dave Bunting
Frequent Advisor

find large files

how do i know/find if large files exists in my root (/) FS? any ideas? bdf shows 100% full i have 1012 free PEs left for vg00, is it ok to extend / ? how?
6 REPLIES 6
Wim Rombauts
Honored Contributor
Solution

Re: find large files

I suggest

find / -size +10000000c -xdev -exec ll -d {} \;

That instruction returns all files larger then 10Mbytes and gives a full list of them so that you can see the actual size of the file, where it is and on what date it has been modified.

Look at the find manpage for more information on the options
Eugen Cocalea
Respected Contributor

Re: find large files

Hi,

Try a

du -sk /

leave out the directories that are separate file systems and see where the most space occupied is.

If /tmp and/or /var are not separate file systems, usualy you get lots of trouble with space on /

E.
To Live Is To Learn
melvyn burnard
Honored Contributor

Re: find large files

There are various ways to check for this. You can use the find command with -size option.
But if it is your root (/) fs, check to see if there is not an unwanted file in /dev by doing something like du -s /dev
If this is not a small number, you may have a file in /dev that has been created inadvertently, such as someone trying to use tar or cpio and creating a file /dev/rmt/om instead of /dev/rmt/0m
You could also check for any core files by doing:
find / -name core

and delete these.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Robin Wakefield
Honored Contributor

Re: find large files

Hi Dave,

Before extending you should analyse why / has filled up, and consider creating new filesystems if necessary. It's always best to try and keep the root filesystem as small as possible, it shouldn't get much bigger than it's initial configured size unless there's something wrong (/dev/rmt/om, not 0m for instance).

Rgds, Robin.
A. Clay Stephenson
Acclaimed Contributor

Re: find large files

Hi Dave:

The important point here is that essentially / should never grow. Once the OS is loaded and stable, the size of / should remained for all intents fixed in size. If that is not the case, you need to investigate. As mentioned earlier, the classic reason is a regular file in /dev - very typically /dev/rmt/Om (letter 'O') rather than /dev/rmt/0m. A core file of two will also cause this. Certainly you should do a find / -xdev -name 'core' to look for those.

As to your question about extending / - the short answer is 'no'. / must be contiguous. There are ways to do but the supported method is to use Ignite to restore the system. However, this is hardly necessary if you can find your 'root' problem.

Clay
If it ain't broke, I can fix that.
Dave Bunting
Frequent Advisor

Re: find large files

Thanks guys...