Usage of SE
From Begrid Wiki
Jump to navigationJump to search
Using BEGrid Storage Element
How to copy, retrieve files, create replicas and create directories on the Grid
- Export the needed variables to use the LFC catalog:
export LFC_HOST=lfc01.begrid.be export LCG_CATALOG_TYPE=lfc
- Examples
lfc-mkdir /grid/betest/yourname lfc-setcomment /grid/betest/yourname/directoryname2 "a test"
- Upload a file to the SE and register it into the catalog.
lcg-cr -v --vo betest file:<tt>pwd</tt>/filetocopy.txt -l lfn:/grid/betest/yourname/thefile -d gridce.atlantis.ugent.be
- Obtaining LFN from GUID
lcg-la --vo betest guid:guidnumber
- Copy a file from one Storage Element to another Storage Element and registers it in the LFC.
lcg-rep -d kg-se01.cc.kuleuven.ac.be -v --vo betest lfn:/grid/betest/yourname/yourfile
- List all known replicas that are associated with a particular LFN.
lcg-lr lfn:/grid/betest/yourname/thefile --vo betest
List of lfc-* commands:
lfc-chmod | Change access mode of the LFC file/directory |
---|---|
lfc-chown | Change owner and group of the LFC file/directory |
lfc-delcomment | Delete the comment associated with the file/directory |
lfc-getacl | Get file/directory access control list |
lfc-ln | Make a symbolic link to a file/directory |
lfc-ls | List file/directory entries in a directory |
lfc-mkdir | Create a directory |
lfc-rename | Rename a file/directory |
lfc-rm | Remove a file/directory |
lfc-setacl | Set file/directory access control list |
lfc-setcomment | Add/replace a comment |
List of lcg-* commands:
lcg-cr | copy and register a file |
---|---|
lcg-lr | lists the replicas for a given LFN, GUID or SURL |
lcg-lg | lists the GUID for a given LFN or SURL |
lcg-rep | copy a file from one SE to another SE and registers it in the LRC |
lcg-aa | add an alias in RMC for a given GUID |
lcg-ra | remove an alias in RMC for a given GUID |
lcg-rf | register in the LRC (and optionally in the RMC) a file residing on an SE |
lcg-uf | unregister in the LRC a file residing on an SE |
lcg-cp | copy a Grid file to a local destination |
lcg-gt | get the TURL for a given SURL and transfer protocol |
lcg-la | lists the aliases for a given LFN, GUID or SURL |