Operating System - HP-UX
1836444 Members
2354 Online
110100 Solutions
New Discussion

what's wrong with the bdf?

 
SOLVED
Go to solution
wangzhida
Occasional Advisor

what's wrong with the bdf?

Hi,all:
I got different value of the size of /data volumn, when I use 'dbf' and 'du -sk' separately.
here goes the results.
---------------------------------------------
%bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg_data/lv_data
227278848 147486304 79169240 65% /data

%du -sk /data
75148424 /data
-----------------------------------------------
now you see, the 'used' value that generated by dbf is much larger than 'du -sk'.
which one is the right one? how should I deal with it?

thanks!
11 REPLIES 11
Arunvijai_4
Honored Contributor
Solution

Re: what's wrong with the bdf?

Hello,

You can try with "sync" to syncronize any recent changes happened to the file system and try to run again.

You can check this thread for more explanation

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=883822

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: what's wrong with the bdf?

Refer this:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=143084

--
Muthu
Easy to suggest when don't know about the problem!
RAC_1
Honored Contributor

Re: what's wrong with the bdf?

There is a difference between du and bdf works. there will be difference in their outputs, but should be very big. Did you delet/move any files, while process was accessing them?? Do you have any sparse files in that file system?
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: what's wrong with the bdf?

Shalom,

Nothing is wrong with either du or bdf.

bdf will not show space from deleted files as available until any processes that have open handles on these files are terminated.

A reboot will make the results consistent, as will a killing of proceses listed on this command:

fuser -cu /data

Add the k parameter to the above command at your own risk and fuser will kill them. Be careful, its a really good way to bring down a production system.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
wangzhida
Occasional Advisor

Re: what's wrong with the bdf?

I got these stuff here:
--------------------------------------------
# ps -ef|grep 873|more|grep -v grep
root 873 772 0 Mar 16 ? 0:55 /opt/omni/lbin/vbda -bmaname drive1 -type 2 -start 1142460074 -
root 874 873 0 Mar 16 ? 1:15 /opt/omni/lbin/vbda -bmaname drive1 -type 2 -start 1142460074 -
---------------------------------------------
what's vbda? there's no man manual for it.
wangzhida
Occasional Advisor

Re: what's wrong with the bdf?

sorry. forgot these
# fuser -cu /data
/data: 873o(root)
RAC_1
Honored Contributor

Re: what's wrong with the bdf?

vbda is part of omniback backup software.
There is no substitute to HARDWORK
Robert-Jan Goossens_1
Honored Contributor

Re: what's wrong with the bdf?

Hi,

/opt/omni/lbin/vbda is a backup session from HP OpenView Storage Data Protector. It looks like the session is hanging (March 16). Check your data protector logfiles for errors on that date.

Best regards,
Robert-Jan
Yogeeraj_1
Honored Contributor

Re: what's wrong with the bdf?

hi,

a backup is most probably in progress, to check check this, please run:

omnidb -session

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
wangzhida
Occasional Advisor

Re: what's wrong with the bdf?

thank you all! I've resolved the problem. thank you.
wangzhida
Occasional Advisor

Re: what's wrong with the bdf?

the problem has been solved!