vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   /dev/hda3 (/usr) free space issue (https://vborg.vbsupport.ru/showthread.php?t=219118)

PhilipAlv 07-21-2009 05:28 PM

/dev/hda3 (/usr) free space issue
 
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.

Quote:

Originally Posted by snakes1100
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

Quote:

Originally Posted by snakes1100 (Post 1853189)
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

Quote:

Originally Posted by PhilipAlv (Post 1853041)
/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

Quote:

Originally Posted by PhilipAlv (Post 1853201)
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.


All times are GMT. The time now is 04:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01159 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete