CVMFS

CVMFS is a FUSE module which implements an HTTP read-only filesystem.

CVMFS Server Setup
To get an cvmfs server system working you will need the following steps.

Kernel with aufs options enabled
The contains Linux Kernel with the aufs support module. First, you must install this package:

Note that in order to use genkernel to generate Linux kernel and initramfs, you must:

Config Apache server
The cvmfs server utility will /srv/cvmfs as storage location. Therefore, the DocumentRoot should be config to the /srv.

Config /etc/apache2/vhosts.d/default_vhost.include

DocumentRoot "/srv"

 .... 

Create CVMFS repository
1. Build&&Install cvmfs

Download cvmfs code from github cvmfs.

The cvmfs build system uses cmake. In order to compile and install, run from the source directory.

2. Create the two directories and ensure adequate sapce.
 * /cvmfs
 * /srv

3. Create a new cvmfs server "file system" and repository structure:

If there is an error in creation, remove the repository:

Installation
Install the cvmfs package from cvmfs. See the above section.

Install the AutoFS. Typically, mounting of cvmfs repositories is handled by AutoFS. For Gentoo, you must both install autofs utility and open kernel option.

Check the /etc/auto.master has contains /cvmfs /etc/auto.cvmfs. Then, do the base setup: