Directadmin auto update filled /usr partition

wtfbrb

Verified User
Joined
Oct 11, 2009
Messages
71
Ok, I had a good amount of time with my server down today until I figured out the problem was the /usr partion was full. This happened because each time directadmin updated something it would leave all the software in the folder. Is there any way to prevent old tar.gz files from the updates from piling up?
 
Run as root:

Code:
cd /usr/local/directadmin/custombuild
./build set clean yes
./build set clean_old_webapps yes
./build set cleanapache yes
./build set clean_old_tarballs yes
 
Thanks! so that cleared up a bunch of space...my /usr partition is 3.5 Gb and is still 92% full...not sure where it all is, here is a listing of what I have in my /usr/local directory...can I remove any of the mysql folders to clear up space?

Code:
drwxrwsr-x  3 root  staff 4.0K 2011-01-05 06:27 etc
drwxrwsr-x  2 root  staff 4.0K 2010-10-19 14:16 games
drwxrwsr-x 10 root  staff 4.0K 2010-12-30 00:17 include
drwxrwsr-x  6 root  staff 4.0K 2010-12-30 00:17 lib
lrwxrwxrwx  1 root  staff    9 2010-10-19 14:16 man -> share/man
lrwxrwxrwx  1 mysql mysql   23 2011-03-08 08:36 mysql -> mysql-5.1.56-linux-i686
drwxr-xr-x 12 root    108 4.0K 2010-10-20 16:53 mysql-5.1.34-linux-i686
drwxr-xr-x 12 mysql mysql 4.0K 2010-10-28 09:49 mysql-5.1.51-linux-i686
drwxr-xr-x 12 mysql mysql 4.0K 2010-12-07 11:43 mysql-5.1.53-linux-i686
drwxr-xr-x 12 mysql mysql 4.0K 2011-01-05 06:31 mysql-5.1.54-linux-i686
drwxr-xr-x 12 mysql mysql 4.0K 2011-02-09 06:30 mysql-5.1.55-linux-i686
drwxr-xr-x 12 mysql mysql 4.0K 2011-03-08 08:36 mysql-5.1.56-linux-i686
-rw-r--r--  1 root  staff 125M 2011-03-08 01:41 mysql-5.1.56-linux-i686.tar.gz
drwxr-sr-x  7 root  staff 4.0K 2010-10-20 17:36 php5
drwxrwsr-x  2 root  staff 4.0K 2010-10-19 14:16 sbin
drwxrwsr-x  8 root  staff 4.0K 2011-02-08 23:29 share
drwxrwsr-x  2 root  staff 4.0K 2010-10-19 14:16 src
drwxr-sr-x  4 root  staff 4.0K 2010-10-20 17:24 suphp
drwxr-xr-x  4 root  uucp  4.0K 2011-03-06 05:02 sysbk
drwxr-sr-x  7 root  staff 4.0K 2010-10-20 22:54 Zend
 
You will have to run the du command against /usr to see where the space is going. 3.5 is way too small for /usr. Im sure you can delete the old mysql stuff.
 
[SOLVED] Thanks!

Thanks, almost everything was in those old mysql folders. Any idea if those will be removed automatically with my new settings from the above suggestion?
 
Back
Top