Transcript ihep.su

An inroduction to services provided by the Grid

Elena Slabospitskaya IHEP NA3 manager for Russia

EGEE is funded by the European Union under contract IST-2003-508833

LCG-2 User Guide https://edms.cern.ch/file/454439//LCG-2-UserGuide.html

LCG Releases http://grid-deployment.web.cern.ch/grid-deployment/cgi-bin/index.cgi?var=releasesLCG-2 Install Notes (for administrators) LCG-2 Manual Installation Guide (for administrators) https://edms.cern.ch/file/434070//LCG2Install.htmlSite with EDG Tutorials http://hep-proj-grid-tutorials.web.cern.ch/hep-proj-grid-tutorials/

Exercise: Credentials

- Generate a certificate request

grid-cert-request

-int - Modify the passphrase of your private key

grid-change-pass-phrase

- Check the content of your credentials

grid-cert-info

&

grid-proxy

- Log into the Grid: create proxy

grid-proxy-init

&

edg-voms-proxy-init

- Long-tem proxy( > 12hours)

myproxy-init -s lcg14.sinp.msu.ru -d -v -n myproxy-info -s lcg14.sinp.msu.ru -d

Exercise: Job Description

The language used to describe a job is Job Description Language (JDL)

Mandatory

( test.jdl) Executable = "/bin/hostname"; StdOutput = "std.out"; StdError = "std.err"; OutputSandbox = {"std.out","std.err"};

Optional

OutputSE -specifies the SE where the user wants to store output data.

OutputData – automatically registeres data files in the Grid Arguments = "Hello Grid";

Exercise: Job Submission CLI

edg-job-list-match -vo

test.jdl

edg-job-submit -vo test.jdl

edg-job-status edg-job-get-logging-info edg-job-get-output edg-job-submit -vo

interactive.jdl

edg-job-submit -vo

perltest.jdl

GUI

edg-wl-ui-jdleditor.sh edg-wl-ui-jobmonitor.sh edg-wl-ui-jobsubmitter.sh

Exercise: Data Management

edg-rm --vo printInfo edg-rm --vo copyAndRegisterFile file:/LCG-2 UserGuide.html -l lfn:LCG-2-UserGuide.html -d edg-rm –vo listReplicas edg-rm --vo replicateFile -d edg-rm --vo getTurl globus-url-copy -vb file:// `pwd`/LCG-2-UserGuide.html edg-rm --vo dteam ls edg-rm --vo del --all-available

Exercise: Put a file to Storage

copyAndRegisterFile CloseSE GUID SRM listReplicas & replicateFile SURL getTurl TURL globus-url-copy & copyFile & rfcp edg-gridftp-exists, rm, ls MS S

Exercise: Information System

The

local GRIS

es running on Computing Elements and Storage Elements ldapsearch -x -h lxb0738.cern.ch -p 2135 -b "mds-vo-name=local, o=grid" In LDAP, a special attribute objectClass is defined for each directory entry ldapsearch -x -h lxb0738.cern.ch -p 2135 -b "mds-vo-name=local, o=grid" 'objectClass=SiteInfo' SiteName At each site, a

site GIIS

collects information about all resources ldapsearch -x -h lxb0738.cern.ch -p 2135 -b "mds-vo-name=LCGCERTTB2P, o=grid"

Appendix A. Test.jdl

Executable = "/bin/hostname"; StdOutput = "std.out"; StdError = "std.err"; OutputSandbox = {"std.out","std.err"};

Appendix B. interactive.jdl & interactive.sh

interactive.jd

Executable = "interactive.sh" ; InputSandbox = {"interactive.sh"} ;

interactive.s

h

#!/bin/sh echo "Welcome!" echo -n "Please tell me your name: " read name echo "That is all, $name." echo "Bye bye." exit 0

Appendix C. perltest.jdl & perltest.pl perltest.jdl

Executable = "perltest.pl"; InputSandbox = {"perltest.pl"} ; Arguments = "Grid"; StdOutput = "std.out"; StdError = "std.err"; OutputSandbox = {"std.out","std.err"}; #!/usr/bin/perl -s

perltest.pl

if ($ARGV[0]) {$argument= $ARGV[0];} print "Your argument is $argument","\n";

Appendix Y. Useful examples

Requirements = other.GlueCEInfoLRMSType == "PBS" && other.GlueCEInfoTotalCPUs > 1; Requirements = other.GlueCEUniqueID == "lxshare0286.cern.ch:2119/jobmanager-pbs-short"; Requirements = Member("CMSIM 133",other.GlueHostApplicationSoftwareRunTimeEnvironm

ent); Requirements = RegExp("cern.ch", other.GlueCEUniqueId); Requirements = anyMatch(other.storage.CloseSEs,target.GlueSAStateAvai

lableSpace > 204800); InputData = {"lfn:doe/prod/kin_1", "guid:136b48a64-4a3d-87ud 3bk58gnn46m49f3"}; "gsiftp"};

Appendix Z. Possible Job States

DONE(cancelled) SUBMITTED WAITING READY SCHEDULED RUNNING ABORTED DONE(failed) DONE(ok) OUTPUTREADY CLEARED