next up previous contents
Next: Grid Exploration Jobs Up: Managing Data with edg-rm Previous: Retrieving Files   Contents

Replicating Files

Files are replicated at user selected SEs with the replicateFile command, that expetcts as input a GUID, LFN or a SURL. The item is prefixed by guid:, lfn:, srm: as appropriate.
The following example uses the GUID returned by a list command performed on the LFN.


replicateFile by GUID
Guid=`edg-rm -i --vo=alice listGUID lfn:JJ-v01-Code.rm`
edg-rm -v --vo=alice replicateFile \
$Guid \
-d t2-se-01.to.infn.it


Note that the guid: prefix is included in the listGUID output and must be omitted in the replicateFile command. If present, the replica fails with the following error message:

$\rightarrow$ The LFN/GUID guid:guid:56c3e03d-1f58-11d8-ab78-d38fa2b63747
$\rightarrow$ is not registered in the catalog.

The command log is:

edg-replica-manager starting..
Issuing command : replicateFile
Parameters:
guid:56c3e03d-1f58-11d8-ab78-d38fa2b63747
-d
t2-se-01.to.infn.it
Destination is a host : //t2-se-01.to.infn.it
Call replica manager replicatefile function
Filesize to copy (MB) = 1.2874603E-4
copy : From     : gsiftp://adc0021.cern.ch/flatfiles/SE00/alice/
                  generated/2003/11/25/file4259968c-1f58-11d8-ab78-d38fa2b63747
copy : To       : gsiftp://t2-se-01.to.infn.it/flatfiles/SE00/alice/
                  generated/2003/12/05/file6e2170c9-2728-11d8-a917-926790b37777
copy : Protocol : gsiftp
copy : # streams: 1
Transfer took: 2153 ms.
Copy successful to : File name = gsiftp://t2-se-01.to.infn.it/flatfiles/SE00/
                                          alice/generated/2003/12/05/
                                     file6e2170c9-2728-11d8-a917-926790b37777
File size       = 135
File Owner      = -
Associated SE:
srm://t2-se-01.to.infn.it/flatfiles/SE00/alice/generated/
      2003/12/05/file6e2170c9-2728-11d8-a917-926790b37777
Replication successful.



luvisetto 2003-12-17