Content-type: text/html
Man page of LCG-CR
LCG-CR
Section: User Commands (1)
Updated: $Date: 2009/06/26 12:01:06 $
Index
Return to Main Contents
NAME
lcg-cr - copy and register a file
SYNOPSIS
lcg-cr
[
--config config_file
] [
-d dest_file | dest_host
] [
-g guid
] [
-h,--help
] [
-D,--defaultsetype defaulttype
] [
-T,--setype setype
] [
-l lfn
] [
-P relative_path
] [
-s,--st spacetokendesc
] [
-n nbstreams
] [
--connect-timeout conntimeout
] [
--sendreceive-timeout sndtimeout
] [
--bdii-timeout bdiitimeout
] [
--srm-timeout srmtimeout
] [
--vo virtual_organization
] [
--checksum-type cksmtype
] [
--checksum
] [
-b,--nobdii
] [
-v,--verbose
] [
--version
]
src_file
DESCRIPTION
lcg-cr
copies a file to a Storage Element and registers the file in the Replica Catalog or the LFC.
The program prints the actual GUID on stdout.
- src_file
-
specifies the source file name: the protocol can be
file:
or
gsiftp:.
- dest_file
-
specifies the destination.
It can be the Storage Element fully qualified hostname or an SURL. In the latter
case, the scheme can be
sfn:
for a classical SE or
srm:.
If only the fully qualified hostname is given, a filename is generated
in the same format as with the Replica Manager.
- guid
-
specifies the Grid Unique IDentifier. If this option is not present, a GUID is
generated internally.
- lfn
-
specifies the Logical File Name associated with the file. If this option is
present, an entry is added to the Replica Metadata Catalog or the LFC.
- relative_path
-
specifies the path relative to the SARoot for the given VO.
- nbstreams
-
specifies the number of parallel streams (default 1).
- defaulttype
-
specifies the default SE type you want to use. Possible values are
none,
se,
srmv1,
srmv2,
for respectively no default type, classic SE, SRMv1, and SRMv2. But if according to the BDII the default type
is not available for this SE, it will use another type.
- setype
-
specifies the SE type you want to use for the destination file. Possible values are
none,
se,
srmv1,
srmv2,
for respectively no type, classic SE, SRMv1, and SRMv2. But if according to the BDII the default type
is not available for this SE, it will fail.
- spacetokendesc
-
specifies the space token to use with
src_file
- conntimeout
-
Sets the connect timeout, used when connecting to a remote host. The connection will be aborted
if the remote host doesn't reply after
conntimeout
seconds.
- sndtimeout
-
Sets the send/receive data timeout, used when transferring data to/from a remote host. The connection will be aborted
if no data is transfered after
sndtimeout
seconds.
- bdiitimeout
-
Sets the BDII timeout, used when searching information into BDII. The connection will be aborted
if the search is longer than
bdiitimeout
seconds.
- srmtimeout
-
Sets the SRM timeout, used when doing an asynchronous SRM request. The request will be aborted
if it is still queued after
srmtimeout
seconds.
vo
specifies the Virtual Organization the user belongs to. If it is not
specified, the environment variable LCG_GFAL_VO will be used.
- conf_file
-
This argument is currently ignored.
- cksmtype
-
is the checksum type (algorithm) to use. Possible values (case insensitive) are:
-
- NONE
-
No checksum verification
- CRC32
-
CRC32 algorithm will be used
- ADLER32
-
Adler32 algorithm will be used
- MD5
-
MD5 algorithm will be used
- SHA1
-
SHA-1 algorithm will be used
- --checksum
-
If this flag is present, verification of data integrity between source and destination files will be dine using default checksum
algorithm (Adler32). In case of failure, the destination won't be removed, but an error message will be printed.
- -b,--nobdii
-
If this flag is present, it means that you don't want to make BDII calls to get SE type. So, you must provide the type of the SE
for srm: arguments, and full endpoint in SURLs. For SE type,
defaulttype
can be used.
- -v,--verbose
-
Verbose mode. You can specify it twice for extra verbose mode.
NOTE
The environment variable LCG_GFAL_INFOSYS must point to the BDII, unless
--nobdii
option is used.
To use the RLS as catalog instead of the LFC, the environment variable
LCG_CATALOG_TYPE must explicitely be set to "edg". By default, it is set to "lfc".
If no no destination SE is specified, we use the environment variable
VO_<VO>_DEFAULT_SE, which is normally set on the Worker Node.
EXAMPLE
lcg-cr --vo dteam -d lxshare0236.cern.ch file:/etc/hosts
EXIT STATUS
This program returns 0 if the operation was successful or >0 if the operation
failed.
SEE ALSO
lcg-aa(1),
lcg-cp(1),
lcg-cr(1),
lcg-del(1),
lcg-getturls(1),
lcg-gt(1),
lcg-la(1),
lcg-lg(1),
lcg-lr(1),
lcg-ls(1),
lcg-ra(1),
lcg-rep(1),
lcg-rf(1),
lcg-sd(1),
lcg-stmd(1),
lcg-uf(1)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- NOTE
-
- EXAMPLE
-
- EXIT STATUS
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 14:16:52 GMT, July 14, 2009