PDA

View Full Version : /dev/hda3 (/usr) free space issue


PhilipAlv
07-21-2009, 05:28 PM
This is the output i get when i type in df -h

/dev/hda5 7.8G 3.5G 4.0G 47% /
/dev/hda8 45G 4.2G 38G 10% /home
/dev/hda6 996M 34M 911M 4% /tmp
/dev/hda3 7.8G 4.4G 3.0G 60% /usr
/dev/hda2 9.7G 1.2G 8.1G 13% /var
/dev/hda1 122M 17M 100M 14% /boot
none 1014M 0 1014M 0% /dev/shm

du -ksh /usr/local/apache/logs/ output is

449M /usr/local/apache/logs/

it used to be 2.5 G two weeks ago.the size came down after log rotation was enabled

du -ksh /usr/local/cpanel/logs/ output is

7.4M /usr/local/cpanel/logs/

du /usr -k | sort -rn | head -10 output is

4487604 /usr
2682032 /usr/local
1359988 /usr/local/apache
1101168 /usr/local/cpanel
868200 /usr/local/apache/domlogs
762460 /usr/share
569148 /usr/lib
459580 /usr/local/apache/logs
294264 /usr/local/cpanel/src
293160 /usr/local/cpanel/src/3rdparty

here is my question.what can i do to increase the free space on /usr.log rotation is enabled in whm.

thanks

toonysnn
07-21-2009, 07:33 PM
/usr contains things like Apache, MySQL, etc. You should probably increase the partition size, or get a bigger hard drive.

snakes1100
07-21-2009, 07:36 PM
I assume fdisk states that you have no free space?

If you have no free space to do a little partitioning changes, then there isnt much you can do due to the way they partitioned that drive but to either change the log location or edit the log rotation file and change the options, ie how long to keep and how many to keep.

webmin --> system --> Log File Rotation --> edit hte apache log cron and change the preferences.
1. rotation schedule = daily.
2. number of old logs to keep.
3. make sure its compressing them.

or edit apaches log location and change it to /home.

PhilipAlv
07-21-2009, 09:07 PM
i got a drive space warning through email a few weeks back (85 % full).Then my /usr/local/apache/logs/ was 2.5 GB in size.log rotation was enabled and the problem went away.

now is see that that folder is slowly getting bigger.i think log rotation compresses the log files.now that that option is exhausted,i need to find another way to fix it before the warning emails come back.

webmin --> system --> Log File Rotation --> edit hte apache log cron and change the preferences.
1. rotation schedule = daily.
2. number of old logs to keep.
3. make sure its compressing them.

anthony,i have whm,can you please tell me where to find that option ?

whm >service configuration >Apache configuration > access_log,error_log,suexec_log and suexec_log.offset is in rotation currently.

snakes1100
07-21-2009, 10:07 PM
lmao, its been a long day, i meant to post in there as well to install webmin, seeing as your using whm, i didnt think you knew ssh or linux cmds.

webmin will not interfere with your current running system, just stop it after you use it.

Without knowing what all is setup on your system, i didnt feel like walking you thru ssh either, as whm has no functionality like that.

PhilipAlv
07-21-2009, 10:43 PM
lmao, its been a long day, i meant to post in there as well to install webmin, seeing as your using whm, i didnt think you knew ssh or linux cmds.

webmin will not interfere with your current running system, just stop it after you use it.

Without knowing what all is setup on your system, i didnt feel like walking you thru ssh either, as whm has no functionality like that.

i m certainly no expert when it comes to linux ssh commands,no where near the big guys in this forum....i m learning more everyday.you have done quite a bit of work for me btw,last time was less than a month back

so,installing webmin is my only option at the moment...or i got to get a bigger hard disk or get my host,planet to repartition my hard drives...right ?

toonysnn
07-22-2009, 05:55 AM
From what it looks like, you should just ask for a larger hard drive.

Dismounted
07-22-2009, 06:53 AM
/dev/hda3 7.8G 4.4G 3.0G 60% /usr
TBH, it doesn't look like there's any huge problem. I would only get worried if it goes over 80-90%.

snakes1100
07-22-2009, 07:11 AM
i m certainly no expert when it comes to linux ssh commands,no where near the big guys in this forum....i m learning more everyday.you have done quite a bit of work for me btw,last time was less than a month back

so,installing webmin is my only option at the moment...or i got to get a bigger hard disk or get my host,planet to repartition my hard drives...right ?

No its not your only option, you just have to change the logrotate configuration for those files.