Web Hosting Talk







View Full Version : disk space being used....


dico
12-29-2001, 05:45 PM
Hi there,

I just got a message that my main Raq4 account disk space was close to full. This account just has a "coming soon" page and a few email accounts (none close to their limit). What is would be causing the disk space to increase and how can I figure this out. I just increased the disk quota for that account, but that is a very poor fix.

Any help is appreciated,

Thanks

-dr

drewnick
12-29-2001, 06:00 PM
Hello!

Check your logs. The logfiles are considered part of the quota. Additionally, you can use the "du" command to assess disk usage.

du -sk *
...will output kilobytes used in the tree below the directory where it is executed. SO...

cd /home/sites/www.site-with-warning/
du -sk *

'Wa La.'

Drew

technoart
12-30-2001, 02:19 AM
Try: du -ch
or: du -ch *

You get a total (space used), plus the output is in human-readable format (K's, Meg's, Gig's, etc.)...

drewnick
12-30-2001, 03:46 AM
What's wrong with du -sk * ?? :-)

Drew

technoart
12-30-2001, 04:25 AM
Originally posted by drewnick
What's wrong with du -sk * ?? :-)

Drew

Nothing "wrong" with it... :) -ch gives a different sort of "perspective" on the dir usage. For example:

du -ch

24k ./web/ContactUs
96k ./web/images/_vti_cnf
496k ./web/images
20k ./web/logs
20k ./web/phorum/admin/forums
116k ./web/phorum/admin/pages
192k ./web/phorum/admin
56k ./web/phorum/db
72k ./web/phorum/docs
108k ./web/phorum/images
92k ./web/phorum/include
20k ./web/phorum/lang
16k ./web/phorum/plugin/replace
24k ./web/phorum/plugin
48k ./web/phorum/scripts
724k ./web/phorum
836k ./web/stats
40k ./web/weather
2.4M ./web
2.4M .
2.4M total

Vs., the use of du -sk *

2388 web

dico
12-30-2001, 12:31 PM
Thanks for your help...

I did a du -ch * and got:

[root mysite.com]# du -ch *
1.0k certs
5.0M logs
4.0k users/admin/mail
82k users/admin/ftpbackup-2.1
178k users/admin
6.0k users/dreyers/web
7.0k users/dreyers
6.0k users/cows1/web
7.0k users/cows1
6.0k users/cows2/web
7.0k users/cows2
6.0k users/cows3/web
7.0k users/cows3
6.0k users/cows4/web
7.0k users/cows4
6.0k users/cows5/web
7.0k users/cows5
6.0k users/mmader/web
7.0k users/mmader
6.0k users/mmeron/web
7.0k users/mmeron
552k users/stats/web
553k users/stats
6.0k users/cows6/web
7.0k users/cows6
6.0k users/cows7/web
7.0k users/cows7
6.0k users/allanweeks2/web
7.0k users/allanweeks2
6.0k users/allanweeks3/web
7.0k users/allanweeks3
6.0k users/allanweeks1/web
7.0k users/allanweeks1
6.0k users/oexpeditions/web
7.0k users/oexpeditions
830k users
20k web/images
6.0k web/dbase_admin/images
285k web/dbase_admin
307k web
6.1M total

This totals 6.1M (however when I add it up it is way more then 6.1M ??) and my Cobalt GUI says the site is 16.2meg used, 3.8 remaining...

Any thoughts?

Thanks,

-dr

CmptrWz
12-30-2001, 06:10 PM
Your math isn't mistaken for adding it up....

If you look, there are folders listed and THEN subdirs in those folders. So you are getting double counts.

dico
12-30-2001, 06:13 PM
Perfect... makes sense....

so now the only thing I am wondering about is why my Cobalt GUI says I've used over 16 meg and my du -ch * gives me 6.1 meg. Is there 10 meg somewhere that I don't know about and that du -ch doesn't show in it's listing?

Thanks,

-dr

CmptrWz
12-30-2001, 06:50 PM
Maybe there is some mail that hasn't made it to the site folder yet? Or perhaps it is because you appear to be checking the main site, and other things get counted in with it?