Moving /var/cagefs directory

A veces se nos llega el /var debido a que Cagefs de cloudlinux toma demasiado espacio.

##To move /var/cagefs to another location:

mkdir /var2

cagefsctl --disable-cagefs
cagefsctl --unmount-all

##Verify that /var/cagefs.bak directory does not exist
##(if it exists - change name "cagefs.bak" to something else)

cp -rp /var/cagefs /var2
mv /var/cagefs /var/cagefs.bak
ln -s /var2/cagefs /var/cagefs
cagefsctl --enable-cagefs
cagefsctl --remount-all

##Verify that the following command gives empty output:

cat /proc/mounts | grep cagefs.bak

##Then you can safely remove /var/cagefs.bak:

rm -rf /var/cagefs.bak


  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Como restaurar Key en CloudLinux

A veces no aparece el cloudLinux en la consola principal.... porque se pierde la llave, ...

No response from subprocess exit 0

Sale:  No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/CloudLinux.cgi)...

Como instalar CloudLinux

It is easy to switch cPanel server from CentOS 5.x or 6.x to CloudLinux. The process takes a...

Desinstalar Cloud Linux

Uninstalling CloudLinux is a fairly involved process, as the CloudLinux repos ship...

Abreviaturas de CloudLunux LVE

Output ID LVE Id or username aCPU Average CPU usage mCPU...