No free space after deleting 100-MB file

No free space after deleting 100-MB file

Post by linu.. » Thu, 02 Dec 1999 04:00:00



I was running low on space on one of my mount, /opt/apps, so I deleted
a 100-MB file, but I still don't have any free space.  Issuing df -k
confirmed that I have 0% available.  What can be wrong?  I am sure the
file I deleted is on the /opt/apps mount point.  Is something wrong
with the volumes?  Is there some command I can use to reclaim the
space?  My server use Solstice DiskSuite and I can go into the
graphical interface, but I just not sure which button to press for the
time being.  With Netware, there's the purge command to immediately get
rid of all deleted files and reclaim the space.  Does Solaris have
something like that?

TIA!

Linus Ly, newbie Solaris admin

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

No free space after deleting 100-MB file

Post by John Doher » Thu, 02 Dec 1999 04:00:00



> I was running low on space on one of my mount, /opt/apps, so I deleted
> a 100-MB file, but I still don't have any free space.

First guess is that there's another link to the file, which still
exists and is occupying the space.

--

 
 
 

No free space after deleting 100-MB file

Post by jzapsa.. » Thu, 02 Dec 1999 04:00:00


If you are certain you've deleted the file, and have not
reclaimed the disk space, you may want to reboot your
server. I've come across this a couple of times.

* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!

 
 
 

No free space after deleting 100-MB file

Post by David Russel » Fri, 03 Dec 1999 04:00:00


If the process that created the file is still running it probably has the
file open.  If a file is in an open state by process 'A' and is deleted by
process 'B', a subsequent attempt to see the file (ls) or to access the file
would be unsuccessful.  However, until process 'A' closes the file, the
space held by the file will not be released.

The other possiblity is that the space is hidden by Unix's habit of saving
10% of a file system for root.  If you get 0% as root then this isn't the
case.  Otherwise, look at the man page for tunefs

Regards,
David


> I was running low on space on one of my mount, /opt/apps, so I deleted
> a 100-MB file, but I still don't have any free space.  Issuing df -k
> confirmed that I have 0% available.  What can be wrong?  I am sure the
> file I deleted is on the /opt/apps mount point.  Is something wrong
> with the volumes?  Is there some command I can use to reclaim the
> space?  My server use Solstice DiskSuite and I can go into the
> graphical interface, but I just not sure which button to press for the
> time being.  With Netware, there's the purge command to immediately get
> rid of all deleted files and reclaim the space.  Does Solaris have
> something like that?

> TIA!

> Linus Ly, newbie Solaris admin

> Sent via Deja.com http://www.deja.com/
> Before you buy.

 
 
 

No free space after deleting 100-MB file

Post by Rich Tee » Fri, 03 Dec 1999 04:00:00



> First guess is that there's another link to the file, which still
> exists and is occupying the space.

That, or some process has the file open.  The blocks aren't freed
until no porcesses are accessing the file.

--
Rich Teer

NT tries to do almost everything UNIX does, but fails - miserably.

The use of Windoze cripples the mind; its use should, therefore, be
regarded as a criminal offence.  (With apologies to Edsger W. Dijkstra)

If it ain't analogue, it ain't music.

Voice: +1 (250) 763-6205
WWW: www.rite-group.com

 
 
 

No free space after deleting 100-MB file

Post by Cegete » Fri, 03 Dec 1999 04:00:00


When deleting a file that is already open by another process, the file don't
appear anymore after a ls command, but the space held is not freed by the
system.
Try to kill the process, then then the space will be available for
allocation.

--
Salutations

Erwan Quigna
Consultants SI

http://quigna.fr.fm

Quote:>I was running low on space on one of my mount, /opt/apps, so I deleted
>a 100-MB file, but I still don't have any free space.  Issuing df -k
>confirmed that I have 0% available.  What can be wrong?  I am sure the
>file I deleted is on the /opt/apps mount point.  Is something wrong
>with the volumes?  Is there some command I can use to reclaim the
>space?  My server use Solstice DiskSuite and I can go into the
>graphical interface, but I just not sure which button to press for the
>time being.  With Netware, there's the purge command to immediately get
>rid of all deleted files and reclaim the space.  Does Solaris have
>something like that?

>TIA!

>Linus Ly, newbie Solaris admin

>Sent via Deja.com http://www.deja.com/
>Before you buy.

 
 
 

No free space after deleting 100-MB file

Post by Bruc » Fri, 03 Dec 1999 04:00:00




> I was running low on space on one of my mount, /opt/apps, so I deleted
> a 100-MB file, but I still don't have any free space.  Issuing df -k
> confirmed that I have 0% available.  What can be wrong?  I am sure the
> file I deleted is on the /opt/apps mount point.  Is something wrong
> with the volumes?  Is there some command I can use to reclaim the
> space?  My server use Solstice DiskSuite and I can go into the
> graphical interface, but I just not sure which button to press for the
> time being.  With Netware, there's the purge command to immediately
get
> rid of all deleted files and reclaim the space.  Does Solaris have
> something like that?

> TIA!

> Linus Ly, newbie Solaris admin

> Sent via Deja.com http://www.deja.com/
> Before you buy.

This is not going to help you now but next time you want to free up disk
space that is being taken up by a large file that is not needed execute
the following to have the disk space immediately freed up.

cd /directory

cat /dev/null > filename

df -k /directory

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

No free space after deleting 100-MB file

Post by Chris Thomps » Fri, 03 Dec 1999 04:00:00




>If you are certain you've deleted the file, and have not
>reclaimed the disk space, you may want to reboot your
>server.

I think you meant "you may *have* to reboot your server". [And that's
usually wrong, as the other responses in the thread should make clear.]

Or wait... maybe I finally understand Bill Gates' financial success!
He's providing a fix for all those junkies out there who get a real
buzz out of rebooting their servers.   :-)

Chris Thompson
Email: cet1 [at] cam.ac.uk

 
 
 

No free space after deleting 100-MB file

Post by Fredrik Lundho » Fri, 03 Dec 1999 04:00:00



>I was running low on space on one of my mount, /opt/apps, so I deleted
>a 100-MB file, but I still don't have any free space.  Issuing df -k

Well, also, the 100MB file could have been a large hole, like large
portions of a typical core-file.

Fredrik

 
 
 

No free space after deleting 100-MB file

Post by Tony Curti » Fri, 03 Dec 1999 04:00:00



> I was running low on space on one of my mount, /opt/apps, so I deleted
> a 100-MB file, but I still don't have any free space.  Issuing df -k
> confirmed that I have 0% available.  What can be wrong?  I am sure the

Is a process still holding this file open?  If so,
you won't really reclaim the space until it lets go
of it.

The command "fuser" (see man page) will tell you the
PID of the varmint responsible.

You can then "kill" the process, or take whatever
action is necessary.

hth
tony

 
 
 

No free space after deleting 100-MB file

Post by Casper H.S. Dik - Network Security Engine » Sat, 04 Dec 1999 04:00:00


[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]



>>I was running low on space on one of my mount, /opt/apps, so I deleted
>>a 100-MB file, but I still don't have any free space.  Issuing df -k
>Well, also, the 100MB file could have been a large hole, like large
>portions of a typical core-file.

Solaris core files typically do not have holes (SunOS core files did)

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

No free space after deleting 100-MB file

Post by Eugene Ilchenk » Tue, 07 Dec 1999 04:00:00


It is enough to kill process that used that file

--
------------------------------------------------------
Eugene S. Ilchenko, System Network Administrator
Phone:(382-2)42-61-03
http://security.tsu.ru/

 
 
 

No free space after deleting 100-MB file

Post by linu.. » Wed, 08 Dec 1999 04:00:00


Thank you, everyone who posted replies to my question.  FYI, I did
reboot the server but still couldn't reclaim the space, so the problem
wasn't with some processes having a headlock on the file.  I deleted
another 100-MB file and voila I had some space available.  Strange, but
it worked.  I confirmed the space with df -k, as root, at the server
itself, so the problem of Solaris hiding 10% for root wasn't happening.
 Any more suggestions?

