How to use the clusters

From LHEP Wiki
Revision as of 09:49, 18 March 2015 by Lhep (talk | contribs) (1 revision imported)
Jump to navigation Jump to search

First you need a certificate. Please follow the instructions here : https://www.switch.ch/grid/certificates/obtain/quovadis_user.html

Make sure you have the two certificate files userkey.pem and usercert.pem in your ~/.globus directory (create the directory and put them there). Load the usercert.p12 in your browser (e.g. with Firefox: Preferences->Advanced->View certificate ->Import) Subscribe to the AEC virtual organization via https://voms.lhep.unibe.ch:8443 by clicking on aec (or talk to Sigve)

Make sure you have a file ~/.voms/vomses with this line inside (create it with your editor): "aec" "voms.lhep.unibe.ch" "15027" "/DC=com/DC=quovadisglobal/DC=grid/DC=switch/DC=hosts/C=CH/ST=Bern/L=Bern/O=Universitaet Bern/CN=voms.lhep.unibe.ch" "aec"

Install your submission client, the ARC (Advanced Resource Connector), documentation can be found in [1]. This gives you the arc tools like arcsub, arcls, arcstat, arcget etc. With those you can submit and manage your jobs.

To set up ARC (standalone) choose the needed configuration from [2] and download it. Then, for linux, extract and source:

     # tar -xvf nordugrid-arc-standalone-<your version>.tgz
     # cd nordugrid-arc-standalone-<your-version>
     # . ./setup.sh

The ARC environment should be set, you can make a proxy (default valid 12 hours)

     # arcproxy --voms aec
      Type your password:

To test it (other clusters at UNIBE are ce01.lhep.unibe.ch and nordugrid.unibe.ch) :

     #arctest -c ce01.lhep.unibe.ch -J 1

To check your job go to: [3]. Now describe a real job in the xrsl language, submit and retrive it:

    # arcsub -c ce.lhep.unibe.ch myjob.xrsl (returns a job identifier gsiftp://.... if everything is ok)
    # arcget gsiftp://..

Here an xrsl file example (documentation here : http://www.nordugrid.org/documents/xrsl.pdf):

  $&(executable=myjobscript.sh)
  (inputfiles=
  (myjob.exe myjob.exe)
  )
  (* comments within stars *)
  (outputfiles=("/" ""))
  (jobname=MyVeryFirstJob)