Move CageFS
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Frank Doud
  2. Wednesday, 22 May 2013
  3.  Subscribe via email
Hi,

 What is the correct procedure to move subject line from /usr/share/cagefs-skeleton to  /home2. Should I just uninstall CageFS and re install using the info below? Or Physically move cagefs-skeleton to /home2 and run command ln -s /home/cagefs-skeleton /usr/share/cagefs-skeleton

This is found in Documentation. The server itself has been running for awhile and does have active accounts. 


To install CageFS:
$ yum install cagefs
$ /usr/sbin/cagefsctl --init
That last command will create skeleton directory that might be around 7GB in size. If you don't have enough disk space in /usr/share, use following commands to have cagefs-skeleton being placed in a different location:
$ mkdir /home/cagefs-skeleton
$ ln -s /home/cagefs-skeleton /usr/share/cagefs-skeleton
On cPanel servers, if you will be placing skeleton into /home directory, 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.
Rate this post:
  1. 23.05.2013 08:05:32
  2. # 1
Anton Volkov Accepted Answer
Posts: 47
Joined: 03.04.2012
0
Votes
Undo
Hi!

There are two ways:

1) If directory /usr/share/cagefs-skeleton is not created yet,
you can execute
$ mkdir /home2/cagefs-skeleton
$ ln -s /home2/cagefs-skeleton /usr/share/cagefs-skeleton
before executing \"cagefsctl --init\"
After that, \"cagefsctl --init\" will create cagefs-skeleton in new location (/home2/cagefs-skeleton)

2) Otherwise, If directory /usr/share/cagefs-skeleton already exists,
please execute the following:
$ cagefsctl --disable-cagefs
$ cagefsctl --unmount-all

Then ensure that the following command prints empty output:
$ cat /proc/mounts | grep cagefs
If not, execute \"cagefsctl --unmount-all\" again.

Then move cagefs-skeleton directory to new location and create symlink.
$ mv /usr/share/cagefs-skeleton /home2/cagefs-skeleton
$ ln -s /home2/cagefs-skeleton /usr/share/cagefs-skeleton

Then enable CageFS:
cagefsctl --enable-cagefs
  1. 24.05.2013 13:05:42
  2. # 2
Frank Doud Accepted Answer
Posts: 39
Joined: 21.08.2010
0
Votes
Undo
Thank you Anton.


Frank
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.