File and Replica Manipulation with LCG utilities

LCG commands are the simplest and most effective way to transfer files onto and out of the grid as well as manipulate the files when they are present on the grid. The hide much of the complexity of data management from the end user, which is a good thing!

As all the catalogs deployed in WLCG and the new LFC ones, it's no longer necessary to set the LCG_CATALOG_TYPE variable (though having it set to lfc does no harm).

Replica Management

lcg-cp  Copies a Grid file to a local destination (download).
lcg-cr  Copies a file to a SE and registers the file in the catalog (upload).
lcg-del  Deletes one file (either one replica or all replicas).
lcg-rep  Copies a file from one SE to another SE and registers it in the catalog (replicate).
lcg-gt  Gets the TURL for a given SURL and transfer protocol.
lcg-sd  Sets file status to "Done" for a given SURL in an SRM's request.

File Catalog Interaction

lcg-aa  Adds an alias in the catalog for a given GUID.
lcg-ra  Removes an alias in the catalog for a given GUID.
lcg-rf  Registers in the the catalog a file residing on an SE.
lcg-uf  Unregisters in the the catalog a file residing on an SE.
lcg-la  Lists the aliases for a given LFN, GUID or SURL.
lcg-lg  Gets the GUID for a given LFN or SURL.
lcg-lr  Lists the replicas for a given LFN, GUID or SURL.

Documentation

All of the LCG Util commands have unix man page documentation - referring to data management terms might help with exact syntax. For a discussion on how to use the commands see the LCG User Guide

Back to home page


Last modified Thu 25 May 2006 . View page history
Switch to HTTPS . Website Help . Print View . Built with GridSite 1.4.3
For more about GridPP please contact Neasan O'Neill