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
Moving a Logical Volume from one Volume Group to Another krisw AIX 2 07-14-2008 04:48 AM
How to resize mirror volume in veritas volume manager 3.5 on Solaris 9 OE nageswarb SUN Solaris 0 03-14-2008 01:46 PM
LVM - Extending Logical Volume within Volume Group ghimanshu UNIX for Advanced & Expert Users 3 07-26-2007 04:39 AM
volume managment csaunders AIX 1 06-10-2004 03:07 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 01-07-2005
Registered User
 

Join Date: Jan 2005
Posts: 28
VOlume full

Hello,

I'm using SOlaris 8 and I have a little bug.

I have deleted a big files to free space on a volume (succesfully), but when I'm using the command "df -k", the volume is always displaying 100 % full.

Sun recommends a server reboot.

Did you see an other solution ?

Thanks,

Fabien
Reply With Quote
Forum Sponsor
  #2  
Old 01-07-2005
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
It matters what file(s) you deleted. Some files could still be allocated by a process (it still has it opened) so you don't get the space back until the process is done. A reboot would certainly fix that - but I'm surprised SUN recommended that.

You can use lsof to see what files are open by what processes (if it's loaded on your server). Fuser may also show you.
Reply With Quote
  #3  
Old 01-07-2005
Registered User
 

Join Date: Jan 2005
Posts: 28
Talking

In fact It's not really Sun recommendation , but a Unix Expert here

Unfortunately "lsof" is not installed.

My file deleted was a log file from Oracle. Maybe by stopping and restarting Oracle ...
Reply With Quote
  #4  
Old 01-07-2005
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
That (starting/stopping Oracle) might work but I'm not a DBA.
Seems you should be talking to your DBA before deleting Oracle files.
Reply With Quote
  #5  
Old 01-07-2005
Registered User
 

Join Date: Jan 2005
Posts: 28
The DBA tells me to do it
Reply With Quote
  #6  
Old 01-07-2005
Registered User
 

Join Date: Nov 2002
Location: Singapore
Posts: 128
Encounter smiliar issue like you. Certain stupid application keeps a log file open to write too. Like VCS. If it gets too big for your filesystem and you delete it. You will realize the space consumed is not returned to the filesystem.

I use cp /dev/null > $Logfile, also face the same issue.

I decided to increase the file system instead.

To all experts, any good solutions here?
Reply With Quote
  #7  
Old 01-08-2005
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Quote:
Originally posted by unclefab

Unfortunately "lsof" is not installed.
Try "fuser" then (if it's installed )

Also; izzy - cp /dev/null > $Logfile is not a valid command. The redirect won't work. Sure you don't mean "cat /dev/null > $Logfile"?

I'd agree that stopping whatever service is using the file, then catting/deleting/whatever, the starting again is the best way to go. You could always write a script to do this out-of-hours via cron on a production server.

Cheers
ZB
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:56 AM.


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

Content Relevant URLs by vBSEO 3.2.0