 <?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.lhep.unibe.ch/index.php?action=history&amp;feed=atom&amp;title=DPM_SE_how-to</id>
	<title>DPM SE how-to - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.lhep.unibe.ch/index.php?action=history&amp;feed=atom&amp;title=DPM_SE_how-to"/>
	<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=DPM_SE_how-to&amp;action=history"/>
	<updated>2026-05-14T09:28:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.lhep.unibe.ch/index.php?title=DPM_SE_how-to&amp;diff=161&amp;oldid=prev</id>
		<title>Lhep: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=DPM_SE_how-to&amp;diff=161&amp;oldid=prev"/>
		<updated>2015-03-18T07:49:24Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:49, 18 March 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Lhep</name></author>
	</entry>
	<entry>
		<id>https://wiki.lhep.unibe.ch/index.php?title=DPM_SE_how-to&amp;diff=160&amp;oldid=prev</id>
		<title>Lhep at 13:20, 10 June 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=DPM_SE_how-to&amp;diff=160&amp;oldid=prev"/>
		<updated>2014-06-10T13:20:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;h3&amp;gt; Introduction &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This page describes how to work with the Disk Pool Manager Storage Element of the Bern ATLAS T2 cluster UNIBE-LHEP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; Resources available &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Status as of September 2013:&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
! Space Token !! Reserved size !! Path !! Comment &lt;br /&gt;
|-&lt;br /&gt;
! UNIBE-LHEP_DATADISK !!  350 TB  !!    /dpm/lhep.unibe.ch/home/atlas/atlasdatagroupdisk/    !! DDM endpoint in the ND cloud - Managed by DDM only, Authorized FQANs: atlas/Role=production&lt;br /&gt;
|-&lt;br /&gt;
! UNIBE-LHEP_LOCALGROUPDISK !!  71.78 TB  !!  /dpm/lhep.unibe.ch/home/atlas/atlaslocalgroupdisk/ !!  DDM endpoint in the ND cloud - Managed by DDM only, Authorized FQANs: atlas/Role=production, atlas/ch&lt;br /&gt;
|-&lt;br /&gt;
! UNIBE-LHEP_SCRATCHDISK !!  14.65 TB  !!  /dpm/lhep.unibe.ch/home/atlas/atlasscratchdisk/ !!  DDM endpoint in the ND cloud - Managed by DDM only, Authorized FQANs: atlas&lt;br /&gt;
|-&lt;br /&gt;
! No token area for other VOs !!  21.93 TB  !!  /dpm/lhep.unibe.ch/home/&amp;lt;vo name&amp;gt; !!  Authorized FQANs: aec, atlas/Role=NULL, crypto, dteam, life, ltpc, ops, ops/NGI, ops/NGI/Germany, ops/NGI/Switzerland, ops/ROC, ops/ROC/GermanySwitzerland, ops/Role=lcgadmin, smscg, t2k.org, tutor&lt;br /&gt;
|-&lt;br /&gt;
! ... !!  ... !!  ... !!  ...  &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; Setting up your environment &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- consider adding the following to your bash profile&lt;br /&gt;
  source /terabig/atlsoft/LocalSoft/glite/glite-UI-current/external/etc/profile.d/grid-env.sh &amp;amp;&amp;amp; unset GT_PROXY_MODE&lt;br /&gt;
  export DPM_HOST=dpm.lhep.unibe.ch&lt;br /&gt;
  export DPNS_HOST=dpm.lhep.unibe.ch&lt;br /&gt;
&lt;br /&gt;
- you need your standard grid credentials for the appropriate VO, either atlas or ltpc&lt;br /&gt;
  voms-proxy-init -voms atlas:/atlas/ch&lt;br /&gt;
  voms-proxy-init -voms &amp;lt;vo name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- if down the line you get errors about libshift and/or libRFIO, these should be cured by prepending the following to your PATH (this is certainly needed if opening files directly in ROOT or Athena):&lt;br /&gt;
  export LD_LIBRARY_PATH=/terabig/atlsoft/LocalSoft/glite/glite-UI-current/lcg/lib:${LD_LIBRARY_PATH}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; For first time users &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- some useful information and a tutorial are found here:&lt;br /&gt;
  https://svnweb.cern.ch/trac/lcgdm/wiki/Dpm&lt;br /&gt;
  https://svnweb.cern.ch/trac/lcgdm/wiki/Dpm/User/Tutorial&lt;br /&gt;
&lt;br /&gt;
- if you plan to use the non token space (for e.g. quicker interactive access) you will need most of what is covered in the tutorial. Please clean up after yourself after creating test files, dirs, etc. For any other work, it is highly advised to use the LOCALGROUPDISK and run in grid fashion.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; Getting and accessing data on to/from the DPM SE &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h4&amp;gt; UNIBE-LHEP_DATADISK space token &amp;lt;/h4&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- Pledged area, no local users allowed&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h4&amp;gt; UNIBE-LHEP_LOCALGROUPDISK space token &amp;lt;/h4&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- DDM subscription via Data Transfer Request Interface (DaTRI): https://twiki.cern.ch/twiki/bin/view/Atlas/DataTransferRequestInterface&lt;br /&gt;
* You need an account from the Panda web page, which is not the same as any account you already have at CERN&lt;br /&gt;
* Request that from a browser that has your certificate loaded&lt;br /&gt;
* Once registered, follow this link to the data subscription page: http://pandamonitor.cern.ch:25980/server/pandamon/query?mode=ddm_req&lt;br /&gt;
* To use the data in Grid jobs, choose ND as cloud and UNIBE-LHEP_LOCALGROUPDISK as destination site&lt;br /&gt;
&lt;br /&gt;
* NOTE: all files in the space token area can also be accessed directly with all tools listed below, provided the users finds their way into the directory tree. However: please refrain from deleting and moving individual files from the token area, as this will make the entire dataset not usable and create nasty inconsistencies in the DDM catalogues. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h4&amp;gt; Non token space &amp;lt;/h4&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- You can use this space to store both DDM data (via dq2) and any other file (mainly via GFAL/lcg-* utils or RFIO/rf* clients. For convenience, one can also use the dpns-* commands as well, but these work on the namespace only and do not perform data I/O) - *NOTE*: Non token space for ATLAS has been basically discontinued. Only &amp;lt;100GB of space are available to store small files or testing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; dq2 &amp;lt;/h5&amp;gt;&lt;br /&gt;
* When to use dq2-get or DDM subscriptions: https://twiki.cern.ch/twiki/bin/view/Atlas/DQ2ClientsHowTo#When_to_use_dq2_get_or_DDM_subsc&lt;br /&gt;
* You&amp;#039;re all familiar with dq2: https://twiki.cern.ch/twiki/bin/view/Atlas/DQ2ClientsHowTo&lt;br /&gt;
* A nice and comprehensive tutorial on DDM/dq-2: http://indico.ific.uv.es/indico/getFile.py/access?contribId=3&amp;amp;resId=0&amp;amp;materialId=slides&amp;amp;confId=207&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; dpns-* &amp;lt;/h5&amp;gt;&lt;br /&gt;
* These commands will not allow you perform any I/O, but only interact with the name-space, namely creating/deleting directories, list, rename file/dirs, change permissions and so on. Sometimes it is convenient to use some of these commands.&lt;br /&gt;
* The commands available are the following (see man pages for full details):&lt;br /&gt;
  dpns-chgrp         dpns-entergrpmap   dpns-listgrpmap    dpns-ls            dpns-modifyusrmap  dpns-rm            dpns-setacl&lt;br /&gt;
  dpns-chmod         dpns-enterusrmap   dpns-listusrmap    dpns-mkdir         dpns-ping          dpns-rmgrpmap      &lt;br /&gt;
  dpns-chown         dpns-getacl        dpns-ln            dpns-modifygrpmap  dpns-rename        dpns-rmusrmap      &lt;br /&gt;
&lt;br /&gt;
- Usage examples&lt;br /&gt;
  # dpns-ls /dpm/lhep.unibe.ch/home/atlas/user/gsciacca&lt;br /&gt;
  &lt;br /&gt;
  # /ngse3/data/data10_7TeV/aod/jettauetmiss &amp;gt; dpns-mkdir /dpm/lhep.unibe.ch/home/atlas/user/gsciacca/testdir&lt;br /&gt;
  &lt;br /&gt;
  # /ngse3/data/data10_7TeV/aod/jettauetmiss &amp;gt; dpns-ls /dpm/lhep.unibe.ch/home/atlas/user/gsciacca&lt;br /&gt;
  testdir&lt;br /&gt;
  &lt;br /&gt;
  # dpns-mkdir -p /dpm/lhep.unibe.ch/home/atlas/user/gsciacca/testdir/testdir1/testdir2/testdir3&lt;br /&gt;
  &lt;br /&gt;
  #  dpns-ls -R /dpm/lhep.unibe.ch/home/atlas/user/gsciacca/&lt;br /&gt;
  /dpm/lhep.unibe.ch/home/atlas/user/gsciacca/:&lt;br /&gt;
  testdir&lt;br /&gt;
  /dpm/lhep.unibe.ch/home/atlas/user/gsciacca//testdir:&lt;br /&gt;
  testdir1&lt;br /&gt;
  /dpm/lhep.unibe.ch/home/atlas/user/gsciacca//testdir/testdir1:&lt;br /&gt;
  testdir2&lt;br /&gt;
  /dpm/lhep.unibe.ch/home/atlas/user/gsciacca//testdir/testdir1/testdir2:&lt;br /&gt;
  testdir3&lt;br /&gt;
  /dpm/lhep.unibe.ch/home/atlas/user/gsciacca//testdir/testdir1/testdir2/testdir3:&lt;br /&gt;
&lt;br /&gt;
          -p     With  this  option,  rfmkdir creates dirname by creating all the&lt;br /&gt;
              non-existing parent directories first.&lt;br /&gt;
&lt;br /&gt;
  # dpns-rm -r /dpm/lhep.unibe.ch/home/atlas/user/gsciacca/testdir&lt;br /&gt;
&lt;br /&gt;
         -r     Recursive mode.&lt;br /&gt;
&lt;br /&gt;
- &amp;#039;&amp;#039;&amp;#039;Be warned: none of the remove/delete commands ever ask for confirmation!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; RFIO &amp;lt;/h5&amp;gt;&lt;br /&gt;
* Please use XROOTD if working with ROOT files&lt;br /&gt;
* This is as close as it gets to interacting with data as if the storage were mounted locally as in NFS&lt;br /&gt;
* The commands available are the following (see man pages for full details):&lt;br /&gt;
  rfcat     rfchmod   rfcomm    rfcp      rfdf      rfdir     rfmkdir   rfrename  rfrm      rfstat    rftp      &lt;br /&gt;
- Usage examples&lt;br /&gt;
  # rfdir /dpm/lhep.unibe.ch/home/atlas/user&lt;br /&gt;
  drwxrwxr-x   1 110      109                         0 Apr 06 11:24 kruker&lt;br /&gt;
  &lt;br /&gt;
  # rfmkdir /dpm/lhep.unibe.ch/home/atlas/user/gsciacca&lt;br /&gt;
  &lt;br /&gt;
  # rfcp testfile.txt /dpm/lhep.unibe.ch/home/atlas/user/gsciacca&lt;br /&gt;
  141 bytes in 1 seconds through local (in) and bond0 (out) (0 KB/sec)&lt;br /&gt;
  &lt;br /&gt;
  # rfdir /dpm/lhep.unibe.ch/home/atlas/user/gsciacca&lt;br /&gt;
  -rw-rw-r--   1 109      109                       141 Apr 28 14:34 testfile.txt&lt;br /&gt;
  &lt;br /&gt;
  # rfcat /dpm/lhep.unibe.ch/home/atlas/user/gsciacca/testfile.txt&lt;br /&gt;
  ************************************&lt;br /&gt;
  hostname:   lheppc51.unibe.ch&lt;br /&gt;
  date:  Thu Apr 28 11:49:14 CEST 2011&lt;br /&gt;
  ************************************&lt;br /&gt;
  &lt;br /&gt;
  # rfcp /dpm/lhep.unibe.ch/home/atlas/user/gsciacca/testfile.txt testfile1.txt&lt;br /&gt;
  141 bytes in 0 seconds through bond0 (in) and local (out)&lt;br /&gt;
  &lt;br /&gt;
  # md5sum testfile.txt&lt;br /&gt;
  b547254b9b53c0916c3865a5aa825107  testfile.txt&lt;br /&gt;
  &lt;br /&gt;
  # md5sum testfile1.txt &lt;br /&gt;
  b547254b9b53c0916c3865a5aa825107  testfile1.txt&lt;br /&gt;
  &lt;br /&gt;
  # rfrm /dpm/lhep.unibe.ch/home/atlas/user/gsciacca/testfile.txt&lt;br /&gt;
&lt;br /&gt;
- Please note that rfcp has no useful options, least it does recursive copy, and does not understand wildcards, so you&amp;#039;ll need something clever to achieve that, like bash loops and sometimes use the dpns-* commands for convenience:&lt;br /&gt;
  # for x in `ls /terabig/gsciacca/tmp/`; do rfcp /terabig/gsciacca/tmp/${x} /dpm/lhep.unibe.ch/home/atlas/user/gsciacca/${x}_copy; done &lt;br /&gt;
  956780 bytes in 0 seconds through local (in) and bond0 (out)&lt;br /&gt;
  441795 bytes in 0 seconds through local (in) and bond0 (out)&lt;br /&gt;
  438527 bytes in 1 seconds through local (in) and bond0 (out) (428 KB/sec)&lt;br /&gt;
  126913 bytes in 1 seconds through local (in) and bond0 (out) (123 KB/sec)&lt;br /&gt;
  114967 bytes in 1 seconds through local (in) and bond0 (out) (112 KB/sec)&lt;br /&gt;
  &lt;br /&gt;
  # rfdir /dpm/lhep.unibe.ch/home/atlas/user/gsciacca/&lt;br /&gt;
  -rw-rw-r--   1 109      109                    956780 Apr 28 15:32 tempfile1_copy&lt;br /&gt;
  -rw-rw-r--   1 109      109                    441795 Apr 28 15:32 tempfile2_copy&lt;br /&gt;
  -rw-rw-r--   1 109      109                    438527 Apr 28 15:32 tempfile3_copy&lt;br /&gt;
  -rw-rw-r--   1 109      109                    126913 Apr 28 15:32 tempfile4.root_copy&lt;br /&gt;
  -rw-rw-r--   1 109      109                    114967 Apr 28 15:32 tempfile5.root_copy&lt;br /&gt;
  &lt;br /&gt;
  # dpns-ls /dpm/lhep.unibe.ch/home/atlas/user/gsciacca/&lt;br /&gt;
  tempfile1_copy&lt;br /&gt;
  tempfile2_copy&lt;br /&gt;
  tempfile3_copy&lt;br /&gt;
  tempfile4.root_copy&lt;br /&gt;
  tempfile5.root_copy&lt;br /&gt;
  &lt;br /&gt;
  # for x in `dpns-ls /dpm/lhep.unibe.ch/home/atlas/user/gsciacca/`; do rfrm /dpm/lhep.unibe.ch/home/atlas/user/gsciacca/${x}; done&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; GFAL &amp;lt;/h5&amp;gt;&lt;br /&gt;
* These are higher-level clients that allow you more sophisticated control over data, both DDM data and your local files. For example you can use an LFC to give your files unique LFN (Logical File Name), create replica of files using their LFN, etc without having to worry about the actual path to the file, if you wish so. You can also interact with files in the Space Token area if you need to. The syntax of these commands tends to be a bit complex.&lt;br /&gt;
* The commands available are the following (see man pages for full details) &lt;br /&gt;
  lcg-aa               lcg-get-checksum     lcg-job-monitor      lcg-ls               lcg-rf               &lt;br /&gt;
  lcg-bringonline      lcg-getturls         lcg-job-status       lcg-ManageVOTag      lcg-sd               &lt;br /&gt;
  lcg-cp               lcg-gt               lcg-la               lcg-ra               lcg-stmd             &lt;br /&gt;
  lcg-cr               lcg-info             lcg-lg               lcg-rep              lcg-tags             &lt;br /&gt;
  lcg-del              lcg-infosites        lcg-lr               lcg-replica-manager  lcg-uf               &lt;br /&gt;
&lt;br /&gt;
* Commands to interact with the LHC File Catalog are (see man pages for full details)&lt;br /&gt;
  lfc-chgrp         lfc-delcomment    lfc-getacl        lfc-ln            lfc-modifygrpmap  lfc-rename        lfc-rmusrmap      &lt;br /&gt;
  lfc-chmod         lfc-entergrpmap   lfc-listgrpmap    lfc-ls            lfc-modifyusrmap  lfc-rm            lfc-setacl        &lt;br /&gt;
  lfc-chown         lfc-enterusrmap   lfc-listusrmap    lfc-mkdir         lfc-ping          lfc-rmgrpmap      lfc-setcomment    &lt;br /&gt;
&lt;br /&gt;
- Usage examples&lt;br /&gt;
&lt;br /&gt;
* copy, list and delete of a single file to a pre-selected destination (not using the LFC)&lt;br /&gt;
  # lcg-cp /terabig/gsciacca/tmp/tempfile1 srm://$DPNS_HOST:8446/srm/managerv2?SFN=/dpm/lhep.unibe.ch/home/atlas/user/gsciacca/tempfile1&lt;br /&gt;
  &lt;br /&gt;
  # lcg-ls srm://$DPNS_HOST:8446/srm/managerv2?SFN=/dpm/lhep.unibe.ch/home/atlas/user/gsciacca/&lt;br /&gt;
  /dpm/lhep.unibe.ch/home/atlas/user/gsciacca//tempfile1&lt;br /&gt;
  &lt;br /&gt;
  # lcg-cp srm://$DPNS_HOST/dpm/lhep.unibe.ch/home/atlas/user/gsciacca/tempfile1 /terabig/gsciacca/tmp/tempfile_copy&lt;br /&gt;
  &lt;br /&gt;
  #  md5sum tempfile1 tempfile_copy &lt;br /&gt;
  cb8432b25b2ad8eda801f36ed6c0c53d  tempfile1&lt;br /&gt;
  cb8432b25b2ad8eda801f36ed6c0c53d  tempfile_copy&lt;br /&gt;
  &lt;br /&gt;
  # lcg-del -l srm://$DPNS_HOST/dpm/lhep.unibe.ch/home/atlas/user/gsciacca/tempfile1&lt;br /&gt;
- To see a bit more of what&amp;#039;s happening:&lt;br /&gt;
         -v,--verbose&lt;br /&gt;
              Verbose mode. You can specify it twice for extra verbose mode.&lt;br /&gt;
&lt;br /&gt;
- Please note:&lt;br /&gt;
** lcg-* commands deal with single files only, no recursive, no wildcards, no directories&lt;br /&gt;
** lcg-del will NOT prompt for confirmation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Please note:&lt;br /&gt;
** LFC is no longer used in central ATLAS DDM operations, the service will be retired in the near future, so the following section is practically obsolete for ATLAS&lt;br /&gt;
&lt;br /&gt;
* To use the LFC you will need to set the following&lt;br /&gt;
  # export LFC_HOST=prod-lfc-atlas-central.cern.ch&lt;br /&gt;
&lt;br /&gt;
- Create your personal path on the LFC. For convenience you can choose to store that path into a convenient env variable: this will shorten your LFNs, as the path is automatically prepended to it&lt;br /&gt;
  # lfc-mkdir -p /grid/atlas/gsciacca&lt;br /&gt;
  # export LFC_HOME=/grid/atlas/gsciacca&lt;br /&gt;
  # lfc-ls -l $LFC_HOME&lt;br /&gt;
  # lfc-ls -l                #equivalent to the above since you have defined LFC_HOME&lt;br /&gt;
&lt;br /&gt;
* copy-register, list, copy back and delete of a single file using the LFC&lt;br /&gt;
  # lcg-cr -v -d dpm.lhep.unibe.ch -l lfn:file1 /terabig/gsciacca/tmp/tempfile1&lt;br /&gt;
  Using grid catalog type: lfc&lt;br /&gt;
  Using grid catalog : prod-lfc-atlas-central.cern.ch&lt;br /&gt;
  Checksum type: None&lt;br /&gt;
  SE type: SRMv2&lt;br /&gt;
  Destination SURL : srm://dpm.lhep.unibe.ch/dpm/lhep.unibe.ch/home/atlas/generated/2011-05-13/file64a236bf-fb72-40ab-8672-fde99eb75f47&lt;br /&gt;
  Source SRM Request Token: 7b28883c-0746-4815-a136-d46219228541&lt;br /&gt;
  Source URL: file:/terabig/gsciacca/tmp/tempfile1&lt;br /&gt;
  File size: 956780&lt;br /&gt;
  VO name: atlas&lt;br /&gt;
  Destination specified: dpm.lhep.unibe.ch&lt;br /&gt;
  Destination URL for copy: gsiftp://dpmdisk02.lhep.unibe.ch/dpmdisk02.lhep.unibe.ch:/mnt/storage3/atlas/2011-05-13/file64a236bf-fb72-40ab-8672-fde99eb75f47.22305.0&lt;br /&gt;
  # streams: 1&lt;br /&gt;
         956780 bytes   4328.18 KB/sec avg   4328.18 KB/sec inst&lt;br /&gt;
  Transfer took 1010 ms&lt;br /&gt;
  Using LFN: lfn:/grid/atlas/gsciacca/file1&lt;br /&gt;
  Using GUID: guid:ee16c60f-11a8-4b69-b844-0b1b2e2e3efa&lt;br /&gt;
  Registering LFN: /grid/atlas/gsciacca/file1 (ee16c60f-11a8-4b69-b844-0b1b2e2e3efa)&lt;br /&gt;
  Registering SURL: srm://dpm.lhep.unibe.ch/dpm/lhep.unibe.ch/home/atlas/generated/2011-05-13/file64a236bf-fb72-40ab-8672-fde99eb75f47 (ee16c60f-11a8-4b69-  b844-0b1b2e2e3efa)&lt;br /&gt;
  guid:ee16c60f-11a8-4b69-b844-0b1b2e2e3efa&lt;br /&gt;
&lt;br /&gt;
  # lcg-lr lfn:file1&lt;br /&gt;
  srm://dpm.lhep.unibe.ch/dpm/lhep.unibe.ch/home/atlas/generated/2011-05-13/file64a236bf-fb72-40ab-8672-fde99eb75f47&lt;br /&gt;
&lt;br /&gt;
  #  lcg-cp lfn:file1 /terabig/gsciacca/tmp/tempfile2&lt;br /&gt;
  &lt;br /&gt;
  #  md5sum /terabig/gsciacca/tmp/tempfile1 /terabig/gsciacca/tmp/tempfile2&lt;br /&gt;
  cb8432b25b2ad8eda801f36ed6c0c53d  /terabig/gsciacca/tmp/tempfile1&lt;br /&gt;
  cb8432b25b2ad8eda801f36ed6c0c53d  /terabig/gsciacca/tmp/tempfile2&lt;br /&gt;
&lt;br /&gt;
  # lcg-del -a -v lfn:file1&lt;br /&gt;
  VO name: atlas&lt;br /&gt;
  SE type: SRMv2&lt;br /&gt;
  [lfn:/grid/atlas/gsciacca/file1] srm://dpm.lhep.unibe.ch/dpm/lhep.unibe.ch/home/atlas/generated/2011-05-13/file64a236bf-fb72-40ab-8672-fde99eb75f47 - DELETED&lt;br /&gt;
  [guid:ee16c60f-11a8-4b69-b844-0b1b2e2e3efa] srm://dpm.lhep.unibe.ch/dpm/lhep.unibe.ch/home/atlas/generated/2011-05-13/file64a236bf-fb72-40ab-8672-fde99eb75f47 -   UNREGISTERED&lt;br /&gt;
  [guid:ee16c60f-11a8-4b69-b844-0b1b2e2e3efa] lfn:/grid/atlas/gsciacca/file1 - UNREGISTERED&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; XROOTD &amp;lt;/h5&amp;gt;&lt;br /&gt;
The xrootd protocol has been demonstrated to be considerably faster for direct data access than RFIO. In addition, one can open directly files from ROOT&lt;br /&gt;
&lt;br /&gt;
Setup CVMFS first&lt;br /&gt;
  # export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase&lt;br /&gt;
  # source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh&lt;br /&gt;
&lt;br /&gt;
Setup XROOTD and copy files&lt;br /&gt;
  # localSetupEmi&lt;br /&gt;
  # localSetupXRootD&lt;br /&gt;
* Commands available are the following:&lt;br /&gt;
  xrd           xrdb          xrdcp         xrdfs         xrdpwdadmin   xrdstagetool  &lt;br /&gt;
  xrdadler32    xrdcopy       xrdcp-old     xrdgsiproxy   xrdsssadmin   &lt;br /&gt;
&lt;br /&gt;
  # voms-proxy-init --voms atlas:/atlas/ch&lt;br /&gt;
  # xrdcp  root://dpm.lhep.unibe.ch//dpm/lhep.unibe.ch/home/atlas/atlaslocalgroupdisk/rucio/user/lmarti/e3/07/user.lmarti.016146._00001.susyNt.root /tmp&lt;br /&gt;
&lt;br /&gt;
Setup and open files from ROOT&lt;br /&gt;
  # localSetupEmi&lt;br /&gt;
  # localSetupROOT&lt;br /&gt;
&lt;br /&gt;
- Please note:&lt;br /&gt;
** Do NOT swap the two setups, otherwise it breaks (!) &lt;br /&gt;
 &lt;br /&gt;
  # voms-proxy-init --voms atlas:/atlas/ch&lt;br /&gt;
  # root -l root://dpm.lhep.unibe.ch//dpm/lhep.unibe.ch/home/atlas/atlaslocalgroupdisk/rucio/user/fmeloni/4d/ce/user.fmeloni.004139._00001.fileout.strip1.root&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h5&amp;gt; ARC &amp;lt;/h5&amp;gt;&lt;br /&gt;
ARC clients talk to SRMv2.2 SEs, such as the DPM. Set up your ARC environment first (after generating a proxy valid for your VO)&lt;br /&gt;
&lt;br /&gt;
  # cd /terabig/atlsoft/LocalSoft/nordugrid-arc/nordugrid-arc-standalone-0.8.1.1-2 &amp;amp;&amp;amp; source setup.sh &amp;amp;&amp;amp; cd&lt;br /&gt;
&lt;br /&gt;
- Usage examples&lt;br /&gt;
* copy, list and delete of a single file to a pre-selected destination (not using the LFC) &lt;br /&gt;
&lt;br /&gt;
  # ngcp -d2 HelloWorld.jar srm://dpm.lhep.unibe.ch/dpm/lhep.unibe.ch/home/life/smscg_HelloWorld.jar&lt;br /&gt;
  # ngls  srm://dpm.lhep.unibe.ch/dpm/lhep.unibe.ch/home/life&lt;br /&gt;
  # ng?? don&amp;#039;t know this yet...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; Advanced use &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* NOTE: not sure whether this section is still relevant. Refer to the XROOTD section&lt;br /&gt;
&lt;br /&gt;
In order to read files in from ROOT and Athena, you will need to pickup the appropriate version of libshift.so by prepending its location to your PATH:&lt;br /&gt;
  export LD_LIBRARY_PATH=/terabig/atlsoft/LocalSoft/glite/glite-UI-current/lcg/lib:${LD_LIBRARY_PATH}&lt;br /&gt;
&lt;br /&gt;
* NOTE: you will need to run a 32-bit version of ROOT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h4&amp;gt; Open files from within ROOT &amp;lt;/h4&amp;gt;&lt;br /&gt;
* Example&lt;br /&gt;
&lt;br /&gt;
  # source /terabig/atlsoft/LocalSoft/glite/glite-UI-current/external/etc/profile.d/grid-env.sh &amp;amp;&amp;amp; unset GT_PROXY_MODE&lt;br /&gt;
  # export DPM_HOST=dpm.lhep.unibe.ch&lt;br /&gt;
  # export DPNS_HOST=dpm.lhep.unibe.ch&lt;br /&gt;
  # voms-proxy-init -voms atlas:/atlas/ch&lt;br /&gt;
  # export AtlasSetup=/afs/cern.ch/atlas/software/dist/AtlasSetup&lt;br /&gt;
  # alias asetup=&amp;#039;source $AtlasSetup/scripts/asetup.sh&amp;#039;&lt;br /&gt;
  # cat .asetup &lt;br /&gt;
  [defaults]&lt;br /&gt;
  default32 = True&lt;br /&gt;
  briefprint = True&lt;br /&gt;
  testarea = &amp;quot;~/testarea&amp;quot;&lt;br /&gt;
  multi = True&lt;br /&gt;
  # asetup 16.6.0&lt;br /&gt;
  # export LD_LIBRARY_PATH=/terabig/atlsoft/LocalSoft/glite/glite-UI-current/lcg/lib:${LD_LIBRARY_PATH}&lt;br /&gt;
  # cat testSE.C &lt;br /&gt;
  {&lt;br /&gt;
  &lt;br /&gt;
    TFile* f = new TFile();&lt;br /&gt;
  &lt;br /&gt;
     f -&amp;gt; Open(&amp;quot;rfio:/dpm/lhep.unibe.ch/home/atlas/atlaslocalgroupdisk/group10/perf-jets/data11_7TeV/group10.perf-jets.data11_7TeV.00178109.physics_JetTauEtmiss.merge.AOD.f354_m765.rel166.v7.110329003509_EXT0/group10.perf-jets.17195_011959.EXT0._00001.qcd.root__DQ2-1301921925&amp;quot;);&lt;br /&gt;
  &lt;br /&gt;
    f -&amp;gt; ls();&lt;br /&gt;
  &lt;br /&gt;
    f -&amp;gt; Close();&lt;br /&gt;
  &lt;br /&gt;
  }&lt;br /&gt;
  # root -b testSE.C &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h4&amp;gt; Open files from within Athena &amp;lt;/h4&amp;gt;&lt;br /&gt;
* Example here...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== DPM use guide for t2k.org ====&lt;br /&gt;
&lt;br /&gt;
* Initialisation:&lt;br /&gt;
 export DPM_HOST=dpm.lhep.unibe.ch&lt;br /&gt;
 export DPNS_HOST=dpm.lhep.unibe.ch&lt;br /&gt;
 export LFC_HOST=lfc.gridpp.rl.ac.uk&lt;br /&gt;
 voms-proxy-init --voms t2k.org&lt;br /&gt;
