LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-29-2011, 07:06 AM   #1
landog
LQ Newbie
 
Registered: Jan 2006
Posts: 23

Rep: Reputation: 0
'df' command reports inaccurate until restart


We have two EMC Celerra NAS where I work. They have 'nix based front ends.

There is an issue with one directory that appears to fill up. For example, a 'df' command will show that it is at 87% full - at which point some logging functions stop working. EMC advises to restart the 'nix front end to clear up the issue.

After a restart, a 'df' command will show that its usage has dropped from 87% to 44%. A careful look at the directories (and the files) in and under this directory show no change in the number or sizes of the files.

EMC claims this is a long standing UNIX / Linux bug.

Is that so??

thanks...
 
Old 09-29-2011, 07:53 AM   #2
Hobbletoe
Member
 
Registered: Sep 2004
Location: Dayton, Oh
Distribution: Linux Mint 17
Posts: 150

Rep: Reputation: 18
Under Solaris, I've seen that when a disk fills all the way up, df will continue to report 100% usage sometimes. Even after removing most of the files from the drive. I don't think I have ever seen it report numbers differently other than that. But given that, I wouldn't be surprised to learn that there were other times it might not report properly.
 
Old 10-02-2011, 01:35 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by landog View Post
EMC claims this is a long standing UNIX / Linux bug.
Then ask them for a precise bug description and report. If such a serious bug exists and is affecting both Unixes and Linux, it must have been reported somewhere.
 
Old 10-02-2011, 01:41 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by Hobbletoe View Post
Under Solaris, I've seen that when a disk fills all the way up, df will continue to report 100% usage sometimes. Even after removing most of the files from the drive.
That's not a bug but the expected and correct behavior when growing files are still open. On Unix/Linux, removing a file from disk just make that file unreachable with its name, i.e. unlink its directory entry from its content (data). The data is freed and its space recovered only after the last process using the file closes it or exits.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
flash_eraseall command for mtd device reports error shashi_b Linux - Newbie 2 12-29-2009 06:27 AM
Logwatch reports with no crontab command davidmc57 Linux - Security 5 09-11-2006 04:08 PM
whats the command that reports program success? slinky2004 Linux - Newbie 2 07-10-2006 01:07 PM
quick restart-X command?? snwright Linux - Software 11 05-12-2004 04:14 PM
Restart from Command Line Tezdread Linux - General 3 03-08-2003 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:55 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
Open Source Consulting | Domain Registration