1753971 Members
7928 Online
108811 Solutions
New Discussion юеВ

file system filling up

 
bobstar
Frequent Advisor

file system filling up

hi,

i have a number of identical nodes with the same applications ruuning on them , so therefore, up until recently the files systems were roughly about the same size.

Recently on one node, the / has reached 94% used whilst in other nodes its only about 82%.

I have taken a look at / ( after ignoring other mounted file systems ) and I cant seem to find out what has 'eaten ' up this disk space.

Any ideas ?

Thanks.
21 REPLIES 21
MarkSyder
Honored Contributor

Re: file system filling up

The most common reason for / unexpectedly filling is a mis-typed file name for a backup device. This results in a large text file in /dev. This text file can safely be removed.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Darren Prior
Honored Contributor

Re: file system filling up

Another common one is having files 'under' the mountpoint directory. ie you have a mountpoint /blah and normally mount /dev/vgblah/lvblah to it. If you copy files to /blah before the mount command is run, then they will actually be on the root lvol. Once the proper lvol is mounted the files will disappear - but of course the space has still been used.

regards,

Darren.
Calm down. It's only ones and zeros...
bobstar
Frequent Advisor

Re: file system filling up

thanks for your responses

i have checked /dev and there is no large file

also, i dont think there is a problem with the mount points

what i suspect, is that some app or user/ users have not cleared up their unwanted files

id like to somehow do a sorted listing from / and compare it with another node ..
RUET
Regular Advisor

Re: file system filling up

Do you have home directories in / filesystem ?
You can have core, or log files from users or users applications ..
Did you reboot this node ? Sometimes process can have open files on a filesystem, not completly flushed to disks, not seen by du, but taking space in the bdf ..
Peter Godron
Honored Contributor

Re: file system filling up

Hi,

cd /
du -k | sort -rn | more

Also check for unexpected processes using the disk (fuser or lsof).

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.

So far you have never awarded points !

MarkSyder
Honored Contributor

Re: file system filling up

Check the newest files:

cd /
ll -tr

The newest files will be at the bottom.

Sort the files in size order:

ll|sort -k5,5nr|pg

The largest files will be at the top.

Mark
The triumph of evil requires only that good men do nothing
bobstar
Frequent Advisor

Re: file system filling up

hi

i have tryed to submite points in the past, maybe i need to double check things :)

i have seen some thing a little odd

on the node where the filesystem has filled upp for / the /tmp dir size is *10 bigger than on another node. why is the dir size so much bigger ?

also, if the /tmp is mounted on a diffrent lvol then this should not explain why / has filled up ?
Peter Godron
Honored Contributor

Re: file system filling up

Hi,
as long as /tmp is mounted seperately it will not count towards the / size.

Something else you could try is:
find / -size +1000000c -xdev -exec ll {} \; | grep 2006

This will find all entries with more than 1000000 characters (approx 1Mb) on the root partition. The grep at the end does a very crude elimination of old file. You can try to change the 2006 to 2007 for this year.
Ganesh Balraman
Regular Advisor

Re: file system filling up

Dear Sir,

It could one of the reasons

1.Run lsof and look for fs mismatch.

2./dev directory for large files.

3.du on each main dir to find out large files.

4.core or crash in / dir.

Definetly above one could solve.

Regds
B.Ganesh