Quantcast
Channel: CageFS – CloudLinux KnowledgeBase
Viewing all articles
Browse latest Browse all 13

How do I move /usr/share/cagefs-skeleton to other place because of low disk space

$
0
0

NOTE:
If you are placing skeleton in /home directory on cPanel servers, you must configure the following option in cPanel WHM:
WHM -> Server Configuration -> Basic cPanel/WHM Setup -> Basic Config -> Additional home directories
Change the value to blank  (not default “home”).
Without changing this option, cPanel will create new accounts in incorrect places.

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

Verify that the following command gives empty output:

cat /proc/mounts | grep cagefs-skeleton

Verify that the directory cagefs-skeleton.bak does not exist (if it does exist – change name “cagefs-skeleton.bak” to something else):

ls -d /usr/share/cagefs-skeleton.bak

mv /usr/share/cagefs-skeleton /usr/share/cagefs-skeleton.bak

mkdir -m 0755 /home/cagefs-skeleton
ln -s /home/cagefs-skeleton /usr/share/cagefs-skeleton
cagefsctl --init
cagefsctl --enable-cagefs
cagefsctl --remount-all

Verify that the following command gives empty output:

cat /proc/mounts | grep cagefs-skeleton.bak

Now you can safely remove cagefs-skeleton.bak directory:

rm -rf /usr/share/cagefs-skeleton.bak

 


Viewing all articles
Browse latest Browse all 13

Trending Articles