LFC Practical
From MediaWiki
(Difference between revisions)
Line 17: | Line 17: | ||
Sledi lista korisnih naredbi: | Sledi lista korisnih naredbi: | ||
- | * lcg-cr – | + | * lcg-cr – copies file to SE and register in catalog |
- | * lcg-cp – | + | * lcg-cp – copies file from grid to local destination |
- | * lcg-del – | + | * lcg-del – delete one file from grid |
- | * lcg-rep – | + | * lcg-rep – makes file replica on other SE |
- | * lcg-aa – | + | * lcg-aa – makes new alias (new LFN) in catalog for given GUID or existing LFN |
- | * lcg-ra – | + | * lcg-ra – delete existing alias for given GUID |
- | * lcg-rf – | + | * lcg-rf – register existing file on SE into catalog |
- | * lcg-uf – | + | * lcg-uf – delete register info of file on SE from catalog |
- | * lcg-la – | + | * lcg-la – LFN prints out all aliases for given SURL, GUID or LFN |
- | * lcg-lg – | + | * lcg-lg – prints out GUID for given LFN or SURL |
- | * lcg-lr – | + | * lcg-lr – prints out all replicas for given GUID, SURL or LFN |
- | * lfc-mkdir – | + | * lfc-mkdir – create new directory in catalog |
- | * lfc-chmod – | + | * lfc-chmod – changes permissions for using a file or directory |
- | * lfc-chown – | + | * lfc-chown – changes owner of file or directory |
- | * lfc-setcomment – | + | * lfc-setcomment – adds comment on file |
- | * lfc-delcomment – | + | * lfc-delcomment – deletes comment |
- | * lfc-ln -s – | + | * lfc-ln -s – creates symbolic link on file/directory |
- | * lfc-ls – | + | * lfc-ls – lists content of given file or directory |
- | * lfc-rm – | + | * lfc-rm – deletes file/directory from catalog |
- | * lfc-rename – | + | * lfc-rename – renames fail/directory |
Revision as of 11:19, 8 December 2011
LHC Computing Grid i LCG File Catalog
- Da bi rad sa LFC-om bio omogućen potrebno je podesiti promenljive koje definišu okruženje (environmental variables):
- $LFC_HOST (adresa LFC servera)
- $LCG_CATALOG_TYPE (tip kataloga)
- Možete proveriti da li su promenljive već definisane sa
- echo $LFC_HOST
- echo $LCG_CATALOG_TYPE
- Ukoliko nisu definisane potrebno je definisati ih sa
- export LFC_HOST=grid02.rcub.bg.ac.yu
- export LCG_CATALOG_TYPE=lfc
- Lista dostupnih LFC servera dobija se naredbom
- lcg-infosites --vo sgdemo lfc
- Na isti način mozete izlistati i dostupne SE,CE, najbliži CE nekom SE, RB... (pogledati man)
- Potrebno je kreirati proxy za odgovarajuću virtuelnu organizaciju (iz nekog zasad nas LFC_HOST neće da radi sa AEGIS organizacijom pa ćemo koristiti sgdemo)
Sledi lista korisnih naredbi:
- lcg-cr – copies file to SE and register in catalog
- lcg-cp – copies file from grid to local destination
- lcg-del – delete one file from grid
- lcg-rep – makes file replica on other SE
- lcg-aa – makes new alias (new LFN) in catalog for given GUID or existing LFN
- lcg-ra – delete existing alias for given GUID
- lcg-rf – register existing file on SE into catalog
- lcg-uf – delete register info of file on SE from catalog
- lcg-la – LFN prints out all aliases for given SURL, GUID or LFN
- lcg-lg – prints out GUID for given LFN or SURL
- lcg-lr – prints out all replicas for given GUID, SURL or LFN
- lfc-mkdir – create new directory in catalog
- lfc-chmod – changes permissions for using a file or directory
- lfc-chown – changes owner of file or directory
- lfc-setcomment – adds comment on file
- lfc-delcomment – deletes comment
- lfc-ln -s – creates symbolic link on file/directory
- lfc-ls – lists content of given file or directory
- lfc-rm – deletes file/directory from catalog
- lfc-rename – renames fail/directory
Zadatak:
- Kreirati direktorijum sa vašim imenom u katalogu u direktorijumu /grid/sgdemo/
- Izlistati sadržaj direktorijuma /grid/sgdemo
- Promeniti prava nad tim direktorijumom tako da drugi korisnici nemaju “write permissions”
- Izlistati dostupne SE
- Kreirati fajl file.txt
- Kopirati file.txt na neki od dostupnih SE i registrovati ga u kreiranom direktorijumu (iz tačke 1)
- Izlistati informacije o tom fajla u katalogu
- Napraviti repliku tog fajla na jos nekom SE-u
- Napraviti jos jedan alias za file.txt
- Izlistati informacije o tom aliasu
- Preimenovati taj alias
- Pronaći GUID za zadati alias
- Pronaći SURL za zadati GUID
- Registrovati fajl sa zadatim SURL-om
- zlistati sve replike za zadati LFN
- Izlistati sve aliase za zadati LFN
- Prebaciti fajl sa SE na lokalni računar
- Izbrisati fajl sa svih SE sve aliase
Sintaksa:
- lcg-cr [-d dest_file | dest_host][-h | --help][-l lfn][-v | --verbose] [--vo vo] src_file
- lcg-cp [--vo vo] src_file dest_file
- lcg-del [-a] [-s se] [--vo vo] file
- lcg-rep [-d dest_file | dest_host] [--vo vo] src_file
- lcg-aa [--vo vo] guid lfn
- lcg-ra [--vo vo] guid lfn
- lcg-rf [-g guid][-l lfn] [-v | --verbose] [--vo vo] surl
- lcg-uf [--vo vo] guid surl
- lcg-la [--vo vo] file
- lcg-lg [--vo vo] lfn_or_surl
- lcg-lr [--vo vo] file
- lfc-mkdir dirname
- lfc-chmod mode file
- lfc-chown [-h] [-R] owner[:group] file
- lfc-setcomment file comment
- lfc-delcomment file
- lfc-ln -s file [link] ili lfc-ln -s file...directory
- lfc-ls [-cdilRTu] [--class] [--comment] [--deleted] path
- lfc-rm [-f] [-i] file ili lfc-rm [-f] [-i] -r dirname...
- lfc-rename oldname newname