Operating System - HP-UX
1748067 Members
5666 Online
108758 Solutions
New Discussion юеВ

Re: Root file system full

 
SOLVED
Go to solution
Paper Kwok
Occasional Contributor

Root file system full

How to check if my root file system is full ?
Blank Paper
8 REPLIES 8
Robert Gamble
Respected Contributor
Solution

Re: Root file system full

Typically, you should be able to tell if a filesystem is full by using the 'bdf' command.

If your root filesystem is full, you will also probably notice messages in /var/adm/syslog/syslog.log as well.
Jeff Schussele
Honored Contributor

Re: Root file system full

Hi Paper,

Run the
#bdf
command & check for the filesystem that is named just "/"
If you're close to full then run
#cd /
#du -akx | sort -nr | more
This will sort the files, largest first, in that FS & restrict the output to ONLY the / FS & files/dirs that actually reside in /.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Sridhar Bhaskarla
Honored Contributor

Re: Root file system full

Hi,

bdf /

You can use du -x / |sort -n to find out the files|directories only in root file system and their corresponding sizes.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
PIYUSH D. PATEL
Honored Contributor

Re: Root file system full

Hi,

use bdf / or df -k /
to find out whether your root filesystem is full or not.

# bdf | grep /

Piyush
Sanjay_6
Honored Contributor

Re: Root file system full

Hi,

Try the bdf command.

Hope this helps.

Regds
Shahul
Esteemed Contributor

Re: Root file system full

Hi

U can find out by using bdf command. Follow this

#bdf |pg

this will list each and every lvol's size in KB, used in KB, Free in KB and %used.

Best of luck
Shahul
Martin Johnson
Honored Contributor

Re: Root file system full

You can do:

du -kx / | sort -rn | more

to determine which directories are using the most space.

HTH
Marty
Sameer Mohbe
New Member

Re: Root file system full


Try this Command:
du -sk * |sort -k1,1n
it will also sort it with the culprit at last.

Thanks
Sameer Mohbe