User Tools

Site Tools


grid:findongrid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
grid:findongrid [2010/01/26 16:44] abuechlegrid:findongrid [2010/01/27 16:17] (current) abuechle
Line 3: Line 3:
 in Ganga when the job has completed do: in Ganga when the job has completed do:
 <code> <code>
-jobs(jobnumber).subjobs(subjobnumber).backend.getOutputDataLFNs()+jobs(jobnumber).subjobs(subjobnumber).backend.getOutputDataLFNs().getReplicas()
 </code> </code>
-that gives you a logical filename (LFN):+that gives you a logical filename (LFN) in the first part:
 <code> <code>
-['/lhcb/user/myInitial/myUsername/diracSlice/DiracJobID/filename.root']+{'/lhcb/user/a/abuechle/7164/7164556/minbiasMC09_35TeV_25Jan10.root': {'CERN-USER': 'srm://srm-lhcb.cern.ch/castor/cern.ch/grid/lhcb/user/a/abuechle/7164/7164556/minbiasMC09_35TeV_25Jan10.root'}}
 </code> </code>
 +The LFN is then '/lhcb/user/a/abuechle/7164/7164556/minbiasMC09_35TeV_25Jan10.root'.\\
 The data will end up in the SE closest to the location where your job did run.\\  The data will end up in the SE closest to the location where your job did run.\\ 
-To find out on which SE your file actually is, execute the following commands on lxplus: +The command also tells you on which SE your file is in the second partSo the file is on CASTOR at at the srm address: srm:%%//%%srm-lhcb.cern.ch/castor/cern.ch/grid/lhcb/user/a/abuechle/7164/7164556/minbiasMC09_35TeV_25Jan10.root. 
-<code> +
-SetupProject Dirac +
-dirac-dms-lfn-replicas /lhcb/user/myInitial/myUsername/diracSlice/DiracJobID/filename.root +
-</code> +
-there you get back for instance the following: +
-<code> +
-2009-07-29 12:10:41 UTC dirac-dms-lfn-replicas.py/DiracAPI  INFO: Replica Lookup Time: 96.89 seconds +
-{'Failed': {}, +
- 'Successful': {'/lhcb/user/a/abuechle/4125/4125675/bsKK_23July09.root': {'RAL-USER': 'srm://srm-lhcb.gridpp.rl.ac.uk/castor/ads.rl.ac.uk/prod/lhcb/user/a/abuechle/4125/4125675/bsKK_23July09.root'}}} +
-</code> +
-so the file is on RAL at at the srm address: srm:%%//%%srm-lhcb.gridpp.rl.ac.uk/castor/ads.rl.ac.uk/prod/lhcb/user/a/abuechle/4125/4125675/bsKK_23July09.root. +
  
 ===== How to get the status of a storage element (SE)? ===== ===== How to get the status of a storage element (SE)? =====
grid/findongrid.1264520651.txt.gz · Last modified: 2010/01/26 16:44 by abuechle