Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 2nd, 2008, 02:58 PM
yeller yeller is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 43 yeller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 24 m 12 sec
Reputation Power: 1
What's eating my disk space

Hello,

I've got a server I inherited that is continually losing disk space. I've tried looking for large files, but am unable to find any offenders - please point me to any resources that may help as well.


Thanks

Reply With Quote
  #2  
Old May 2nd, 2008, 03:02 PM
fishtoprecords's Avatar
fishtoprecords fishtoprecords is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2007
Location: outside Washington DC
Posts: 610 fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 15 h 24 m 48 sec
Reputation Power: 177
use the 'du' command
Comments on this post
codergeek42 agrees!

Reply With Quote
  #3  
Old May 2nd, 2008, 03:46 PM
yeller yeller is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 43 yeller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 24 m 12 sec
Reputation Power: 1
Thanks for your reply, I'm gonna look into it.

Also, I was able to find a large file before I posted that I deleted but it didn't release the file space it occupied - a reboot reallocated the disk space.

Reply With Quote
  #4  
Old May 2nd, 2008, 07:00 PM
MPI MPI is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 25 MPI User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 16 m 26 sec
Reputation Power: 0
Quote:
Originally Posted by yeller
Thanks for your reply, I'm gonna look into it.

Also, I was able to find a large file before I posted that I deleted but it didn't release the file space it occupied - a reboot reallocated the disk space.


that's weird, what OS are you running?

how did you delete them? what command(s) did you use?

Reply With Quote
  #5  
Old May 5th, 2008, 08:21 AM
yeller yeller is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 43 yeller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 24 m 12 sec
Reputation Power: 1
I'm running CentOS, and used the rm filename command.

Reply With Quote
  #6  
Old May 5th, 2008, 01:03 PM
Ehlanna's Avatar
Ehlanna Ehlanna is offline
Not a clue what to put ...
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2006
Location: in front of this keyboard
Posts: 814 Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Weeks 2 Days 3 h 26 m 2 sec
Reputation Power: 243
The file may have been open (was it a log file?) so space would not have been released by an rm - a cat /dev/null > filename (or just > filename) will make the file zero size, even it if it being actively used.
__________________
According to Sod's Law, buttered toast lands butter side down, when dropped.
Per nature, cats always land on their feet.
So, what happens when you strap buttered toast to the back of a cat and throw it out a window?
.

Reply With Quote
  #7  
Old May 5th, 2008, 02:09 PM
yeller yeller is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 43 yeller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 24 m 12 sec
Reputation Power: 1
kewl

Reply With Quote
  #8  
Old Yesterday, 08:40 AM
Gurb's Avatar
Gurb Gurb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 65 Gurb User rank is Sergeant (500 - 2000 Reputation Level)Gurb User rank is Sergeant (500 - 2000 Reputation Level)Gurb User rank is Sergeant (500 - 2000 Reputation Level)Gurb User rank is Sergeant (500 - 2000 Reputation Level)Gurb User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 15 h 15 m 18 sec
Reputation Power: 24
Use this:
du -h --max-depth=1 on /
It will tell you exactly which directory is the culprit..Then you use it down the tree, and you find out where is the big file(s) located...
du -h --max-depth=1 /var/log/apache2 (for example)..
Hope it helps.
__________________
Google is my best friend

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > What's eating my disk space


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway