Koozali.org: home of the SME Server

Hard Drive space Issue

ephraims

Hard Drive space Issue
« on: February 21, 2007, 01:53:02 AM »
I have a customer that has a 175gb hard drive. They are down to there last two gigs but i can not determin where the space has gone. If i use durep and see what is  being used by everyone there is only 100gb in the list .. Where is the other 73gb gone?..

I am doing checks on the other directories /var/logs /var/html and others and none of them have any noticable space usage up to about 100gb? any ideas as to where the space is being used

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Hard Drive space Issue
« Reply #1 on: February 24, 2007, 01:40:08 AM »
ephraims

http://www.wallpaperama.com/forums/linux-command-to-find-how-much-disk-space-is-being-used-show-display-t713.html

du -hc --max-depth=1

change location and maxdepth to suit requirements

eg
cd /home/e-smith/files
du -hc --max-depth=3

Does
df -h
show your total disk space as being available ?
...

Offline imcintyre

  • *
  • 609
  • +0/-0
Hard Drive space Issue
« Reply #2 on: March 06, 2007, 04:30:25 PM »
Ray;

Thx for suggestion, I had a similar problem and found 78 Gb of old backups and the like.

If I keep this up, I might actually know something... (nfw)

Ian

Offline haymann

  • *
  • 212
  • +0/-0
Re: Hard Drive space Issue
« Reply #3 on: March 08, 2007, 03:59:33 PM »
Quote from: "RayMitchell"
ephraims

http://www.wallpaperama.com/forums/linux-command-to-find-how-much-disk-space-is-being-used-show-display-t713.html

du -hc --max-depth=1

change location and maxdepth to suit requirements

eg
cd /home/e-smith/files
du -hc --max-depth=3

Does
df -h
show your total disk space as being available ?
Thanks Ray, that was very beneficial to me as well.

I was looking at the durep contrib and Curly pointed out to me yesterday how to manually update the Disk Usage information shown on the panel. I took a look in /usr/sbin/durep.daily and I see entries for the users and ibays and I wondered if I could get it to show the usage for the entire drive...

***Preface - I have absolutely no idea what I am doing. It is entirely possible that what I did will cause me great pain later...***
I added the following line under the second line (the one that ends in /ibays)
Code: [Select]
/usr/local/bin/durep -q -x -sf /var/www/html/root.ds /
I then went to /var/www/html and created an empty file named root.ds.

When I forced durep to update (/usr/sbin/durep.daily) and went back to the panel I had a third entry that shows the usage of the entire file system (as near as I can tell...)

This is handy to me, but maybe someone that knows what they are doing will tell me if I made a serious mistake?
Ryan