The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
mount -o llock -F nfs vs mount -F nfs KhawHL UNIX for Dummies Questions & Answers 1 01-15-2008 08:48 PM
Mount a DVD janet AIX 1 04-04-2006 08:35 AM
Mount CreamHarry Filesystems, Disks and Memory 7 03-25-2002 01:56 AM
mount mcaelbukch UNIX for Dummies Questions & Answers 1 12-13-2001 02:09 PM
how to mount a hotswap scsi drive on a solaris 2.6 netra box using the mount command? soulshaker UNIX for Dummies Questions & Answers 4 07-18-2001 10:11 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-13-2005
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,473
one of the mount pts 100%

Hi all,

recently we had a critical error like one of the mount points /online
was 100% full.

Even when we deleted three ( 3 ) 0.5 GB files available space in /online mount was not increasing

rather

df -k for /online continued to show as 100% full.

what could be the problem, even if files are deleted from /online mount
used space percentage in that mount didnt come down.

Kindly clarfiy this.

thanking in advance.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-13-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,354
If you delete a file that is opened by a process the space will not be freed until the process exits.
Reply With Quote
  #3 (permalink)  
Old 09-13-2005
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,473
Thanks for the reply.

I believe

that u had channelized the solution to my query in this way,

some process is pumping data in the mount specified and even though the files are deleted, space is not freed as the actual pump process is not killed.

This was thought already.

But the situation is not so,

none of the process do pump data to that mount.

We entirely have a different mount point for that. Mount point were it flashed 100% is purely a dump mount and that too - manual dump.

I dont think process dumping data would be the problem.

Can u please clarify?
Reply With Quote
  #4 (permalink)  
Old 09-13-2005
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,323
Run this:
Code:
cd /online
du -sk *|sort -nr|more
This will give you a list of files/directories that are occupying the most space in /online. Then you can get the largest files and work toward deleting/compressing them.
Reply With Quote
  #5 (permalink)  
Old 09-14-2005
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,473
thanks blowtorch for the reply,

as i had mentioned in my previous post of deleting the ( 3 ) 0.5 GB files

it was the same command

du -sk /online/* | sort -nr

that was the used to determine the 0.5 GB files.

But my question is without any process pumping data to that mount even after deleting files space is not free

hope i am making myself clear.
Reply With Quote
  #6 (permalink)  
Old 09-14-2005
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,323
From root, run the following command:
Code:
fuser -cu /online
If you have any processes running, then kill them using 'fuser -ck' (if those can be killed) and then try unmounting the filesystem and then remounting it.
Reply With Quote
  #7 (permalink)  
Old 09-15-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,491
After a call to unlink() that set the inode link count to zero, the kernel keeps the file out there until all processes file descriptors are closed for that file.

So an inactive process that has the file open will keep the file there forever.
As blowtorch suggested lsof or fuser are the best choices for finding and killing processes that have the file open.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:44 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0