LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-24-2011, 07:12 AM   #1
tonj
Member
 
Registered: Sep 2008
Posts: 546

Rep: Reputation: 37
excessive disk usage by virtual site


linux web server centos 4.9 (strongbolt2) with bluequartz web gui

I have a website on the server that is showig excessive disk space usage. Every day I get a warning from the server that the site has exceeded it's quota of disc space. The space allocated for the site is 50Mb. The actual space used so far is 2Mb, but the web gui says the site is using 526Mb. In the console I've been through all the folders for the site and users several times and there are no big files anywhere. I've tried deleting the whole site and all users and then re-creating the site but the error comes back. In the bluequartz web gui under sites system disk usage the service named is "Usage Logs 526Mb". This is a command-line-only machine so how can I find where this huge file is?

Last edited by tonj; 12-24-2011 at 07:14 AM.
 
Old 12-25-2011, 03:56 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well what's the quota data based on? Presumably it is the dedicated user account that owns those files? So there might be files elsewhere owned by the same user. If you totally delete that directory then it must be elsewhere, outside of that, the only other thing sounds like a few nasty dotfiles, so what about "ls -la" in that directory?
 
Old 12-25-2011, 05:04 PM   #3
tonj
Member
 
Registered: Sep 2008
Posts: 546

Original Poster
Rep: Reputation: 37
the quota is based on the disc space allocated to the virtual site when it was first set up, which was 50Mb. The virtual site in question has one user but there aren't any reported problems with the user side of things, it's the site itself that is the problem. I'm baffled as to why the Uasge Logs are reporting 526Mb used. I also did a search for all files over 500Mb in size and every file found was legit and not connected with the site. what's a dotfile?
 
Old 12-25-2011, 06:26 PM   #4
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
"Usage Logs" may well mean 2 or more files totalling 526 MB.

Find where web logs are stored and have a look.

And do a search for all files owned by the username in question.
 
Old 12-26-2011, 05:39 AM   #5
tonj
Member
 
Registered: Sep 2008
Posts: 546

Original Poster
Rep: Reputation: 37
most logs are in /var/log but I could find nothing in there about site disk usage.
I deleted the site again, deleted any and all remaining folders for the site and then restarted httpd. I then recreated the site without a user, so it was just a new empty site and the usage logs still showed 526Mb used, so it's not a rogue big file, it's a remnant/leftover entry in another file somewhere. problem is I don't know what file or where it is.
what would be good is if there was a way I could wipe ALL usage stats and make the server start over again. I have no use for the existing stats anyway

Last edited by tonj; 12-26-2011 at 05:44 AM.
 
Old 12-27-2011, 12:00 AM   #6
romagnolo
Member
 
Registered: Jul 2009
Location: Montaletto
Distribution: Debian GNU/Linux
Posts: 107

Rep: Reputation: 5
You could "apt purge" or equivalent to clear logs and stats.
What daemon are you using?
 
Old 12-27-2011, 03:09 AM   #7
tonj
Member
 
Registered: Sep 2008
Posts: 546

Original Poster
Rep: Reputation: 37
I don't know what daemon controls the usage logs but I'm using centos 4.9 as the base OS. Apt purge sounds like ubuntu, is that right? if there is an equivalent command for centos I'd love to know what it is. I did a search on google for this but couldn't find anything.
 
  


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
Excessive swap usage from setroubleshootd grob115 Linux - Server 3 07-30-2011 12:14 PM
Excessive Memory Usage ! kubed_lovee Linux - Server 4 10-01-2010 08:15 AM
Excessive RAM/swap usage Jinouchi Linux - Software 10 03-09-2009 09:59 AM
Excessive CPU Usage Smarajit Linux - Newbie 2 04-11-2007 11:02 AM
After upgrade, excessive RAM usage kuratkull Debian 2 11-05-2006 04:26 AM

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

All times are GMT -5. The time now is 01:20 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