Operating System - HP-UX
1753268 Members
4817 Online
108792 Solutions
New Discussion юеВ

disk space does not add up

 
SOLVED
Go to solution
dgizaw
Frequent Advisor

disk space does not add up

The /opt filessytem (lvol5 volume) total size is 6.5GB. When I excute bdf the used disk space is 5.8GB. But I tried to add it up from du -sk * in /opt directory it is less than 3GB. Where did the rest of the disk space went? Any idea?

Thank you
Do not undermine a chalnge
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: disk space does not add up

What do you get if you run "du -sk /opt"? Is it possible that you have any sparse files in /opt - like database files for DataProtector or something?


Pete

Pete
Sandman!
Honored Contributor

Re: disk space does not add up

A problem related to files open by processes that have been deleted but the space hasn't been released to the OS. lsof can find this out for you.

# lsof +aL1 /opt
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: disk space does not add up

The most likely explanation is that you did not execute du as root and there were files/directories for which you did not have persission. Unless the -r option is added to du, du is silent about these omissions. It is also possible that you have rm'ed (unlinked) files that are still help open by some processes.
If it ain't broke, I can fix that.
dgizaw
Frequent Advisor

Re: disk space does not add up

for du -sk /opt I got 2393712 /opt much less than 5.8GB. I have also excuted #lsof +aL1 /opt and I got "lsof: can't read proc table info"

Thanks
Do not undermine a chalnge
Steven E. Protter
Exalted Contributor

Re: disk space does not add up

Try booting the box and checking again.

Maybe you deleted a file but the space isn't available because the process is still open.

lvdisplay -v | more

Perhaps there are stale extents or other damange.

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
dgizaw
Frequent Advisor

Re: disk space does not add up

I login as a root and excute du -sk /opt and the same. I also excute # lvdisplay -v /dev/vg00/lvol5 and there is no any stall all are current. Shouldn't I see free PEs? I think I need to reboot the system but since it is a production I can not reboot it. Is there any thing I can do short of reboot?

Thanks
Do not undermine a chalnge
Sandman!
Honored Contributor

Re: disk space does not add up

You can recycle all the applications that are using that mount point as long as they are not critical to the server's functionality. You need to decide if recycling the applications using /opt causes an outage and proceed accordingly.

cheers!
Deoncia Grayson_1
Honored Contributor

Re: disk space does not add up

You can try to resolve your lsof problem in order to identify what files were removed that may be holding space on /opt. You might need download a new copy of lsof on your sever for either 64bit or 32bit kernel.


http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.64/>


If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
dgizaw
Frequent Advisor

Re: disk space does not add up

Thank you all for fast response. I will reboot the system and will see.
Do not undermine a chalnge