User Tools

Site Tools


cluster:ownlhcb

In Zurich, $CMTPROJECTPATH includes a folder under your home directory (/home/hep/username/cmtuser).

You will need to checkout a copy of your package under the appropriate project in /home/hep/username/cmtuser/, OR to symlink it from AFS. For example:

cd /home/hep/username/cmtuser/
kinit && aklog
ln -s /afs/cern.ch/user/u/username/cmtuser/Alignment_v10r3 Alignment_v10r3

Now, every time you start a job on the cluster you will need to setup this specific package version. It is easier if you setup Kerberos in a way that it does not require a password every time. You can do so by creating a keytab file with ktutil:

ktutil
  ktutil:  addent -password -p username@CERN.CH -k 1 -e rc4-hmac
  Password for username@CERN.CH: [enter your password]
  ktutil:  addent -password -p username@CERN.CH -k 1 -e aes256-cts
  Password for username@CERN.CH: [enter your password]
  ktutil:  wkt username.keytab
  ktutil:  quit

This way, you can load your folders on the AFS file system by just doing:

kinit -l7d username@CERN.CH -k -t username.keytab

(the -l7d flag keeps the session active for 7 days.)

Finally, you can create a script that sets up the correct environment before running your job. The following runs on the openSUSE cluster:

kinit -l7d username@CERN.CH -k -t /home/hep/username/username.keytab
aklog
export CMTCONFIG=x86_64-slc6-gcc48-opt
. /afs/cern.ch/lhcb/software/releases/LBSCRIPTS/prod/InstallArea/scripts/LbLogin.sh
/afs/cern.ch/lhcb/software/releases/LBSCRIPTS/prod/InstallArea/scripts/SetupProject.sh Alignment v10r3
# ...run my job...
cluster/ownlhcb.txt · Last modified: 2015/06/01 18:07 by egraveri