Operating System - HP-UX
1830944 Members
2178 Online
110017 Solutions
New Discussion

filesystem size is not updating while doing bdf

 
SOLVED
Go to solution
Mike Abasolo
Occasional Advisor

filesystem size is not updating while doing bdf

Im experiencing a weird scenario. Filesystem is currently empty but my bdf shows a different ouput.

[root@server1:/root]
# bdf /oracle/F7C/sapdata3
Filesystem kbytes used avail %used Mounted on
/dev/vg_F7C_03/lv_data03
35586048 23145840 12343096 65% /oracle/F7C/sapdata3


[root@server1:/root]
# du -sk /oracle/F7C/sapdata3
8 /oracle/F7C/sapdata3

[root@server1:/root]
# lvdisplay /dev/vg_F7C_03/lv_data03
--- Logical volumes ---
LV Name /dev/vg_F7C_03/lv_data03
VG Name /dev/vg_F7C_03
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 34752
Current LE 8688
Allocated PE 8688
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default


Hope someone could explain what happened


Thanks,
Mike

6 REPLIES 6
Tim Nelson
Honored Contributor
Solution

Re: filesystem size is not updating while doing bdf

Most likely a process still has a file open in memory. Until you find/kill that process the space will not return.

If you attempt to unmount the filesystem I would suspect you cannot because it is still busy.

run fuser or lsof to find the process.

James R. Ferguson
Acclaimed Contributor

Re: filesystem size is not updating while doing bdf

Hi Mike:

This is perfectly understandable if the file in question is a sparse one. "Sparse" files are those with unallocated extents, very common in databases. Try this:

# cd /path
# perl -le '$f="sparse";open(FH,">",$f);seek(FH,2**32,1);print FH "."'
# ls -l sparse
-rw-r--r-- 1 root sys 4294967298 Aug 29 14:53 sparse
# du sparse
16 sparse

Now, if you have the space in the filesystem where you created this file:

# cp sparse sparse.expanded

You can compare the 'bdf' output before and afterwards to see what you have observed, too.

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: filesystem size is not updating while doing bdf

Hi (again) Mike:

My apologies, I should learn to read :-(

Tim has answered your question most correctly.

Regards!

...JRF...
Mike Abasolo
Occasional Advisor

Re: filesystem size is not updating while doing bdf

Thanks Tim and James for that quick response. Indeed, Tim was right. There was open processes that's using the filesystem earlier. There was a backup processes accessing the filesystem. I waited for the backup to finished and found the normal utilization for the FS.

Points were assigned. Thanks :)


Regards, Mike
Mike Abasolo
Occasional Advisor

Re: filesystem size is not updating while doing bdf

Thread can be closed
SKR_1
Trusted Contributor

Re: filesystem size is not updating while doing bdf

Reboot can help you out also.

Thanks

SKR