
01-25-2004, 12:41 PM
|
|
Web Hosting Guru
|
|
Join Date: Nov 2001
Posts: 294
|
|
Disk Partition Filling Up!
Is this anything to worry about :
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.9G 2.9G 862M 78% /usr
Is there anything I can manually delete in there, like temp files?
thanks 
|

01-25-2004, 12:46 PM
|
|
Community Guide
|
|
Join Date: Jun 2003
Location: Janesville, Wi
Posts: 1,509
|
|
What I do when I can't get a larger hard drive, and partitions are filling up, is this:
I find any extraneous files that can be moved in groups. Mainly, logs, databases, etc. I move them to a large hard drive and setup a symbolic link. Let me use the example: /var is filling up and /usr has more space.
mv /var/lib/mysql /usr/mysql
mv /var/log /usr/log
ln -s /usr/mysql /var/lib/mysql
ln -s /usr/log /var/log
That would make it so that /var/log -> /usr/log and same for mySQL. That tends to save me in times like that. So see if there is anything on /usr that you can move to a larger hard drive.
|

01-25-2004, 12:46 PM
|
|
Junior Guru
|
|
Join Date: Dec 2002
Location: Canada
Posts: 197
|
|
You might wanna tell us about your OS and the service , you are running on the server.
|

01-25-2004, 12:49 PM
|
|
Web Hosting Guru
|
|
Join Date: Nov 2001
Posts: 294
|
|
|

01-25-2004, 12:50 PM
|
|
I like ice cream
|
|
Join Date: Mar 2003
Location: California USA
Posts: 11,785
|
|
du -h -s /usr/*
and paste the result here
|

01-25-2004, 12:58 PM
|
|
Web Hosting Guru
|
|
Join Date: Nov 2001
Posts: 294
|
|
root@zeus [~]# du -h -s /usr/*
12k /usr/aquota.user
107M /usr/bin
4.0k /usr/dict
104k /usr/doc
8.0k /usr/etc
8.0k /usr/games
8.8M /usr/i386-glibc21-linux
38M /usr/include
80M /usr/java
3.3M /usr/kerberos
396M /usr/lib
744k /usr/libexec
1.6G /usr/local
52k /usr/lost+found
14M /usr/man
28k /usr/quota.user
27M /usr/sbin
596M /usr/share
36M /usr/src
0 /usr/tmp
0 /usr/usr
29M /usr/X11R6
|

01-25-2004, 01:00 PM
|
|
Community Guide
|
|
Join Date: Jun 2003
Location: Janesville, Wi
Posts: 1,509
|
|
Do you have any larger hard partitions? If so, you could move a few things to it and do the linking process.
|

01-25-2004, 01:01 PM
|
|
Web Hosting Master
|
|
Join Date: Jan 2002
Location: Home, chair
Posts: 723
|
|
I bet you have very large log files in /usr/local/apache/domlogs directory.
Check if it's true, and to prevent this, in WHM go to Tweak Settings and check the box 'Delete each domain's access logs after stats run', then Save. Next day you should see that there's more space left.
|

01-25-2004, 01:02 PM
|
|
I like ice cream
|
|
Join Date: Mar 2003
Location: California USA
Posts: 11,785
|
|
You could possibly link /usr/local to /home. also check apache logs
|

01-25-2004, 01:09 PM
|
|
Community Guide
|
|
Join Date: Jun 2003
Location: Janesville, Wi
Posts: 1,509
|
|
Linuxguy, I wouldn't dare move /usr/local. Reason being is that you could screw up and screw the whole system.
[edit in: a lot of system binaries are in /usr/local, moving /usr/local makes them inaccessable and could kill your connection and/or take the server down because they are unavailable. That would severely screw your system.]
If you have a larger partition, you can do this:
[edit in: I had meant partition and not hard drive]
mv /usr/local/apache /partition/apache
ln -s /partition/apache /usr/local/apache
Or you can gzip all of the log files and start from scratch.
cd /usr/local/apache/logs
tar cfv /partition/apache_logs.tar ./*
gzip /partition/apache_logs.tar
--or--
bzip2 --compress /partition/apache_logs.tar
Just do not move core system directories, that would reak havok on your system.
Last edited by Jakiao; 01-25-2004 at 01:17 PM.
|

01-25-2004, 01:13 PM
|
|
Web Hosting Guru
|
|
Join Date: Nov 2001
Posts: 294
|
|
Quote:
Originally posted by phpdeveloper
I bet you have very large log files in /usr/local/apache/domlogs directory.
Check if it's true, and to prevent this, in WHM go to Tweak Settings and check the box 'Delete each domain's access logs after stats run', then Save. Next day you should see that there's more space left.
|
Did this, and I just noticed a huge drop on my server load!
thanks
|

01-26-2004, 12:24 PM
|
|
Web Hosting Guru
|
|
Join Date: Nov 2001
Posts: 294
|
|
Quote:
Originally posted by phpdeveloper
I bet you have very large log files in /usr/local/apache/domlogs directory.
Check if it's true, and to prevent this, in WHM go to Tweak Settings and check the box 'Delete each domain's access logs after stats run', then Save. Next day you should see that there's more space left.
|
you're were correct!
here are the drive stats today:
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.9G 1.9G 1.8G 51% /usr
and this was yesterday before your recommended change:
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.9G 2.9G 862M 78% /usr
|

01-26-2004, 12:27 PM
|
|
Web Hosting Master
|
|
Join Date: Jan 2002
Location: Home, chair
Posts: 723
|
|
Glad it worked 
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|