7 dec 2009
Join at least one Virtual Organisation (VO) There may be an obvious one for your experiment, if not there is a default called Northgrid
Get into the afs mapfile Tell the system manager (Sabah) your Grid certificate DN and your userid on the local cluster. He will add this to the map file so that the cluster knows about the link.
These are things you only need to do once. Ever.
userid and you have a working directory
workdir
and to run a job myjob online you log in and type
cd workdir ./myjob.exeYou now need to create a file called, for example
script which contains
/usr/bin/gssklog -cell hep.man.ac.uk -principal userid -server afs1.hep.man.ac.uk -port 5750 cd workdir ./myjob.exe
voms-proxy-init --voms your vo name --valid 24:00This creates a certificate proxy which will then be sent around with the jobs you submit. The
--valid 24:00 is optional but helps.
The default is 12 hours.
Type
globus-job-submit ce01.tier2.hep.manchester.ac.uk:2119/jobmanager-lcgpbs -q long -s scriptGiven that this is such a mouthful you may want to write a shell script to do it for you
./myjob.exe parameterThen in the script file you can put
./myjob.exe $argand in the
globus-job-submit command you add the option
-env arg=parameter
This is heavily used if the submit command is in a loop in a script, so many jobs can be submitted at once.
For example running the bash script
for (( i=1; i<=$1; i++)) do mkdir $RUN$i globus-job-submit ce01.tier2.hep.manchester.ac.uk:2119/jobmanager-lcgpbs -q long -env homedir=$homedir -env DIR=$RUN$i -env iseed=$i -env afsname=$afsname -s merlinscript donewith submitted script
/usr/bin/gssklog -cell hep.man.ac.uk -principal $afsname -server afs1.hep.man.ac.uk -port 5750 cd $homedir/$DIR ../example411 $iseed > run.out 2> run.err
export ROOTSYS=../../myRoot/root export LD_LIBRARY_PATH=../../myRoot/root/lib:$LD_LIBRARY_PATH