Results 1 to 9 of 9
Thread: /dev/sda6 (/usr) is 89% full
-
06-30-2009, 12:43 PM #1Junior Guru Wannabe
- Join Date
- Mar 2005
- Location
- Georgia
- Posts
- 78
/dev/sda6 (/usr) is 89% full
I have two dedicated servers..
On one of my servers, its 100% full and my 2nd one it's /dev/sda6 (/usr) is 89%.
Can someone tell me what partion on a linux based server this is usually used for, and the steps by ssh I can do to clear it out?
-
06-30-2009, 01:38 PM #2Web Hosting Evangelist
- Join Date
- Aug 2001
- Location
- Brea, CA
- Posts
- 541
This is what the main Linux partitions are used for:
http://en.wikipedia.org/wiki/Filesys...archy_Standard
You shouldn't clear out /usr. If you have a lot of free space on your root partition you could symlink/mount /usr to a new location.
Run a 'df -h' to see the size of your filesystems.
You could start tracing the space you're using under /usr with the following:
Code:cd /usr du -h --max-depth=1
You could also force the size into megabytes and check for the top 10 biggest directories:
Code:du -hm --max-depth=5 | sort -r -n | head -n 10
Jeff Standen, Software Architect, Cerb
Cerb - web-based teamwork and workflow automation - https://cerb.ai/
-
06-30-2009, 01:41 PM #3Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
/usr is may be used for user related log data. For example the log files of the webserver is stored in the /usr partition. If there are lot of domains on a server, the /usr partition will be filled up soon. Check the /usr/src for any size taking source files. You can see which directory is taking more space by running the following command from inside the /usr partition.
du -sch *David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android
-
06-30-2009, 03:21 PM #4Web Hosting Master
- Join Date
- Jan 2002
- Posts
- 1,400
If this is a cpanel server, check /usr/local/apache/logs and /usr/local/apache/domlogs folder.
-
06-30-2009, 03:41 PM #5PING PONG
- Join Date
- May 2009
- Location
- SLASH ROOT
- Posts
- 867
Check what is consuming '/usr' space.
cd /usr && du -sch * ; now 'cd' to the next level directory and so on.
also check the if there are any apache logs (access/error/domlogs) that exceeds 2GB file limit. If this limit is exceeded, Apache might crash.
find /usr -size +2000000k█ WebHostRepo.com
█ Linux | Windows | VPS | Cloud
█ Outsourced Technical Support since 2009
█ sales@webhostrepo.com
-
06-30-2009, 11:46 PM #6Newbie
- Join Date
- Mar 2009
- Posts
- 29
Do this:
cd /usr/local/apache/logs
tail -1000 error_log > error_log.bk
> error_log
tail -1000 error_log.bk > error_log
rm -rf error_log.bk
tail -1000 audit_log > audit_log.bk
> audit_log
tail -1000 audit_log.bk > audit_log
rm -rf audit_log.bk
tail -1000 suexec_log > suexec_log.bk
> suexec_log
tail -1000 suexec_log.bk > suexec_log
rm -rf suexec_log.bk
tail -1000 access_log > access_log.bk
> access_log
tail -1000 access_log.bk > access_log
rm -rf access_log.bk
Repeat this for /usr/local/cpanel/logs
Also crop the domlogs situated at /usr/local/apache/domlogs folder
-
07-01-2009, 01:36 AM #7Junior Guru Wannabe
- Join Date
- Mar 2009
- Location
- Near You..
- Posts
- 81
First find out which directory is using more space in /usr. If you have more free space in any of the other partition you could move that directory to that drive with more space and create a symlink to new location.
-
07-01-2009, 08:13 AM #8Support Facility
- Join Date
- Jun 2009
- Posts
- 2,335
You should need to check the size of the error_logs and access_logs on the server
and then try to empty them,
#cd /usr/local/apache/logs
#ls -sh error_logs
#ls -sh access_logs
check here if size in gb for error_logs and access_logs then try to empty them,
#echo > error_logs
#echo > access_logs
-
07-01-2009, 02:59 PM #9PING PONG
- Join Date
- May 2009
- Location
- SLASH ROOT
- Posts
- 867
If you are running any web statistics software like WebAlizer/Awstats/Urchin, make sure to generate the stats before clearing the access logs.
█ WebHostRepo.com
█ Linux | Windows | VPS | Cloud
█ Outsourced Technical Support since 2009
█ sales@webhostrepo.com
Similar Threads
-
Hiring (Full Time / Full Salary) Senior Linux/cPanel Administrator
By phpcoder in forum Employment / Job OffersReplies: 0Last Post: 06-11-2009, 03:06 PM -
[OFFERED] Full-Range Full-Time Software Development Facilities
By Al Polonski in forum Employment / Job OffersReplies: 0Last Post: 02-27-2007, 10:07 AM -
LOOK! Full Time Windows Support Technicians - Salary plus Full Benefits (Orlando, FL)
By Server Intellect in forum Employment / Job OffersReplies: 0Last Post: 02-15-2007, 02:35 PM -
Very Nice Professional Design -- Unique -- Full CSS/HTML/PSD Included -- Full Rights
By DiverseFlow in forum Design OffersReplies: 14Last Post: 01-09-2005, 07:02 AM -
GNAX full time salaried tech positions (2) with full benefits
By sailor in forum Employment / Job OffersReplies: 1Last Post: 08-21-2004, 03:58 PM