1825003 Members
2689 Online
109678 Solutions
New Discussion юеВ

Re: File System Full

 
SOLVED
Go to solution
Douglas Arneson
Occasional Advisor

File System Full

Hi,

I have several servers running HP-UX 10.20 with an Oracle database installed. Receintly I have been seeing my root file system reporting 100% (using bdf). The system usually operates between 75% and 85% used. I have trimmed all log files to zero, removed files from /tmp and it doesn't seem to make any difference in the %used. My root drive is 2GB and is managed by LVM.

Doug
10 REPLIES 10
Solution

Re: File System Full

Well start by looking for files bigger than 100MB in the root file system, and then work down to 10MB by removing the a zero from this...

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

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Jeff Machols
Esteemed Contributor

Re: File System Full

try this

find / -xdev -print | xargs ls -l | sort -n -k 2 | tail -50

This will show the biggest files out there.
Frederic Sevestre
Honored Contributor

Re: File System Full

Hi,
Make sure the file is not in use before removing it (fuser )
Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
A. Clay Stephenson
Acclaimed Contributor

Re: File System Full

Hi Doug:

I assume that you have a separate /tmp filesystem. The / filesystem should essentially not grow at all once a system is configured. Check for regular files in /dev. If is quite common to find misdirected tar files in /dev. e.g. You meant to use /dev/rmt/0m but used /dev/rmt/Om instead. Also use find to look for core files. I would also use the du -kx / command to look for large directories.
If it ain't broke, I can fix that.
Mark Greene_1
Honored Contributor

Re: File System Full

if you've removed any large files that are still in use by any running process, then that file will no longer show in the ls listing, but the process will still be writing to it. The only way to free the space is to logoff/kill the process. Check to see if you have any zombie processes out there, they may be doing this.

--
mark
the future will be a lot like now, only later
Helen French
Honored Contributor

Re: File System Full

hey,

I would try to use these two commands to
look for big files or newly created files. 1) find / -xdev -size +1000
-exec ll {} \; > /tmp/bigfiles 2) find / -xdev -type f -mtime -2 -exec ll
{} \; > /tmp/newfiles

Check for any errors while u were taking backup ? for eg: entering /dev/rmt/om instead of /dev/rmt/0m ?

This document will surely help you to solve the problem:
HP Knowledge base #BA961218001

HTH,
Shiju
Life is a promise, fulfill it!
Uday_S_Ankolekar
Honored Contributor

Re: File System Full

Hi,

OK you can find bigger files with this command
find / -size +100000c -exec ls -l {} \;

This would give you files bigger than 100,000 Characters. You can increase /decrease number of zeroes to look for the desired size.

Some time if you deleted some files and still
you won't get space then probably it may due to there are some process still running related to deleted file.
Also check if your /dev file gieeting filled up by /om due to a wrong tape device destination name , instead of 0m
-USA..
Good Luck..
Douglas Arneson
Occasional Advisor

Re: File System Full

Thanks to all who suggested the 'find' command! That help us to find mail files that we didn't know existed. We must have had 1000s of files in /var/spool/mqueue, a few of which were over 1.5MG. We also had a large in /var/spool/cron/atjobs/dead.letter.

Can these directories automatically be deleted like the /tmp directory during start up?

One more question... Can the files in /var/preserve be deleted?

Thanks again!

Doug
Jeff Machols
Esteemed Contributor

Re: File System Full

/var/preserve are old vi editor recover files. As long as no one needs to recover a file from a vi crash, go ahead and delete them. Usually anything over a day old is safe, because someone would have recovered them by now.
Douglas Arneson
Occasional Advisor

Re: File System Full

Thanks Jeff, that helped.