Notes on grid stuff

  • example grid commands:
    • lcg-ls command for a file at Caltech:
      lcg-ls -l -b -D srmv2 'srm://'
  • lcg-cp command example for this file at Caltech:
    lcg-cp  -b -D srmv2 'srm://' file:///tmp/ah/D623BA18-DE7E-DE11-9AE0-001AA00AA049.root

Examples of LFN to PFN mappings:

LFN is the logical file name (of an official CMS production file) starting with /store/... in the following table.

Site lcg-ls command tested on
T2_ES_CIEMAT lcg-ls -b -D srmv2 "srm://$LFN" 2010-08-24
T1_US_FNAL lcg-ls -b -D srmv2 "srm://$LFN" 2011-02-04, 2012-02-13
T2_BE_UCL lcg-ls -b -D srmv2 "srm://$LFN" 2012-02-27
T2_US_Florida lcg-ls -b -D srmv2 "srm://$LFN" 2014-01-08
T1_DE_KIT lcg-ls -b -D srmv2 "srm://$LFN" 2014-11-17 (dataset marked as disk only for this site in DAS)


  • listing files in CERN CASTOR from UAF:
 lcg-ls  -b -D srmv2 "srm://"

  • copying from CERN castor to uaf:
 lcg-cp --verbose -b -D srmv2 "srm://" file:/tmp/simevent_99.root

see also for some examples

  • Chris Palmer suggested the use of srmcp.

  • how to get the PFN for an LFN at a given site ?
    • go to and get the storage.xml file for the site you're interested in. E.g. for CIEMAT, this is T2_ES_CIEMAT/PhEDEx/storage.xml (note that there is another directory containing CIEMAT which is empty).
    • this file contains a mapping of regexps to physical file names. Not clear to me whether the first matching or any of the matching can be taken. I have somehow the impression that one after another is applied to produce transformations...


How can I translate a logical filename (LFN) to a physical one (PFN) ?

See the wget command example at this link in the section 'How can the data be accessed? What is the local path?'

-- AndreHolzner - 16-Apr-2010

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r9 - 2014-11-17 - AndreHolzner
    • 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-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback