User Tools

Site Tools


grid:storegrid

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
grid:storegrid [2009/07/29 16:05] abuechlegrid:storegrid [2009/07/29 16:23] (current) abuechle
Line 1: Line 1:
-====== Storing Data on a Grid Storage Element ======+====== Storing Data on a Grid Storage Element (SE) ======
 ===== Introduction ===== ===== Introduction =====
 When running a job on the Grid (backend = Dirac()), the output data can be stored on a Grid Storage Element (SE) instead of the lxplus AFS account. The access to the files is however a bit different than on lxplus. When running a job on the Grid (backend = Dirac()), the output data can be stored on a Grid Storage Element (SE) instead of the lxplus AFS account. The access to the files is however a bit different than on lxplus.
Line 6: Line 6:
 go to your home directory on lxplus go to your home directory on lxplus
 open the .gangarc file open the .gangarc file
-modify the following line (line 313 in standard .gangarc file (to get a standard one do 'ganga -g')) :  +modify the following line (line 313 in standard .gangarc file (to get a standard one do 'ganga -g')):  
-<code> +<code>
 #outputsandbox_types = ['NTupleSvc', 'HistogramPersistencySvc', 'MicroDSTStream'] #outputsandbox_types = ['NTupleSvc', 'HistogramPersistencySvc', 'MicroDSTStream']
 </code>  </code> 
Line 26: Line 26:
 </code> </code>
  
-===== Where are the output files (on which SE)? ===== 
-in Ganga when the job has completed do: 
-<code> 
-jobs(jobnumber).subjobs(subjobnumber).backend.getOutputData() 
-</code> 
-that gives you a logical filename (LFN): 
-<code> 
-['/lhcb/user/myInitial/myUsername/diracSlice/DiracJobID/filename.root'] 
-</code> 
-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: 
-<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 srm://srm-lhcb.gridpp.rl.ac.uk/castor/ads.rl.ac.uk/prod/lhcb/user/a/abuechle/4125/4125675/bsKK_23July09.root'. 
- 
-===== How to copy the output to Zuerich ===== 
-In order to copy files directly from a SE to a machine in Zurich, first do on a Zurich machine 
-<code> 
-export LHCBPRODROOT=/disk/dirac 
-. ${LHCBPRODROOT}/gLite/external/etc/profile.d/grid-env.sh 
-. ${LHCBPRODROOT}/lcg/etc/profile.d/grid_compat_env.sh 
-export X509_CERT_DIR=/disk/dirac/gLite/external/etc/grid-security/certificates 
-grid-proxy-init 
-</code> 
-which will prepare your machine for file-transport. 
-Then do (e.g.): 
-<code> 
-lcg-cp -v 'srm://srm-lhcb.gridpp.rl.ac.uk/castor/ads.rl.ac.uk/prod/lhcb/user/a/abuechle/4125/4125675/bsKK_23July09.root' file://home/hep/myUsername/myFile 
-</code> 
-The ''-v'' option just means ''verbose''. 
  
-** Note: ** You need a Grid Certificate to do this! 
  
grid/storegrid.1248876302.txt.gz · Last modified: by abuechle