* List of files, e.g.:&lt;br /&gt;
 lfc-ls /grid/t2k.org/nd280/production005/F/mcp/neut/2010-11-water/magnet/beamb/anal&lt;br /&gt;
* Check if file is present at LHEP, e.g.:&lt;br /&gt;
 lcg-lr lfn:/grid/t2k.org/nd280/production005/F/mcp/neut/2010-11-water/magnet/beamb/anal/oa_nt_beam_90210004-0071_z3t2ik4agm77_anal_000_prod005magnet201011waterb-bsdv01.root&lt;br /&gt;
:if &amp;quot;dpm.lhep.unibe.ch&amp;quot; is in the list, the file is at LHEP&lt;br /&gt;
* Copy file to disk, e.g.:&lt;br /&gt;
 lcg-cp srm://dpm.lhep.unibe.ch/dpm/lhep.unibe.ch/home/t2k.org/production005/F/mcp/neut/2010-11-water/magnet/beamc/anal/oa_nt_beam_90410010-0087_sfs3crv64jvl_anal_000_prod005magnet201011waterc-bsdv01.root local_file_name.root&lt;br /&gt;
&lt;br /&gt;
===== Scripts for running Highland etc. on large data sets =====&lt;br /&gt;
* To create a Highland flat tree of an entire run, use this script: [[create_flat_tree_mass.sh]]&lt;br /&gt;
&lt;br /&gt;
===== Using files in root directly (not recommended) =====&lt;br /&gt;
There are two ways to open files directly with root:&lt;br /&gt;
* Using RFIO (must be enabled while compiling root), e.g.:&lt;br /&gt;
 root -l rfio:////dpm/lhep.unibe.ch/home/t2k.org/production005/F/mcp/neut/2010-11-water/magnet/beamc/anal/oa_nt_beam_90410010-0087_sfs3crv64jvl_anal_000_prod005magnet201011waterc-bsdv01.root&lt;br /&gt;
* Using GFAL (must be enabled while compiling root), e.g.:&lt;br /&gt;
 root -l gfal:srm://dpm.lhep.unibe.ch/dpm/lhep.unibe.ch/home/t2k.org/production005/F/mcp/neut/2010-11-water/magnet/beamc/anal/oa_nt_beam_90410010-0087_sfs3crv64jvl_anal_000_prod005magnet201011waterc-bsdv01.root&lt;br /&gt;
Both methods are often quite slow compared to local file acces (2x to 10x, depending on situation). It is recommended to copy the file to local disk first using lcg-cp (see above).&lt;br /&gt;
&lt;br /&gt;
===== Administrative commands =====&lt;br /&gt;
Do not use the following commands, unless you know exactly what you are doing.&lt;br /&gt;
* Copy file to LHEP, e.g.:&lt;br /&gt;
 lcg-cp -v --vo t2k.org \&lt;br /&gt;
 srm://t2ksrm.nd280.org/nd280data/production005/F/mcp/neut/2010-11-water/magnet/beamb/anal/oa_nt_beam_90210004-0071_z3t2ik4agm77_anal_000_prod005magnet201011waterb-bsdv01.root \&lt;br /&gt;
 srm://dpm.lhep.unibe.ch/dpm/lhep.unibe.ch/home/t2k.org/production005/F/mcp/neut/2010-11-water/magnet/beamb/anal/oa_nt_beam_90210004-0071_z3t2ik4agm77_anal_000_prod005magnet201011waterb-bsdv01.root&lt;br /&gt;
* Do not use lcg-rep, as it will register the file with the t2k global catalog (which we are not supposed to do)!&lt;br /&gt;
* If you run commands in loops, add the following options to prevent it to hang from time to time:&lt;br /&gt;
 --connect-timeout 120 --sendreceive-timeout 120 --bdii-timeout 120 --srm-timeout 120&lt;br /&gt;
* Delete a file (&amp;quot;-l&amp;quot; prevents removal from the catalog), e.g.:&lt;br /&gt;
 lcg-del -l srm://dpm.lhep.unibe.ch/dpm/lhep.unibe.ch/home/t2k.org/production005/F/mcp/neut/2010-11-water/magnet/beamb/anal/oa_nt_beam_90210020-0010_neqobffjtosu_anal_000_prod005magnet201011waterb-bsdv01.root&lt;br /&gt;
&lt;br /&gt;
==== ... In progress... ====&lt;/div&gt;</summary>
		<author><name>Lhep</name></author>
	</entry>
</feed>