Announcement

Collapse
No announcement yet.

Move CageFS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Move CageFS

    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 dont 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.

  • #2
    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

    Comment


    • #3
      Thank you Anton.

      Frank

      Comment

      Working...
      X