FP6−2004−Infrastructures−6-SSA-026409 E-infrastructure shared between Europe and Latin America Data Management Hands-on Tony Calanducci.

Slides:



Advertisements
Similar presentations
Workflows over Grid-based Web services General framework and a practical case in structural biology gLite 3.0 Data Management Hands-on David García Aristegui.
Advertisements

Grid Data Management Assaf Gottlieb - Israeli Grid NA3 Team EGEE is a project funded by the European Union under contract IST EGEE tutorial,
EGEE is a project funded by the European Union under contract IST Data Services Valeria Ardizzone EGEE NA4 Generic Applications INFN Catania.
E-science grid facility for Europe and Latin America A Data Access Policy based on VOMS attributes in the Secure Storage Service Diego Scardaci.
INFSO-RI Enabling Grids for E-sciencE Practicals on VOMS and MyProxy Emidio Giorgio INFN Retreat between GILDA and ESR VO, Bratislava,
Ninth EELA Tutorial for Users and Managers E-infrastructure shared between Europe and Latin America LFC Server Installation and Configuration.
БАЗОВЫЕ СРЕДСТВА РАБОТЫ С ФАЙЛАМИ В GRID. The gLite3 Architecture Security Service: Grid Security Infrastructure (GSI) Secure Sockets Layer (SSL) communication.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Luciano Díaz ICN-UNAM Based on Domenico.
EGEE-II INFSO-RI Enabling Grids for E-sciencE gLite Data Management System Yaodong Cheng CC-IHEP, Chinese Academy.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America GENIUS server installation and configuration.
EGEE-II INFSO-RI Enabling Grids for E-sciencE gLite Demo Yaodong Cheng CC-IHEP, Chinese Academy of Sciences The.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Data Management Hands-on Claudio Cherubino.
The LCG File Catalog (LFC) Jean-Philippe Baud – Sophie Lemaitre IT-GD, CERN May 2005.
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE middleware Data Management in gLite.
EGEE-III INFSO-RI Enabling Grids for E-sciencE Nov. 18, EGEE and gLite are registered trademarks gLite Middleware Usage Dusan.
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE middleware: gLite Data Management EGEE Tutorial 23rd APAN Meeting, Manila Jan.
Enabling Grids for E-sciencE Introduction Data Management Jan Just Keijser Nikhef Grid Tutorial, November 2008.
E-infrastructure shared between Europe and Latin America Security Hands-on Christian Grunfeld, UNLP 8th EELA Tutorial, La Plata, 11/12-12/12,2006.
E-infrastructure shared between Europe and Latin America FP6−2004−Infrastructures−6-SSA Hands-on on security Pedro Rausch IF - UFRJ.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Hands-on on data management Tony Calanducci.
E-science grid facility for Europe and Latin America Data Management Services E2GRIS1 Rafael Silva – UFCG (Brazil) Universidade Federal.
INFSO-RI Enabling Grids for E-sciencE Αthanasia Asiki Computing Systems Laboratory, National Technical.
Managing Data DIRAC Project. Outline  Data management components  Storage Elements  File Catalogs  DIRAC conventions for user data  Data operation.
4th EELA TUTORIAL - USERS AND SYSTEM ADMINISTRATORS E-infrastructure shared between Europe and Latin America Security Hands-on Vanessa.
SEE-GRID-SCI Storage Element Installation and Configuration Branimir Ackovic Institute of Physics Serbia The SEE-GRID-SCI.
INFSO-RI Enabling Grids for E-sciencE Introduction Data Management Ron Trompert SARA Grid Tutorial, September 2007.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Grid2Win: Porting of gLite middleware to.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Practicals on Security Miguel Cárdenas Montes.
E-infrastructure shared between Europe and Latin America Security Hands-on Alexandre Duarte CERN Fifth EELA Tutorial Santiago, 06/09-07/09,2006.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America gLite Data Management System Giuseppe Andronico.
INFSO-RI Enabling Grids for E-sciencE GILDA Praticals Data management system GILDA Tutors INFN Catania EGEE Tutorial Roma 03.November.2005.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America LFC Server Installation and Configuration.
FP7-INFRA Enabling Grids for E-sciencE EGEE Induction Grid training for users, Institute of Physics Belgrade, Serbia Sep. 19, 2008.
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks Data management in LCG and EGEE David Smith.
EGEE-II INFSO-RI Enabling Grids for E-sciencE Command Line Grid Programming Spiros Spirou Greek Application Support Team NCSR “Demokritos”
EGEE-II INFSO-RI Enabling Grids for E-sciencE Data management in EGEE.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Data Management Hands-on Juan Eduardo Murrieta.
12th EELA Tutorial for Users and Managers E-infrastructure shared between Europe and Latin America LFC Server Installation and Configuration.
1 DIRAC Data Management Components A.Tsaregorodtsev, CPPM, Marseille DIRAC review panel meeting, 15 November 2005, CERN.
INFSO-RI Enabling Grids for E-sciencE Data Management + Practical Ruediger Berlich / Forschungszentrum Karlsruhe Mike Mineter /
EGEE-II INFSO-RI Enabling Grids for E-sciencE Architecture of LHC File Catalog Valeria Ardizzone INFN Catania – EGEE-II NA3/NA4.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Algiers, EUMED/Epikh Application Porting Tutorial, 2010/07/04.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) LFC Installation and Configuration Dong Xu IHEP,
GRID commands lines Original presentation from David Bouvet CC/IN2P3/CNRS.
Grid Data Management Assaf Gottlieb Tel-Aviv University assafgot tau.ac.il EGEE is a project funded by the European Union under contract IST
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) gLite Data Management Maha Metawei
INFSO-RI Enabling Grids for E-sciencE Practicals on LFC and gLite DMS Tony Calanducci Emidio Giorgio INFN Retreat between GILDA.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America LFC Server Installation and Configuration.
Scuola Grid INFN, Trieste, 1-12 Dic Managing Confidential Data in the gLite Middleware – The Secure Storage.
Grid2Win Porting of gLite middleware to Windows XP platform
LFC Server Installation & Configuration
gLite Basic APIs Christos Filippidis
Classic Storage Element
Java API del Logical File Catalog (LFC)
Hints for DPM Administration
Practicals on VOMS and MyProxy
The gLite Data Management System
gLite 1.4. Data Mangement Exercises
Scuola Grid INFN, Martina Franca, Nov
gLite Data management system overview
The gLite API – Part II Giuseppe LA ROCCA ACGRID-II School
Hands-On Session: Data Management
Data Management in Release 2
Riccardo Bruno, Salvatore Scifo gLite - Tutorial Catania, dd.mm.yyyy
Data Management Ouafa Bentaleb CERIST, Algeria
Data services in gLite “s” gLite and LCG.
EGEE Middleware: gLite Information Systems (IS)
Architecture of the gLite Data Management System
gLite Data and Metadata Management
Data Management system in gLite middleware
Presentation transcript:

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Data Management Hands-on Tony Calanducci INFN Catania First Latin American EELA Tutorial Mèrida - Venezuela, 27-29th April 2006

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Outline Introduction to LCG File Catalogue (LFC) LFC and lcg_utils hands-on LFC References

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April User and programs produce and require data Data may be stored in Grid datasets (files) –Located in Storage Elements (SEs) –Several replicas of one file in different sites –Accessible by Grid users and applications from “anywhere” –Locatable by the WMS (data requirements in JDL) –Data may be copied from/to local filesystems (WNs, UIs) to the Grid Why File Catalogs are used? –They keep track of the location of copies (replicas) of Grid files –They provide DM tools and APIs through which users and grid services can deal with files File Catalog Motivations

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Logical File Name (LFN) –An alias created by a user to refer to some item of data, e.g. “lfn:cms/ /run2/track1” Globally Unique Identifier (GUID) –A non-human-readable unique identifier for an item of data, e.g. “guid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6” Site URL (SURL) (or Physical File Name (PFN) or Site FN) –The location of an actual piece of data on a storage system, e.g. “srm://pcrd24.cern.ch/flatfiles/cms/output10_1” (SRM) “sfn://lxshare0209.cern.ch/data/alice/ntuples.dat” (Classic SE) Transport URL (TURL) –Temporary locator of a replica + access protocol: understood by a SE, e.g. “rfio://lxshare0209.cern.ch//data/alice/ntuples.dat” Name conventions

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April LFC features –Hierarchical namespace –Integrated GSI Authentication + Authorization –Access Control Lists (Unix Permissions and POSIX ACLs) LFN acts as main key in the database. It has: –Symbolic links to it –Unique Identifier (GUID) –System metadata –Information on replicas –One field of user metadata The LFC

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Practicals on LFC and lcg-utils

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Set up your environment Check the following environment variables, used to specify the catalog type and its location, are set up properly:  export LCG_CATALOG_TYPE=lfc  export LFC_HOST=lfc.cecalc.ula.ve Ensure you have created a proxy certificate and it is still valid. If not create it by:  voms-proxy-init --voms gilda –Remember: The Passphrase is MERIDA

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Listing the entries of a LFC directory lfc-ls [-cdiLlRTu] [--comment] path… where path specifies the LFC pathname (mandatory) –Remember that LFC has a directory tree structure –/grid/ / –All members of a given VO have read-write permissions under their directory –-l (it is a lowercase “L”) outputs long listing –-R lists the contents of directories recursively (don’t use it so often!) –You can set LFC_HOME to use relative paths LFC_HOME=/grid/gilda/myDir  /grid/gilda/myDir/myFile becomes myFile LFC Catalog commands Defined by the user LFC Namespace

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April lfc-ls examples $ lfc-ls –l /grid/gilda/tutorial... drwxrwxr-x Mar 15 16:53 lookee drwxrwxr-x Mar 15 16:54 miacartella dr--rwxrwx Mar 15 16:50 myfolder drwxrwxr-x Mar 15 16:51 myfolder2 -rwxrwxr-x Mar 15 17:06 nome.txt lrwxrwxrwx Mar 15 17:11 nome2.txt -> /grid/gilda/tutorial/nome.txt drwxrwxr-x Mar 15 16:53 p19 drwxrwxr-x Mar 15 17:13 pippo -rwxrwxr-x Mar 15 17:18 pippopro.txt drwxrwxr-x Mar 15 17:00 pollo... $ export LFC_HOME=/grid/gilda/tutorial $ lfc-ls –l nome.txt -rwxrwxr-x Mar 15 17:06 /grid/gilda/tutorial/nome.txt

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April LFC Catalog commands Creating a symbolic link lfc-ln -s file linkname lfc-ln -s directory linkname Create a link to the specified file or directory with linkname –Example: $ lfc-ln -s /grid/gilda/tutorial/prova.txt /grid/gilda/tutorial/linkToProva.txt Let’s check the link using lfc-ls with long listing (-l) $ lfc-ls -l /grid/gilda/tutorial lrwxrwxrwx Apr 03 11:42 linkToProva.txt -> /grid/gilda/tutorial/prova.txt Original File Symbolic link

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April LFC Catalog commands Creating directories in the LFC lfc-mkdir [-m mode] [-p] path... Where path specifies the LFC pathname Remember that while registering a new file (using lcg-cr, for example) the corresponding destination directory must be created in the catalog before Examples: $ lfc-mkdir /grid/gilda/tutorial/Examples You can just check the directory with: $ lfc-ls -l /grid/gilda/tutorial

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April LFC Catalog commands Adding/deleting metadata information lfc-setcomment path comment lfc-delcomment path lfc-setcomment adds/replaces a comment associated with a file/directory in the LFC Catalog lfc-delcomment deletes a comment previously added Example: lfc-setcomment /grid/gilda/tutorial/hello.txt ‘Hello World!’ Check your job with.. lfc-ls --comment /grid/gilda/tutorial/hello.txt /grid/gilda/catania hello.txt Hello World!

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Example: lfc-delcomment /grid/gilda/tutorial/hello.txt Check if it was successfull with.. lfc-ls –l --comment /grid/gilda/tutorial/hello.txt -rw-rw-r Apr 03 11:23 /grid/gilda/catania/hello.txt LFC Catalog commands

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Hands-on Session Exercise No.1: –Log into glite-tutor.ct.infn.it and initialize your proxy credentials if not already done –check that your environment variables are set up properly to use lfc.cecalc.ula.ve catalog –have a look inside the catalog –create a sub-directory, under /grid/gilda/merida, with your surname –put inside the just created dir a link to an existing file (from files in other directories) –add a comment to that file and verify it

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April LFC Catalog commands lfc-chmodChange access mode of the LFC file/directory lfc-chownChange owner and group of the LFC file-directory lfc-delcommentDelete the comment associated with the file/directory lfc-getaclGet file/directory access control lists lfc-lnMake a symbolic link to a file/directory lfc-lsList file/directory entries in a directory lfc-mkdirCreate a directory lfc-renameRename a file/directory lfc-rmRemove a file/directory lfc-setaclSet file/directory access control lists lfc-setcommentAdd/replace a comment Summary of the LFC Catalog commands

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April lcg-utils The LCG Data Management tools (usually called lcg- utils) allow users to copy files between UI, CE, WN and a SE, to register entries in the File Catalogs and replicate files between SEs. Check if LCG_GFAL_INFOSYS environment variable is correctly set to the local GILDA Information Index (BDII) –export LCG_GFAL_INFOSYS=bdii.cecalc.ula.ve:2170

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April lcg-utils: lcg-cr Upload a file to a SE and register it into the catalog lcg-cr -d dest_file | dest_host -l lfn [-g guid] [-l lfn] [-v | --verbose] --vo vo src_file where –dest_host is the fully qualified hostname of the destination SE –dest_file is a valid SURL (both sfn:// or srm:// format are valid) –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 –vo specifies the Virtual Organization the user belongs to –src_file specifies the source file name: the protocol can be file:/// or gsiftp:///

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April lcg-utils: lcg-cr To discover which SEs the user is allowed to use, remember you can use lcg-infosites command. lcg-infosites --vo gilda se The output is a list of SEs and related information on available/used space lcg-cr usage example: $ lcg-cr -v -d life006.dft.unipa.it -l lfn:/grid/gilda/tutorial/note.txt --vo gilda file:///home/tcaland/note.txt Using grid catalog type: lfc Using grid catalog : lfc.trigrid.it Source URL: file:///home/tcaland/note.txt File size: 279 VO name: gilda Destination specified: life006.dft.unipa.it Destination URL for copy: gsiftp://life006.dft.unipa.it/flatfiles/SE00/gilda/generated/ /file2cc930b1-c61f-4747-b55a-bc521c93622b # streams: 1 # set timeout to 0 seconds Alias registered in Catalog: lfn:/grid/gilda/tutorial/note.txt 279 bytes 0.12 KB/sec avg 0.12 KB/sec inst Transfer took ms Destination URL registered in Catalog: sfn://life006.dft.unipa.it/flatfiles/SE00/gilda/generated/ /file2cc930b1-c61f-4747-b55a-bc521c93622b guid:aa5952f7-27b8-4acc-b6ee-0031af0a0f19

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April lcg-utils: lcg-aa and lcg-la Adding an alias for a given GUID lcg-aa --vo vo guid lfn where –vo specifies the Virtual Organization the user belongs to –guid specifies the Grid Unique Identifier of the file you want to add the alias to –lfn specifies the new alias Example: $ lcg-aa --vo gilda guid:aa5952f7-27b8-4acc-b6ee-0031af0a0f19 lfn:/grid/gilda/tutorial/aliasToNote.txt To check if the previous command was successful, you can use lcg- la command to list the aliases for a given LFN, GUID or SURL $ lcg-la --vo gilda lfn:/grid/gilda/tutorial/aliasToNote.txt lfn:/grid/gilda/tutorial/note.txt lfn:/grid/gilda/tutorial/aliasToNote.txt

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Hands-on session Exercise No.2: –verify that your LCG_GFAL_INFOSYS is correctly set up –create a dummy file –check the available storage elements –copy and register the previous created file into your previously created dir –add an alias to the just uploaded file –check if the alias was assigned correctly

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April lcg-utils commands for replicas (I) Copying a file from one SE to another one and register it in the Catalog lcg-rep -d dest_file | dest_host [-v | --verbose] --vo vo src_file where –dest_host is the fully qualified hostname of the destination SE –dest_file is a valid SURL (both sfn:// or srm:// are valid) –vo specifies the Virtual Organization the user belongs to –src_file specifies the source file name: the protocol can be LFN, GUID or SURL. An SURL scheme can be sfn: for a classical SE or srm : $ lcg-rep -v -d grid009.ct.infn.it --vo gilda lfn:/grid/gilda/tutorial/note.txt Using grid catalog type: lfc Using grid catalog : lfc.trigrid.it Source URL: lfn:/grid/gilda/tutorial/note.txt File size: 279 VO name: gilda Destination specified: grid009.ct.infn.it Source URL for copy: gsiftp://gildase.oact.inaf.it/flatfiles/SE00/gilda/generated/ /file02c844ad db-a347-75ed3003c11e Destination URL for copy: gsiftp://grid009.ct.infn.it/flatfiles/SE00/gilda/generated/ /file1e0415e bc-947a f69dc4 # streams: 1 # set timeout to 0 0 bytes 0.00 KB/sec avg 0.00 KB/sec inst Transfer took 2020 ms Destination URL registered in LRC: sfn://grid009.ct.infn.it/flatfiles/SE00/gilda/generated/ /file1e0415e bc-947a f69dc4

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April lcg-utils commands for replicas (II) Listing of replicas for a given LFN, GUID or SURL lcg-lr --vo vo file where –vo specifies the Virtual Organization the user belongs to –file specifies the Logical File Name, the Grid Unique IDentifier or the Site URL. An SURL scheme can be sfn: for a classical SE or srm: Example: $ lcg-lr --vo gilda lfn:/grid/gilda/tutorial/note.txt sfn://gildase.oact.inaf.it/flatfiles/SE00/gilda/generated/ /file02c844ad db-a347-75ed3003c11e sfn://grid009.ct.infn.it/flatfiles/SE00/gilda/generated/ /file1e0415e bc- 947a f69dc4 sfn://life006.dft.unipa.it/flatfiles/SE00/gilda/generated/ /file2cc930b1-c61f b55a-bc521c93622b or we got the same output using its GUID $ lcg-lr --vo gilda guid:aa5952f7-27b8-4acc-b6ee-0031af0a0f19

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April lcg-utils commands for replicas (III) Deleting replicas lcg-del [ -a ] | [ -s se ] [ -v | --verbose ] --vo vo file where –a is used to delete all replicas of the given file –se specifies the SE from which you want to remove the replica –vo specifies the Virtual Organization the user belongs to –file specifies the Logical File Name, the Grid Unique IDentifier or the Site URL. An SURL scheme can be sfn: for a classical SE or srm:. Example: delete one replica $ lcg-del --vo gilda -s grid009.ct.infn.it lfn:/grid/gilda/tutorial/note.txt delete all the replicas $ lcg-del -a --vo gilda lfn:/grid/gilda/tutorial/note.txt let’s check if the previous command was successful $ lcg-lr --vo gilda lfn:/grid/gilda/tutorial/note.txt lcg_lr: No such file or directory or by lfs-ls /grid/gilda/tutorial (you will not see anymore note.txt and its alias)

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April lcg-utils: lcg-cp Downloading a Grid file in a SE to a local destination lcg-cp [ -v | --verbose ] --vo vo src_file dest_file where –vo specifies the Virtual Organization the user belongs to –src_file specifies the source file name: the protocol can be LFN, GUID, SURL or local file. An SURL scheme can be sfn: for a classical SE or srm: –dest_file specifies the destination. The protocol can be file:/// or gsiftp:/// Example: $ lcg-cp --vo gilda lfn:/grid/gilda/tutorial/note.txt file:/home/tcaland/note2.txt Using grid catalog type: lfc Using grid catalog : lfc.trigrid.it Source URL: lfn:/grid/gilda/tutorial/note.txt File size: 279 VO name: gilda Source URL for copy: gsiftp://gildase.oact.inaf.it/flatfiles/SE00/gilda/generated/ /file02c844ad db-a347-75ed3003c11e Destination URL: file:/home/tcaland/note2.txt # streams: 1 # set timeout to 0 (seconds) 0 bytes 0.00 KB/sec avg 0.00 KB/sec inst Transfer took 1030 ms

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Hands-on session Exercise No.3: –Create two replicas of the file you previously uploaded (you could also use the alias to point it out) –Check if the operation was successful –Download the file back in your UI –Delete just one replica and verify that –Delete all the replicas and verify that –Verify if the entry is still into the catalog

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Handling entries permissions (I) Get LFC entries (file/directories) permissions and ACLs –lfc-getacl path... where path is a LFC file or directory Example: $ lcg-getacl /grid/gilda/tutorial # file: /grid/gilda/tutorial # owner: /C=IT/O=GILDA/OU=Personal # group: gilda user::rwx group::rwx #effective:rwx other::r-x default:user::rwx default:group::rwx default:other::r-x

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Handling entries permissions (II) Change the permission of a file/directory lfc-chmod absolute_mode path... where –absolute_path is the permission pattern expressed in octal mode –path is a LFC file or directory Example: $ lfc-chmod 750 /grid/gilda/tutorial/note.txt $ lfc-getacl /grid/gilda/tutorial/note.txt # file: /grid/gilda/tutorial/note.txt # owner: /C=IT/O=GILDA/OU=Personal Certificate/L=INFN Catania/CN=Tony # group: gilda user::rwx group::r-x #effective:r-x other::---

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Setting ACLs (I) Set LFC directory/file access control lists with lfc-setacl [-d] [-m] [-s] acl_entries path... where –acl_entries is a comma separated list of entries. Each entry has colon separated fields: ACL type, id (uid or gid), permission. The entries look like: user::perm user:uid:perm group::perm group:gid:perm mask:perm other:perm default:user::perm default:user:uid:perm default:group::perm default:group:gid:perm default:mask:perm default:other:perm The ACL type can be abbreviated with the first letter user and group -> owner permission user:gid and group:gid -> specific users and groups mask -> maximum permissions to specific users/groups default permissions (only for a directory) are inherited by the files or sub-directories of that dir

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Setting ACLs (II) –path specifies the LFC pathname –uid can be given as the DN or the corresponding numeric id. –gid can be given as the VO name or the corresponding numeric id. –perm can be expressed as a combination of characters rwx- or as a value between 0 and 7. OPTIONS -d remove ACL entries. The "perm" field is ignored. -m modify existing ACL entries or add new entries. -s set the ACL entries. The complete set of ACL entries is replaced.

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April ACLs example Example: $ lfc-setacl -m u:'/C=IT/O=GILDA/OU=Personal Certificate/L=INFN/CN=Diego /grid/gilda/tutorial/note.txt $ lfc-getacl /grid/gilda/tutorial/note.txt # file: /grid/gilda/tutorial/note.txt # owner: /C=IT/O=GILDA/OU=Personal Certificate/L=INFN Catania/CN=Tony # group: gilda user::rwx user:/C=IT/O=GILDA/OU=Personal Certificate/L=INFN/CN=Diego #effective:rwx group::r-x #effective:r-x group:trigrid:r-x #effective:r-x mask::rwx other::---

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Exercise No. 4 Create an entry in your working directory. Give a look to the default permission of it. Change the permission in a way that only you (the owner) can delete the entry Ask your neighbor to delete that (he should not be able) Ask again your neighbor his DN and add it as an ACL entry granting full permission. Ask now to delete it (it should be able to do that now) – delete with lcg-del -s STORAGEHOST

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Practicals on gLite File Transfer Service (FTS)

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April glite-transfer-channel-list CHANNEL CHANNEL... List the available channels for data transfer. –If one or more CHANNELs are given on the command line (and you have CHANNEL ADMINISTRATOR rights), detailed information about the specified channels are listed. Otherwise, without any arguments, you will get the names of all defined channels. > glite-transfer-channel-list channelCtCnaf Channel: channelCtCnaf Between: ct.infn.it and cnaf.infn.it State: Active Contact: Bandwidth: 1024 Nominal throughput: 1024 Number of files: 1, streams: 10 Number of VO shares: 1 VO 'gilda' share is: 100 gLite FTS: channel informations

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April glite-transfer-submit SOURCE-SURL DEST-SURL | -f FILE It returns the ID of the job by which it can be monitored. The command can be invoked in two different ways: either by specifying the source and the destination SURL or by giving the name of a file using the -f option which contains source and destination SURL pairs, one per line, separated by whitespace. Whitespace in the names of the SURLs needs to be protected with a backslash \. Data transfer job submission

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Additional available options are: -bBlocking mode. Don't return an ID but simply block until the transfer has been successfully carried out. -i TIME Interval between status calls in blocking call. Works only together with -b. The TIME parameter has to be given in seconds. -p PASSWORD The MyProxy password to be sent with the job. -m SERVER Use the given MyProxy server. -f FILE The file to be read (a pair of SURLs per line, separated by whitespace). If the FILE is given as - (a dash) then stdio is read. glite-transfer-submit options

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April >glite-transfer-status JOBID It prints the status of the given job id request. Usage: glite-transfer-status [options] JOBID [JOBID...] Available options: -h Print this help text and exit. -q Quiet operation. -s URL Use the transfer service at the specified URL. -v Print details about the service. --verbose Be more verbose. --source SSITE Specify source site name --dest DSITE Specify destination site name -V Print the version number and exit. -l List status for all files Monitoring the job transfer’s status

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April >glite-url-copy [options] sourceSURL destSURL This command can be used to test SRM - SRM transfer directly. OPTIONS -help | -usage Print help. -version Print the version of this program. -vb | -verbose during the transfer, display the number of bytes transferred and the transfer rate per second. -nodcau | -no-data-channel-authentication turn off data channel authentication for ftp transfers. SRM - SRM transfer

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Make sure you have a valid proxy, otherwise initialize it : > voms-proxy-info -all Couldn't find a valid proxy. > voms-proxy-init --voms gilda Store your credential on a myproxy server. The credential must be created with the -d option. > myproxy-init -s grid001.ct.infn.it -d Exercise: preliminar

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Register the file on a Storage Element of your choice, but you must be sure that this SE implements SRM interface (aliserv6.ct.infn.it or egee016.cnaf.infn.it). [glite-ui] /home/merida18 > lcg-cr --vo gilda -v -l lfn:/grid/gilda/tony/start_hostname.sh -d aliserv6.ct.infn.it file:/home/merida18/start_hostname.sh Using grid catalog type: lfc Using grid catalog : lfc.cecalc.ula.ve Source URL: file:/home/merida18/start_hostname.sh File size: 31 VO name: gilda Destination specified: aliserv6.ct.infn.it Destination URL for copy: gsiftp://aliserv6.ct.infn.it/aliserv6:/data01/gilda/ /file742f27e af6b2d0a60de # streams: 1 # set timeout to 0 seconds Alias registered in Catalog: lfn:/grid/gilda/tony/start_hostname.sh 31 bytes 0.00 KB/sec avg 0.00 KB/sec inst Transfer took ms Destination URL registered in Catalog: srm://aliserv6.ct.infn.it/dpm/ct.infn.it/home/gilda/generated/ /file742f27e af6b2d0a60de guid:540c506b-b448-4ff d56b6f5b06 Register a file on a SRM Storage Element

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April In order to replicate the file, you must know the file SURL, because you have to specify the source SURL and the destination one. You can obtain the source URL from lcg-lr command: [glite-ui] /home/merida18 > lcg-lr --vo gilda lfn:/grid/gilda/tony/start_hostname.sh srm://aliserv6.ct.infn.it/dpm/ct.infn.it/hom e/gilda/generated/ /file742f27e af6b2d0a60de Get the SURL of the saved file

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April Before submitting, you may want to list the channel available for file transfer. This is important because if the couple of SE that you are using for file transfer it's not covered, the transfer will fail. You can use the glite- transfer-channel-list command: >export CHAN= > glite-transfer-channel-list -s $CHAN channelCnafCt channelCnafPd channelCtCnaf channelCtPd channelPdCnaf channelPdCt List the available transfer channels

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April The commands for file replication between SEs is glite-transfer-submit where you have to specify the source URL. Then you must insert the destination URL, i.e. the physical file name that the file will have on the remote SE when replicated. It's up to the user the correct insertion of the destination URL! [glite-ui] /home/merida18 > glite-transfer-submit -v srm://aliserv6.ct.infn.it/dpm/ct.infn.it/home/gilda/generated/ /file742f27e af6b2d0a60de srm://egee016.cnaf.infn.it/dpm/cnaf.infn.it/home/gilda/tony/start_hostname.sh # Using endpoint # Service version: # Interface version: # Schema version: # Service features: glite-data-transfer-fts # Client version: # Client interface version: Enter MyProxy password: Enter MyProxy password again: 349c5461-d3b6-11da-be75-e65715ba5813 Submit the transfer job

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April You can check out all the other options of glite-transfer-submit looking at the man page. If the submission is successful, a JobID is returned, that you can use to monitor your job execution. > [glite-ui] /home/merida18 > glite-transfer-status -l 349c5461-d3b6-11da-be75- e65715ba5813 Done Source: srm://aliserv6.ct.infn.it/dpm/ct.infn.it/home/gilda/generated/ /file742f27e af6b2d0a60de Destination: srm://egee016.cnaf.infn.it/dpm/cnaf.infn.it/home/gilda/tony/start_hostname.sh State: Done Retries: 0 Reason: (null) Duration: 15 Monitor the transfer job

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April [glite-ui] /home/merida18 > lcg-rf -v --vo gilda -l lfn:/grid/gilda/tony/start_hostname.sh srm://egee016.cnaf.infn.it/dpm/cnaf.infn.it/home/gilda/tony/s tart_hostname.sh Using grid catalog type: lfc Using grid catalog : lfc.cecalc.ula.ve set timeout to 0 seconds Site URL to be registered: srm://egee016.cnaf.infn.it/dpm/cnaf.infn.it/home/gilda/tony/start_hostname.sh File size: 31 guid:540c506b-b448-4ff d56b6f5b06 [glite-ui] /home/merida18 > lcg-lr --vo gilda lfn:/grid/gilda/tony/start_hostname.sh srm://aliserv6.ct.infn.it/dpm/ct.infn.it/home/gilda/generated/ /file742f27e af6b2d0a60de srm://egee016.cnaf.infn.it/dpm/cnaf.infn.it/home/gilda/tony/start_hostname.sh Register the replica in the File Catalog

FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America First Latin American EELA Tutorial, Mèrida, 27-29th April References LFC API / CLI deployment/documentation/LFC_DPM/lfc/html/ gLite FTS homepage