1833768 Members
2258 Online
110063 Solutions
New Discussion

release the space

 
SOLVED
Go to solution
hangyu
Regular Advisor

release the space

I have move some file from a volumn to another volumn , then I check by bdf and found that the space is not release ( that mean the used size is the same ) , except reboot the server , how can I release the size ? thx
5 REPLIES 5
Sandman!
Honored Contributor

Re: release the space

The process which has that file open is preventing the space from being released. You can determine that with fuser or lsof.
DCE
Honored Contributor

Re: release the space



You can get lsof from the link below, if you do not have it

http://gatekeep.cs.utah.edu/hppd/hpux/
hangyu
Regular Advisor

Re: release the space

thx reply ,

I check with these command , lsof path_name and fuser path_name but didn't find anything , can suggest what is wrong ? thx
Steven E. Protter
Exalted Contributor
Solution

Re: release the space

Shalom,

Even when the file disappears, the space is not returned to the system until all process file handles are closed.

fuser -cu /filesystem

# lists the processes. If you want to kill the proccesses at a k to the options. This can disrupt normal system operations.

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
James R. Ferguson
Acclaimed Contributor

Re: release the space

Hi:

From your description it sounds like you have a process that has a file open that has been otherwise removed. Until the last process using the file terminates, the space used by the file will not be released.

To identify the process use 'lsof' (available from the Porting Center):

http://hpux.cs.utah.edu/

Do:

# lsof +D /path +L1

Look for a 'NLINK' count of zero (0). This represents an open files that will vanish as soon as the last process it terminates.

Regards!

...JRF...