You can in fact just use lcg-la on the SURL and get the catalog
entries, e.g.,
ui1-gla:~$ lcg-la --vo dteam srm://se2-gla.scotgrid.ac.uk/dpm/
scotgrid.ac.uk/home/dteam/generated/2006-05-02/filea842c449-b419-4a2d-
ae68-44aa137357f8
lfn:/grid/dteam/graeme/canned1G
And you don't need to know the catalog entry to replicate a file. You
can just do it using the SURL, e.g.,
ui1-gla:~$ lcg-rep -v --vo dteam -d srm.epcc.ed.ac.uk srm://se2-
gla.scotgrid.ac.uk/dpm/scotgrid.ac.uk/home/dteam/generated/2006-05-02/
filea842c449-b419-4a2d-ae68-44aa137357f8
Using grid catalog type: lfc
Using grid catalog : prod-lfc-shared-central.cern.ch
Source URL: srm://se2-gla.scotgrid.ac.uk/dpm/scotgrid.ac.uk/home/
dteam/generated/2006-05-02/filea842c449-b419-4a2d-ae68-44aa137357f8
File size: 1000000000
VO name: dteam
Destination specified: srm.epcc.ed.ac.uk
Source URL for copy: gsiftp://pool1-gla.scotgrid.ac.uk/pool1-
gla.scotgrid.ac.uk:/gridstorage/c1/dteam/2006-05-02/filea842c449-
b419-4a2d-ae68-44aa137357f8.62147.0
Destination URL for copy: gsiftp://dcache.epcc.ed.ac.uk:2811//pnfs/
epcc.ed.ac.uk/data/dteam/generated/2006-05-04/
file306b587b-687f-4975-8317-1703f80b5fd9
# streams: 1
# set timeout to 0
955449344 bytes 18476.36 KB/sec avg 19028.91 KB/sec inst
Transfer took 56030 ms
Destination URL registered in LRC: srm://srm.epcc.ed.ac.uk/pnfs/
epcc.ed.ac.uk/data/dteam/generated/2006-05-04/
file306b587b-687f-4975-8317-1703f80b5fd9
Of course, if there isn't a catalog entry for a file in an SE you can
add one with lcg-rf (register file).
One of the nice things about the LFC is that you don't need GUIDs so
often (as it's not a split catalog).
Cheers
Graeme
On 4 May 2006, at 13:05, Steve Traylen wrote:
> On Thu, May 04, 2006 at 12:43:34PM +0100 or thereabouts, brian
> davies wrote:
>> how do i find out its catalogue entry?
>> ie i have a file
>> /pnfs/lancs.ac.uk/data/atlas/generated/2006-05-04/file1 which i want
>> to replicate. how do i find out its catalogue entry?
>> cheers brian
>
> You can get a guid from a SURL
>
> $ lcg-lg --vo dteam srm://dcache.gridpp.rl.ac.uk/pnfs/
> gridpp.rl.ac.uk/data/dteam/generated/2006-05-04/file292ee910-
> d6bd-4dc1-98be-97d40e17384e
> guid:99a49952-7821-4bf0-a40f-b2431a3254e8
>
> and you can get an lfn from a a SURL.
>
> lcg-la --vo dteam srm://dcache.gridpp.rl.ac.uk/pnfs/gridpp.rl.ac.uk/
> data/dteam/generated/2006-05-04/file292ee910-
> d6bd-4dc1-98be-97d40e17384e
> lfn:/grid/dteam/generated/2006-05-04/
> file-1a4d7540-7b08-4fb8-98f8-0fdbefb4a7e4
>
>
>
> --
> Steve Traylen
> [log in to unmask]
> http://www.gridpp.ac.uk/
--
Dr Graeme Stewart - http://wiki.gridpp.ac.uk/wiki/User:Graeme_stewart
GridPP DM Wiki - http://wiki.gridpp.ac.uk/wiki/Data_Management
|