Operating System - HP-UX
1748204 Members
3972 Online
108759 Solutions
New Discussion юеВ

Re: My root "/" FS is full

 
George Nikoloudis_1
Frequent Advisor

My root "/" FS is full

Hello to all
I have a problem with my root FS
When I am doing bdf I see the below

Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 262144 262144 0 100% /
/dev/vg00/lvol1 119637 34741 72932 32% /stand
/dev/vg00/lvol7 2621440 1553414 1012057 61% /var
/dev/vg00/lvol6 2097152 637578 1374403 32% /usr
/dev/vg00/lvol5 1048576 519132 496390 51% /tmp
/dev/vg00/lvol4 2097152 1308423 740880 64% /opt
/dev/vg00/lvol8 53248 6363 44592 12% /home

The "/" is 100% full. I tried everything like lsof, du,df and I cannot find what is happening. This happened very suddenly.

Can you please Help, It is vary urgent
11 REPLIES 11
John Payne_2
Honored Contributor

Re: My root "/" FS is full

Have you looked all over for some large file sitting somewhere? (An example might be an inordinately large /etc/rc.log)

Has your system been down in single user mode lately? If that was the case, it may be possible that you stuck something under /opt and you do not see it...

If you remove something like a large /etc/rc.log or other open file, the space will not free until after a reboot.


Good luck.

John
Spoon!!!!
Robin Wakefield
Honored Contributor

Re: My root "/" FS is full

Hi George,

Look in /dev/rmt, someone may have written to a file om instead of 0m.

Also try:

find / -xdev -mtime 0 -size +100000c -type f | xargs ls -ld

if you can run it of course, and see what's been modified today, and is greater than 100k bytes.

Rgds, Robin
Helen French
Honored Contributor

Re: My root "/" FS is full

Hi George,

Try these commands:

# find / -xdev -type f -mtime -1 -exec ll {} \; > /tmp/newfiles

This will list you the newly created files ( 1 day ) in the system. As you have all other FS mounted under /, the search will list you all new files and may take some time to finish.

# find / -xdev -size +10000 -exec ll {} \; > /tmp/bigfiles

will give you a list of all big files ( >10000) under root.

Check the syslog file for any error messages.

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

Re: My root "/" FS is full

First of all , if you are having rot prompt from any window go to /dev/rmt directory
There you should find some big files. remove that.

then go to /etc /sbin /dev /bin directories and give du -sk *. It will give you the filesize in MB. Look for any big file which is not required and delete it.

Try to run cleanup -F

Sandip
Good Luck!!!
Bill McNAMARA_1
Honored Contributor

Re: My root "/" FS is full

Common errors are in /etc/

you do a dd if=disk of=tape
but not the right device file, thus a file is created the size of disk...! until / fills/.

Check /dev/ using ll

Later,
Bill
It works for me (tm)
A. Clay Stephenson
Acclaimed Contributor

Re: My root "/" FS is full

the best thing to do is a du -k and look for large directories and then narrow your search. The very first place to look is in /dev. There sould be no large files (or for that matter no regular files at all). It is very easy to do a tar cvf /dev/rmt/Om (the letter 'O') rather than /dev/rmt/0m (zero).

The root filesystem should grow hardly at all after system setup.

You should also look for large core files.
If it ain't broke, I can fix that.
Peter Kloetgen
Esteemed Contributor

Re: My root "/" FS is full

Hi,

first of all you should try to find the files/directories which cause the full filesystem:
cd /path/to_directories_where_you_changed_thing

find . -size 1000 -exec ll {} \;

perhaps you can cleanup your root filesystem by deleting unnecessary things...

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping
pap
Respected Contributor

Re: My root "/" FS is full

Hi George,

Simplest thing is to do du-k and will give you disk usage by files there you can figure it out which directory/file is occupying more space.

LAter delete those identified files.

Thanks,

-Piyush.
"Winners don't do different things , they do things differently"
Sanjay_6
Honored Contributor

Re: My root "/" FS is full

Hi George,

Probably someone was trying to take a backup and misspelled the device file name. Look for any files in /dev directory.

if your deivce is /dev/rmt/0m and you misspell it as /dev/rmt0m it will create a file rmt0m in /dev directory and woll start backing up to this file.

Hope this helps.

Regds