Operating System - HP-UX
1833866 Members
2769 Online
110063 Solutions
New Discussion

Re: root file system space

 
Emandlate
Occasional Contributor

root file system space

Dear sirs,
Im using HP-UX 11.11. Sudenly the root file system grou up until 100%. During the backup i see tha t the root file system has only 380MB ocupied but it still showing 1048064 KB in BDF wich is near to the size of root size.

when I do df -k it shows for /:

1048576 total allocated Kb
512 free allocated Kb
1048064 used allocated Kb
99 % allocation used

how can I free the space in order to have 318M when I do BDF?

Best regards.
Ernesto
5 REPLIES 5
Suraj K Sankari
Honored Contributor

Re: root file system space

Hi,
Check any open file is there under / also check any backgound process is running which is generating any files under root FS or check any core/zip files is there under /

For checking open files
lsof +L1 +D /

find / -name core -print


Suraj

Re: root file system space

hi,
Suggestion:
bdf reports disk space occupied by files plus space reserved by processes/or some running program. you may check your system for such reservation or you can reboot or fsck to resolve the issue.

sometimes this space calculation is "virtual" like a process working on a log file, now after removing log file, you expect the system to show you increase in free space, well until process/daemon dies, you may not get this result.

and sometimes it could be "real" like a program has reserved some space that you don't know and you want your system to report "physical" space and not "logical"

hope you get good idea what i have in my suggestion. :)

" My Answers are Not Final"

Regards,
Asghar
prasadb
Super Advisor

Re: root file system space

hi Emandlate,
Are you getting logs from some application or like in the root directory ..

check it out by..

#find / -name "*.log" -print -exec ls -l {} \;

check out for any tar file by

#find / -name "*.tar" -print -exec ls -l {} \;

and you may truncate the unnecessary files/tar file..


regards,
prasad
Adam W.
Valued Contributor

Re: root file system space

Check for large files and running files. Use lsof for this or a favorite of mine is always:
find / -xdev -depth -size +7000 â xdev -exec ll {} \; | more

OR

find / -type f -size +1000000c -xdev -exec ls -l {} \;
(if you want to search for a number of characters try the lower case c after the number


OR

A little fof your topic but:/usr/sbin/cleanup -c 2 (will remove all patches superseded more that 2 times. useful knowledge is all)

OR
Also I would search for any core files and remove them. Sometimes I have them in /

There are two types of people in the world, Marines and those who wish they were.
Ninad_1
Honored Contributor

Re: root file system space

Hi,

Pls check if there are any regular files (instead of the special device files) in /edv directory.
Many times during backup - due to wrong target device name files get created in /dev.
do
find /dev -xdev -type f -print


Do a du -ks / | sort -nr | head -20
This will give you the top 20 files/directories consuming space in / filesystem.

Then before deleting any file - if you find being large and unwanted in / filesystem, check that it is not being used - by
fuser -u

or use lsof as suggested above.

Regards,
Ninad

Regards,