Operating System - HP-UX
1846730 Members
3737 Online
110256 Solutions
New Discussion

bdf still shows data that is no longer there

 
Jayson Hurd_2
Advisor

bdf still shows data that is no longer there

We have cleaned out /var, but bdf still shows it at 94% used. When you do a du -sk on it the numbers don't add up to nearly what the bdf shows as used - probably only 30% used...

Any way to free up this space?
Most things worth having don't come easily.
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: bdf still shows data that is no longer there

The problem is that the files have been unlinked (rm'ed) but the processes that had the files open are still running. The space is not actually freeded until 1) the link count goes to zero -- you've done that 2) any processes which have the file open closes it. You need to kill the processes. Lsof is a very good tool for finding these files especially after you have already unlinked them.
If it ain't broke, I can fix that.
Sundar_7
Honored Contributor

Re: bdf still shows data that is no longer there

Download and install lsof from here

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

# lsof | grep /var

Once lsof is installed, the above command will list the process that have files from /var file system open.

Kill and restart those processes.
Learn What to do ,How to do and more importantly When to do ?
Procnus
Frequent Advisor

Re: bdf still shows data that is no longer there

I'd also suggest using fuser to find out the PID's of the processes using anything in /var, fuser -c /var

Steven
KapilRaj
Honored Contributor

Re: bdf still shows data that is no longer there

Use lsof to determine that process who has opened a large file on var and have not written back to the disk .... you will need to kill / terminate it

Regds,

Kaps
Nothing is impossible