LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2009, 04:09 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
df not refreshing?


I have RHEL running on one of HP Proliant. Recently my /var went 100%.
I tried looking at some unnecessary files and deleted them. I had allocated 1 GB for /var. I deleted around 400 MB but I dont see any effect. the /var still showing 100%.
I know that after reboot it will show the correct output. But I dont want to reboot the server since lots of user are connected for other purposes.
Any Idea?
 
Old 04-21-2009, 04:30 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Ummm ... don't delete files that are in use?

lsof | grep deleted
to locate them, see which process holds them,
and try to restart that process.

Last edited by Tinkster; 04-21-2009 at 04:32 AM.
 
Old 04-21-2009, 04:49 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I just deleted the logs and few unwanted file I dont need either.
Just for info, Is it because of process handling its showing as 100%.
What gonna I restart- Process ? generally we start the service.
Help
 
Old 04-21-2009, 04:58 AM   #4
irshadvengad
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Rep: Reputation: 0
dear pls use this cammand
mount -o remount /var
 
Old 04-21-2009, 05:14 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
If you deleted old archived logs (ending in .tar.gz or .tar.bz2) then you are OK. Generally, Linux & Unix have inode based filesystems. An opened file won't be deleted until it is closed, even if the directory entry is removed.
The process doesn't need the directory entry anymore. Restarting the process that has a file open will close the file & the kernel will finally delete the inode if there aren't other links to it.
 
Old 04-21-2009, 05:27 AM   #6
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Thanks for responses.
I gave it a try by restarting syslogd since I had deleted mst of the logs created.
And that did the trick.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
refreshing memory. dr_zayus69 Linux - Hardware 1 01-12-2005 02:34 PM
Samba Refreshing Equis Linux - General 1 02-12-2004 11:19 AM
refreshing modules jdt Linux - General 2 11-19-2003 04:48 AM
renew/refreshing ip??? jcabral3 Linux - Newbie 1 12-09-2002 12:48 PM
refreshing modules nautilus_1987 Slackware 6 11-21-2002 12:10 PM


All times are GMT -5. The time now is 11:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration