1832973 Members
2399 Online
110048 Solutions
New Discussion

recovering diskspace

 
marc melbourne
New Member

recovering diskspace

I've deleted/moved a few files(not related to the HP-UX 11.11 O/S)to increase available diskspace. Files were located in different directories. The problem is that having deleted or moved(to different LV) the files doesn't increase the available diskspace in the LV.

The latest incident was where a 250mb file was dumped into a directory under /home increasing the usage by about 30%. I moved the file to a different LV but the usage didnt' decrease at all. An "ls" shows that the file is no longer in the original directory. But why isn't the file space returning ?
4 REPLIES 4
RAC_1
Honored Contributor

Re: recovering diskspace

That is because, the files may be in use.
fuser -u ./file_name
lsof ./_file_name

Get lsof from http://hpux.connect.org.uk

The process is using it. Untill you stop process, you can not recover that space occupied by file.

Anil
There is no substitute to HARDWORK
Franky_1
Respected Contributor

Re: recovering diskspace

Hi Marc,

maybe there's still a process retaining the disk space
Try "fuser -cu " to see wether there are proc(s)
If so then delete them and the diskspace should be available again

Regards

Franky
Don't worry be happy
A. Clay Stephenson
Acclaimed Contributor

Re: recovering diskspace

Do a man 2 unlink (the underlying system call used by the rm and mv commands) and you will see a very answer to your problem.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: recovering diskspace

Do a man 2 unlink (the underlying system call used by the rm and mv commands) and you will see a very clear answer to your problem.
If it ain't broke, I can fix that.