1834746 Members
2586 Online
110070 Solutions
New Discussion

Root lvol disk space

 
Bob Manocchia
Regular Advisor

Root lvol disk space

I have an L-Class server running 11i v1. The root filesystem is 150mb in size. Recently that was near 100% full. I ran du -xk | sort -rn | more to see where the space was going. The total reported by du was around 39mg, while the bdf reported that over 140mb was taken up. We rebooted the box and the usage went down to around 45mb. My question is: What was using all the disk space not being reported by du.

Thanks
5 REPLIES 5
RAC_1
Honored Contributor

Re: Root lvol disk space

Might be there was a file that was removed, but process was still accessing a file. In such a case, space will not be freed until process stops.
There is no substitute to HARDWORK
Paul Thomson_2
Super Advisor

Re: Root lvol disk space

Bob,
Do you know if anyone removed any files ? Its probable that the file was removed with the process using it still in use. In this case bdf reports incorrectly while du is correct.

PAul
Argh ye land lovers !
harry d brown jr
Honored Contributor

Re: Root lvol disk space

Did you possibly delete any files to free up room? If so, did you check to make sure no process had the file open? When a process has a file open, you can "rm" the file, but the process STILL knows where it's at, thus it can continue writing to the file even though you think you deleted it. When the process dies (your reboot ensured that) then the space the "file" was consuming was returned back to the filesystem as "free".

live free or die
harry d brown jr
Live Free or Die
Bob Manocchia
Regular Advisor

Re: Root lvol disk space

Thanks for the answers. This server hadn't been booted in quite a while. I'm a firm believer in booting servers on a semi regular basis just to clear up things.

Again, thanks
Randy Rayfield
Advisor

Re: Root lvol disk space

You can find these files (that had been removed from under the process) with the "quot" command