/var is full
Use '%' for wildcards and quotes for "exact phrases"
|/var is full||Last Modified: Sep 23, 2013, 5:36 pm|
|If you have a /var partition, and if that partition is too small it may fill up quickly. If you want to move the data which is stored in "/var" to another partition, run the following:|
cd /varThis will give you a full readout of all the directories that are using the most space. The directory using the most disk space will appear at the bottom of the list.
du | sort -n
One common culprit is mysql (/var/lib/mysql on Redhat). To move that path to another partition, run the following:
cd /homeYou can also specify a new socket path in the file:
chown mysql:mysql mysql
perl -pi -e 's/mysqld=ON/mysqld=OFF/' /usr/local/directadmin/data/admin/services.status
/sbin/service mysqld stop
cp -Rp /var/lib/mysql/* .
mv mysql mysql_old
ln -s /home/mysql ./mysql
/sbin/service mysqld start
perl -pi -e 's/mysqld=OFF/mysqld=ON/' /usr/local/directadmin/data/admin/services.status
#once satisfied that mysqld is running and functioning correctly, remove the old data:
rm -rf mysql_old
/usr/local/directadmin/conf/mysql.confif you want, but shouldn't be required if you've correctly created the symbolic link with the above "ln -s" command.
2018 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB
T8N 1P7 Canada. Mon-Fri 9AM-5PM MST