LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-19-2007, 04:39 AM   #1
Narayandutt
LQ Newbie
 
Registered: May 2006
Posts: 11

Rep: Reputation: 0
Smile `df -k` is not updating the right space status without reboot


Hello,
I have a linux systems with RHEL-4 installed with seven partitions, SATA Harddisk size is 160GB , My /usr becomes 95%, When I checked using `df -k` , SoI deleted Some logs from there and freed Space upto 35 GB, Now when I give `df -k`. Its Still showing the old space status. How do I get the right status from `df -k` without rebooting thet system.
I tried by giving sync, and even remounted that by giving foll command
mount -o remount /usr
Still , Its showing the old status, but When I check using
`du -sh` , it shows the right status, Why `df -k` is not giving the right status
 
Old 11-19-2007, 05:55 AM   #2
subhasis_ray
Member
 
Registered: Jul 2001
Location: india
Distribution: RedHat 7.1,7.2,7.3, 8.0,9.0,Fedora,EL2.1,EL3.0
Posts: 103

Rep: Reputation: 16
It is possible that there are some unlinked files held by running processes (which would explain why the space reported becomes fine after a reboot). Run the below:

ls -ld /proc/*/fd/* 2>&1 | fgrep '(deleted)'

It might show some PID's which are holding to large files that you have deleted. Restart those processes and df should report the correct space.

-Subhasis
 
1 members found this post helpful.
Old 11-20-2007, 12:40 AM   #3
Narayandutt
LQ Newbie
 
Registered: May 2006
Posts: 11

Original Poster
Rep: Reputation: 0
Smile Is their any command to do so

But Is their any command,to update so. This happens also when we delete some files which are not linked to any running processes e.g Old backups or some files which are not being used by any other processes like some avi video files or audio files.
 
  


Reply



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
Can't reboot RHEL WS4 - swap space issue? genemob Red Hat 3 01-31-2007 10:40 AM
Acidrip - Encoding Status not updating david.skinner Linux - Software 4 11-09-2006 08:56 PM
Installing RedHat 8.0 onto Dell PowerEdge SC1425 - hdc: status error: status = 0x58 fishsponge Linux - General 0 07-11-2006 09:02 AM
Status variables not updating? gttommy Linux - Software 1 01-08-2006 05:18 PM
reboot so user can access fs space limited by group recently added to? bdp Linux - General 4 09-27-2003 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:36 PM.

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
Open Source Consulting | Domain Registration