System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

To identify correct size of FS & dir with du :

SOLVED
Go to solution
rveri
Super Advisor

To identify correct size of FS & dir with du :


Experts,
du reporting incorrect:
I am unable to figure out this, please help:

hpux120: /usr/app/oracle/admin # du -skx abbprd
40298 abbprd
hpux120> /usr/app/oracle/admin # du -sk abbprd
879880 abbprd


Also:
xmsprd1 /usr/app/oracle/admin/abbprd # du -sk
879880 .
xmsprd1 /usr/app/oracle/admin/abbprd # du -skx
40298 .





hpux120 /usr/app/oracle/admin # bdf .
Filesystem kbytes used avail %used Mounted on
/dev/vgxt1/admin 3144704 87709 2866428 3% /usr/app/oracle/admin
hpux120 /usr/app/oracle/admin #



--------------------------
# bdf /usr/app/oracle
Filesystem kbytes used avail %used Mounted on
/dev/vgxt1/oracle
9437184 8353052 1019490 89% /usr/app/oracle


Please advise,
Thanks in adv,
3 REPLIES
Dennis Handly
Acclaimed Contributor
Solution

Re: To identify correct size of FS & dir with du :

>du reporting incorrect:

Why do you say that? There are three states for space on the disk but only two commands, unless you include lsof. You would have to add all three to make the numbers add up.

Your du(1) outputs show using -x gives less, this is correct, you should always use -x to prevent crossing filesystem mount points. Your two bdf(1) outputs show the different filesystems.
rveri
Super Advisor

Re: To identify correct size of FS & dir with du :

Thanks . ll check with lsof as well ,
. Closing thread.
rveri
Super Advisor

Re: To identify correct size of FS & dir with du :

closed