Linus Ly



> If the process that created the file is still running it probably has
the
> file open.  If a file is in an open state by process 'A' and is
deleted by
> process 'B', a subsequent attempt to see the file (ls) or to access
the file
> would be unsuccessful.  However, until process 'A' closes the file,
the
> space held by the file will not be released.

> The other possiblity is that the space is hidden by Unix's habit of
saving
> 10% of a file system for root.  If you get 0% as root then this isn't
the
> case.  Otherwise, look at the man page for tunefs

> Regards,
> David




- Show quoted text -

Quote:> > I was running low on space on one of my mount, /opt/apps, so I
deleted
> > a 100-MB file, but I still don't have any free space.  Issuing df
-k
> > confirmed that I have 0% available.  What can be wrong?  I am sure
the
> > file I deleted is on the /opt/apps mount point.  Is something wrong
> > with the volumes?  Is there some command I can use to reclaim the
> > space?  My server use Solstice DiskSuite and I can go into the
> > graphical interface, but I just not sure which button to press for
the
> > time being.  With Netware, there's the purge command to immediately
get
> > rid of all deleted files and reclaim the space.  Does Solaris have
> > something like that?

Sent via Deja.com http://www.deja.com/
Before you buy.
 
 
 

No free space after deleting 100-MB file

Post by Casper H.S. Dik - Network Security Engine » Wed, 08 Dec 1999 04:00:00


[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]


>Thank you, everyone who posted replies to my question.  FYI, I did
>reboot the server but still couldn't reclaim the space, so the problem
>wasn't with some processes having a headlock on the file.  I deleted
>another 100-MB file and voila I had some space available.  Strange, but
>it worked.  I confirmed the space with df -k, as root, at the server
>itself, so the problem of Solaris hiding 10% for root wasn't happening.
> Any more suggestions?

Perhaps there was more than one link to the file and you removed only one.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

No free space after deleting 100-MB file

Post by Robert Pollar » Wed, 08 Dec 1999 04:00:00


The time that I ran into this I called Sun and they said "df -k" wasn't
accurate and it may be reporting an incorrect value.  FWIW!!

> Thank you, everyone who posted replies to my question.  FYI, I did
> reboot the server but still couldn't reclaim the space, so the problem
> wasn't with some processes having a headlock on the file.  I deleted
> another 100-MB file and voila I had some space available.  Strange, but
> it worked.  I confirmed the space with df -k, as root, at the server
> itself, so the problem of Solaris hiding 10% for root wasn't happening.
>  Any more suggestions?

> Linus Ly



> > If the process that created the file is still running it probably has
> the
> > file open.  If a file is in an open state by process 'A' and is
> deleted by
> > process 'B', a subsequent attempt to see the file (ls) or to access
> the file
> > would be unsuccessful.  However, until process 'A' closes the file,
> the
> > space held by the file will not be released.

> > The other possiblity is that the space is hidden by Unix's habit of
> saving
> > 10% of a file system for root.  If you get 0% as root then this isn't
> the
> > case.  Otherwise, look at the man page for tunefs

> > Regards,
> > David



> > > I was running low on space on one of my mount, /opt/apps, so I
> deleted
> > > a 100-MB file, but I still don't have any free space.  Issuing df
> -k
> > > confirmed that I have 0% available.  What can be wrong?  I am sure
> the
> > > file I deleted is on the /opt/apps mount point.  Is something wrong
> > > with the volumes?  Is there some command I can use to reclaim the
> > > space?  My server use Solstice DiskSuite and I can go into the
> > > graphical interface, but I just not sure which button to press for
> the
> > > time being.  With Netware, there's the purge command to immediately
> get
> > > rid of all deleted files and reclaim the space.  Does Solaris have
> > > something like that?

> Sent via Deja.com http://www.deja.com/
> Before you buy.