Using Grid with CRAB:

First step:
Cerificate:
http://egee-uig.web.cern.ch/egee-uig/production_pages/GetCertificate.html
How to use your certificate with grid-proxy-init
VO registration:
https://lcg-voms.cern.ch:8443/vo/cms/vomrs (only after put the certificate into the browser)
SiteDB registration:
https://twiki.cern.ch/twiki/bin/view/CMS/SiteDBForCRAB
https://twiki.cern.ch/twiki/bin/view/CMS/SiteDB
Getting an account on a User Interface:
http://cmsdoc.cern.ch/cms/aprom/www/top/CMS_VO.html#account

WorkBook&Tutorial:
https://twiki.cern.ch/twiki/bin/view/CMS/WorkBookStartingGrid
https://twiki.cern.ch/twiki/bin/view/CMS/WorkBookRunningGrid
https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideCrabHowTo
https://twiki.cern.ch/twiki/bin/view/CMS/CrabNewHowTo
https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideCrabFaq
https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideCrab
http://cms.pd.infn.it/tutorials/crab_tutorial_08_04_2009.pdf

gLite 3.1 User Guide:
https://edms.cern.ch/file/722398/1.2/gLite-3-UserGuide.html

Crab server:
https://twiki.cern.ch/twiki/bin/view/CMS/CrabServer

Set the environment and crab:
source /afs/cern.ch/cms/LCG/LCG-2/UI/cms_ui_env.sh
source /afs/cern.ch/cms/ccs/wm/scripts/Crab/crab.sh

Example crab config file:
cp $CRABPATH/crab.cfg
or
cp $CRABPATH/full_crab.cfg

Save the output file to castor:
in the .cfg file:
copy_data=1
storage_element=srm-cms.cern.ch
storage_path=/srm/managerv2?SFN=/castor/cern.ch
user_remote_dir=/user/a/akapusi/crab

Set the directory on the castor:
rfmkdir /castor/cern.ch/user/a/akapusi/crab
rfchmod 775 /castor/cern.ch/user/a/akapusi/crab

Publication the output file to DBS:
https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideCrabForPublication

Start the crab:
Compile the code and set the environment:
scramv1 b
cmsenv

Create and submit the job:
crab -create
or
crab -cfg stg.cfg -create
crab -submit

Identification of the job:
crab -printId
e.g.: crab_0_090508_171749

Job status:
crab -status
crab -status -continue [job id]
or
crab -printId
Write the Id to http://vocms54.cern.ch:8888/logginfo/
or
You get a http page when you run the "crab -staus".
for example:
You can also follow the status of this task on :
CMS Dashboard: http://dashb-cms-job-task.cern.ch/taskmon.html#task=akapusi_crab_0_090508_171749_d04ob5_
_Your task name is: akapusi_crab_0_090508_171749_d04ob5


Save the output files:
crab -getoutput
or
crab -getotput -continue [job id]

Output:
in the local directory:
cd [job id]/res/ ...
or
on the castor:
nsls /castor/cern.ch/user/ ...
e.g.:
cd crab_0...../res/.....
nsls /castor/cern.ch/user/a/akapusi/crab/.....

Job exit codes:
https://twiki.cern.ch/twiki/bin/view/CMS/JobExitCodes

How to copy files from storage element on lxplus:
1. create a voms proxy:
setup_grid voms-proxy-init --voms cms
2. list files in SE:
srmls srm://gfe02.hep.ph.ic.ac.uk:8443/pnfs/hep.ph.ic.ac.uk/data/cms/store/user/
3. format output such as:
srmcp -streams_num=1 srm://gfe02.hep.ph.ic.ac.uk:8443/pnfs/hep.ph.ic.ac.uk/data/cms/store/user/... file:////tmp/veszpv/...

Hungarian grid site:
T2_HU_Budapest:
https://cmsweb.cern.ch/sitedb/site/index?site=2
CE: grid109.kfki.hu
SE: grid143.kfki.hu

WeeklyBudapestDebrecenMeetings:
Pal Hidas:
Sending CMS jobs on grid using CRAB

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2009-06-23 - AnitaKapusi
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback