cancel
Showing results for 
Search instead for 
Did you mean: 

bdf strange output

SOLVED
Go to solution
manuj kumar
Frequent Advisor

bdf strange output

hi

this is bdf output
/dev/vg00/lvol3 1458176 235552 1213152 16% /
/dev/vg00/lvol1 1744896 329424 1404504 19% /stand
/dev/vg00/lvol8 5242880 5242880 0 100% /var
/dev/vg00/lvol7 4194304 3009984 1175192 72% /usr

notice /var is 100%, 5GB used

du output

du -sk /var
1002440 /var


please advice.


6 REPLIES
Raj D.
Honored Contributor
Solution

Re: bdf strange output

Manuj,

>du -sk /var
1002440 /var

There may be some open files on /var , check with lsof to find the culprit.

# lsof /var
And sort on the filed "Size"

If you dont have lsof installed , you can download , install and check:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.83/


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
manuj kumar
Frequent Advisor

Re: bdf strange output

it gave me long list, with different sizes.
should i kill the process which is eating the size?
Kanagaraj
Regular Advisor

Re: bdf strange output

Don't kill the service,just check the file using by the aby services,it may be log files.try to rename and compress it.

Don't forget to create the empty log file.
Kapil Jha
Honored Contributor

Re: bdf strange output

from lsof output see which process has open the biggest file.
and kill that process may be trim the file and restart the service.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Raj D.
Honored Contributor

Re: bdf strange output

Manuj,

>it gave me long list, with different sizes.
should i kill the process which is eating the size?

- You can check :
# lsof > lsof.txt
# cat lsof.txt | sort -rnk 7 | head -n 20

The above will give top 20 proceses having large open file. If you kill or bounce that process , it will release the space. You can check what process it is , by checking the pid in 2nd column. or ps -ef | grep .

Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Duncan Edmonstone
Honored Contributor

Re: bdf strange output

Did someone delete a file that a process still had open?? That would show up as allocated space in bdf/df but wouldn't in du

lsof +aL 1 /var

will tell you...

HTH

Duncan


HTH

Duncan