Table of Contents

Installation of CVMFS

Read: https://twiki.cern.ch/twiki/bin/view/Atlas/Tier3CVMFS2SLC5

ANL-specific details

Local Configuration details

In this section the specific configuration details for ANL will be listed.

  1. Edit (create if it does not exist) the file /etc/cvmfs/default.local, in particular, change
    CVMFS_REPOSITORIES=atlas.cern.ch,atlas-condb.cern.ch,atlas-nightlies.cern.ch
    CVMFS_CACHE_BASE=/home/cache/cvmfs2
    CVMFS_QUOTA_LIMIT=13000
    CVMFS_HTTP_PROXY="http://squid.hep.anl.gov:3128;DIRECT"
  2. Create a file /etc/cvmfs/domain.d/cern.ch.local and add the following entry:
    #  Change the order so that the nearest server is the first in the list ...
    #  Note that port 8000 is preferred for the servers below but,  if it does not work, use port 80 instead.
    # if you are in North America (uncomment)
    CVMFS_SERVER_URL="http://cvmfs.racf.bnl.gov:8000/opt/@org@;http://cvmfs-stratum-one.cern.ch:8000/opt/@org@;http://cernvmfs.gridpp.rl.ac.uk:8000/opt/@org@"
  3. Add cvmfs to chkconfig
    /sbin/chkconfig --levels 345 cvmfs on
  4. Restart cvmfs
    /sbin/service cvmfs restart
  5. Check if cvmfs works, by inspecting the contents of the following directories:
    > ls /cvmfs/atlas.cern.ch/
    repo
    > ls /cvmfs/atlas.cern.ch/repo
    ATLASLocalRootBase  conditions  sw
    > ls /cvmfs/atlas-condb.cern.ch/repo
    conditions  tag

Start and stop cvmfs

How to install on SL6.4

For SL6, do this:

 yum install compat-expat1 openssl098e libuuid-devel
 rpm -Uvh http://cvmrepo.web.cern.ch/cvmrepo/yum/cvmfs/EL/6/x86_64/cvmfs-release-2-4.el6.noarch.rpm
 yum install cvmfs cvmfs-init-scripts cvmfs-auto-setup  cvmfs-keys.noarch cvmfs.x86_64 

Doug suggestions (no need!):

yum install libuuid-devel
ln -s  /lib64/libuuid.so.1 /lib64/libuuid.so
wget http://linuxsoft.cern.ch/cern/slc6X/extras/x86_64/RPMS/HEP_OSlibs_SL6-1.0.7-0.el6.x86_64.rpm
yum install HEP_OSlibs_SL6-1.0.7-0.el6.x86_64.rpm 

Bob suggested:

cat - >/etc/cvmfs/default.local <<EOF
CVMFS_QUOTA_LIMIT=100000
CVMFS_HTTP_PROXY="http://squid.hep.anl.gov:3128;http://cvmfs02.racf.bnl.gov:8000|http://cvmfs03.racf.bnl.gov:8000;DIRECT"
CVMFS_SERVER_URL=http://cvmfs.racf.bnl.gov:8000/opt/atlas-newns,http://cvmfs-stratum-one.cern.ch/opt/atlas-newns
CVMFS_REPOSITORIES=atlas.cern.ch,atlas-condb.cern.ch,atlas-nightlies.cern.ch,geant4.cern.ch,grid.cern.ch,sft.cern.ch
#CVMFS_DEBUGLOG=/var/log/cvmfs.log
EOF

Then put ANL specific files (take from atlas17)

scp [email protected]:/etc/cvmfs/domain.d/cern.ch.local /etc/cvmfs/domain.d/
scp [email protected]:/etc/cvmfs/default.local /etc/cvmfs/

How to test

Run:

/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/utilities/installCheck.sh

and install the needed packages.

export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh