Operating System - HP-UX
1840615 Members
2625 Online
110166 Solutions
New Discussion

deleting files does not reduce the space

 
Amit Manna_6
Regular Advisor

deleting files does not reduce the space

Hi,

I am deleting some files from one of my filesystems. But it does not increase the available space.

Before deleting one file the available space is 6.8 MB. After deleting a file of 60 MB the available space remains the same.


Its a B Class machine
and HP Unix Versions is 10.20>

Could anybody please advice.


Thanks and Regards,

Amit Manna
9 REPLIES 9
Shaikh Imran
Honored Contributor

Re: deleting files does not reduce the space

Hi,

This link may help you.

http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=485727

Regards,


I'll sleep when i am dead.
Sanjay Kumar Suri
Honored Contributor

Re: deleting files does not reduce the space

Just check if

#fuser -cu /file_system

This will list processes using a file or file structure. If the same is listed then user the following command

#fuser -kcu /file_system

which will send the SIGKILL signal to each process using each file.

Both the command need to be fired from root id.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
KapilRaj
Honored Contributor

Re: deleting files does not reduce the space

lsof to check if there are any open files.. also check in this forum , do a search there are many threads where we hv discussed this before.

Kaps
Nothing is impossible
Amit Manna_6
Regular Advisor

Re: deleting files does not reduce the space

I tried everything, but it does not solve the problem.

Thanks and Regards,

Amit Manna

Eric Antunes
Honored Contributor

Re: deleting files does not reduce the space

Try a restart after removing the file...
Each and every day is a good day to learn.
Mark Grant
Honored Contributor

Re: deleting files does not reduce the space

Amit,

This is a common problem. Disk space is not returned to the filesystem when you delete a file if something has that file open. You don't get the space back until that file is closed. However, the directory entry for the file IS removed so you can't see it anymore. It's almost certain that something is holding your 60MB file open. You will have to find what has that file open. Make sure it isn't you :)
Never preceed any demonstration with anything more predictive than "watch this"
Bharat Katkar
Honored Contributor

Re: deleting files does not reduce the space

Hi Amit,
As Antunes suggested, rebooting if possible can solve your problem.
Or you can try umounting and again mounting the Filesystem.
Regards,
You need to know a lot to actually know how little you know
KapilRaj
Honored Contributor

Re: deleting files does not reduce the space

which filesystem ?. Did you try a umount and then mount ?.

Kaps
Nothing is impossible
Bruno Ganino
Honored Contributor

Re: deleting files does not reduce the space

The problem still present ?
Other suggestion:
Save file system on tape.
Create again file system with mkfs command.
Restore file system from tape.
HTH
Bruno
Torino (Turin) +2H