Go Back   vb.org Archive > Community Discussions > Forum and Server Management
  #1  
Old 07-21-2009, 05:28 PM
PhilipAlv PhilipAlv is offline
 
Join Date: Nov 2007
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default /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
Reply With Quote
  #2  
Old 07-21-2009, 07:33 PM
toonysnn toonysnn is offline
 
Join Date: Sep 2006
Location: Texas
Posts: 511
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/usr contains things like Apache, MySQL, etc. You should probably increase the partition size, or get a bigger hard drive.
Reply With Quote
  #3  
Old 07-21-2009, 07:36 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 07-21-2009, 09:07 PM
PhilipAlv PhilipAlv is offline
 
Join Date: Nov 2007
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 07-21-2009, 10:07 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 07-21-2009, 10:43 PM
PhilipAlv PhilipAlv is offline
 
Join Date: Nov 2007
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
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 ?
Reply With Quote
  #7  
Old 07-22-2009, 05:55 AM
toonysnn toonysnn is offline
 
Join Date: Sep 2006
Location: Texas
Posts: 511
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From what it looks like, you should just ask for a larger hard drive.
Reply With Quote
  #8  
Old 07-22-2009, 06:53 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PhilipAlv View Post
/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%.
Reply With Quote
  #9  
Old 07-22-2009, 07:11 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PhilipAlv View Post
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.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:50 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.04959 seconds
  • Memory Usage 2,234KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete