Www.epikh.eu The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Algiers, EUMED/Epikh Application Porting Tutorial, 2010/07/04.

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

Workflows over Grid-based Web services General framework and a practical case in structural biology gLite 3.0 Data Management David García Aristegui Grid.
Grid Data Management Assaf Gottlieb - Israeli Grid NA3 Team EGEE is a project funded by the European Union under contract IST EGEE tutorial,
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) gLite Grid Services Abderrahman El Kharrim
Makrand Siddhabhatti Tata Institute of Fundamental Research Mumbai 17 Aug
Ninth EELA Tutorial for Users and Managers E-infrastructure shared between Europe and Latin America LFC Server Installation and Configuration.
EGEE-II INFSO-RI Enabling Grids for E-sciencE gLite Data Management System Yaodong Cheng CC-IHEP, Chinese Academy.
INFSO-RI Enabling Grids for E-sciencE gLite Data Management Services - Overview Mike Mineter National e-Science Centre, Edinburgh.
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.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) GISELA Additional Services Diego Scardaci
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.
Jan 31, 2006 SEE-GRID Nis Training Session Hands-on V: Standard Grid Usage Dušan Vudragović SCL and ATLAS group Institute of Physics, Belgrade.
Data Access for Analysis Jeff Templon PDP Groep, NIKHEF A. Tsaregorodtsev, F. Carminati, D. Liko, R. Trompert GDB Meeting 8 march 2006.
T3 analysis Facility V. Bucard, F.Furano, A.Maier, R.Santana, R. Santinelli T3 Analysis Facility The LHCb Computing Model divides collaboration affiliated.
E-science grid facility for Europe and Latin America Data Management Services E2GRIS1 Rafael Silva – UFCG (Brazil) Universidade Federal.
1 LHCb File Transfer framework N. Brook, Ph. Charpentier, A.Tsaregorodtsev LCG Storage Management Workshop, 6 April 2005, CERN.
INFSO-RI Enabling Grids for E-sciencE Αthanasia Asiki Computing Systems Laboratory, National Technical.
INFSO-RI Enabling Grids for E-sciencE Αthanasia Asiki Computing Systems Laboratory, National Technical.
EGEE is a project funded by the European Union under contract IST Grid Data Management Roberto Barbera Univ. Of Catania and INFN
Managing Data DIRAC Project. Outline  Data management components  Storage Elements  File Catalogs  DIRAC conventions for user data  Data operation.
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 gLite Data Management System Giuseppe Andronico.
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”
Data Management The European DataGrid Project Team
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.
Istituto Nazionale di Astrofisica Information Technology Unit INAF-SI Job with data management Giuliano Taffoni.
INFSO-RI Enabling Grids for E-sciencE University of Coimbra gLite 1.4 Data Management System Salvatore Scifo, Riccardo Bruno Test.
INFSO-RI Enabling Grids for E-sciencE University of Coimbra Data Management System gLite – LCG – FiReMan Salvatore Scifo INFN Catania.
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) LFC Installation and Configuration Dong Xu IHEP,
Introduction to Storage Element Hsin-Wei Wu Academia Sinica Grid Computing Center, Taiwan.
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.
User Domain Storage Elements SURL  TURL LFC Domain (LCG File Catalogue) SA1 – Data Grid Interoperation Enabling Grids for E-sciencE EGEE-III INFSO-RI
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America LFC Server Installation and Configuration.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) gLite Grid Introduction Salma Saber Electronic.
Create an script to print “hello world” in an output file with also the information of an input file. The input file should be previously register in the.
Riccardo Zappi INFN-CNAF SRM Breakout session. February 28, 2012 Ingredients 1. Basic ingredients (Fabric & Conn. level) 2. (Grid) Middleware ingredients.
Martedi 8 novembre 2005 Consorzio COMETA “Progetto PI2S2” FESR Data Management System Annamaria Muoio -- INFN Catania PI2S2 First Tutorial -- Messina,
EGEE Data Management Services
GFAL Grid File Access Library
GFAL Grid File Access Library
GFAL: Grid File Access Library
gLite Basic APIs Christos Filippidis
Classic Storage Element
StoRM: a SRM solution for disk based storage systems
Java API del Logical File Catalog (LFC)
LFC Installation and Configuration
gLite Data management system overview
Hands-On Session: Data Management
Data Management Ouafa Bentaleb CERIST, Algeria
Data services in gLite “s” gLite and LCG.
Architecture of the gLite Data Management System
gLite Data and Metadata Management
Data Management system in gLite middleware
Presentation transcript:

The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Algiers, EUMED/Epikh Application Porting Tutorial, 2010/07/04 1 Architecture of the gLite Data Management System Andrea Cortellese INFN Catania Institute of High Energy Physics (IHEP) 6 th - 17 th September

2 Outline Challenges of data management in a Grid infrastructure Initial definitions Types of Storage Elements File naming conventions File catalogue Practical exercises (hands on) Be prepared for a bunch of acronyms! Beijing, Advanced Tutorial, –

3 Challenges Heterogeneity Data are stored on different storage systems using different access technologies Distribution Data are stored in different locations (in most cases there is no shared file system or common namespace) Data need to be moved between different locations Data description Data are stored as files (need to describe and locate them according to their content) Storage Resource Manager interface File Catalogue File Transfer Service Metadata Service Beijing, Advanced Tutorial, –

4 Getting started The Storage Element (SE) is the service which allows users and applications (programs) to store/retrieve data (files) The DMS provide services for location, access and transfer of files User do not need to know the file location, just its logical name. Files can be replicated or transferred to several locations (SEs) as needed. Files are shared within a VO Files are write-once, read-many Files cannot be changed unless remove or replaced Beijing, Advanced Tutorial, –

5 Getting started Files located in the Storage Elements (SEs)… Are mostly write-once, read-many. Accessible by users and applications from “anywhere” in the Grid. Several replicas of one file can be replicated at different sites. Cannot be changed unless remove or replaced. Storage Elements (SEs)… Provide storage space for files. Provide transfer protocol (GSIFTP) ~ GSI based FTP server Provide an interface for the management of disk and tape storage resources: Storage Resource Manager (SRM) Beijing, Advanced Tutorial, –

6 Types of Storage Elements dCache Consists of a server and one or more pool nodes. Centralized admin.: single point of access to the SE. Files are presented in the disk pools under a single virtual filesystem tree. Uses the GSI dCache Access Protocol (gsidcap). Storm Solution best suited to cope with large storage (> or >> 100 TB) Makes full advantage of parallel filesystem (GPFS, Lustre) SRM v2.2 interface CERN Advanced STORage manager (CASTOR) Files are migrated from a disk buffer frontend to a tape mass storage Uses the insecure Remote File I/O protocol (RFIO) Disk Pool Manager (DPM) Used for fairly small SEs (max 10 TB of total space) with disk- based storage only. Uses secure RFIO protocol Beijing, Advanced Tutorial, –

7 Storage Resource Manager (SRM) You as a user need to know all the systems!!! SRM I talk to them on your behalf I will even allocate space for your files And I will use transfer protocols to send your files there SE CASTOR SE DPM SE dCache The SRM is a single interface that takes care of local storage interaction and provides a Grid interface to the outside world. SE Storm Beijing, Advanced Tutorial, –

8 A practical example (1) Storm at SiteA DPM at SiteD dCache at SiteB She is working on a job which needs: - read MonteCarlo simulations from siteA - read experiment data from siteB - read environmental data from siteC - write output to home siteD DPM at SiteC Beijing, Advanced Tutorial, –

9 File Naming conventions (1) Grid Unique IDentifier (GUID) Every file has a GUID A non-human-readable unique identifier, e.g.: guid:38ed3f60-c402-11d7-a6b0-f53ee5a37e1d Note: all replicas of a file will share the same GUID Logical File Name (LFN) An alias that can be used to refer to a file, e.g.: lfn://grid/gilda/users/mario/myfile.dat Logical File Name 1 Logical File Name N GUID... Beijing, Advanced Tutorial, –

10 File Naming conventions (2) Storage URL (SURL) or Physical File Name (PFN) The location of an actual file on a storage system, e.g.: srm://aliserv6.ct.infn.it/dpm/home/gilda/project1/test.dat Note: Used by the system to find where the replica is physically stored Transport URL (TURL) Complete URI with the necessary information to access a file in a SE (including the access protocol) e.g.: rfio://lxshare0209.cern.ch//data/alice/ntuples.dat Logical File Name 1 Logical File Name N GUID... Physical File SURL N Physical File SURL 1 TURL 1... Beijing, Advanced Tutorial, –

11 SRM interactions Client SRM 1.The client asks the SRM for the file providing an SURL 2.The SRM asks the Storage Element to provide the file 3.The Storage Element notifies the availability of the file and its location 4.The SRM returns a TURL (Transfer URL), i.e. the location from where the file can be accessed 5.The client interacts with the storage using the protocol specified in the TURL SE Beijing, Advanced Tutorial, –

12 Needles in a haystack How do I keep track of all files I have on the Grid? Even if I remember all the LFN’s of my files, what about someone else's files? How does the Grid keep track of the mapping between LFN(s), GUID and SURL(s)? File Catalogue LFC = LCG File Catalogue –LCG = LHC Compute Grid –LHC = Large Hadron Collider Beijing, Advanced Tutorial, –

13 File Catalogue Is the service which maintains mappings between LFN(s), GUID and SURL(s) It keeps track of the location of copies (replicas) of files It consists of a unique catalogue, where the LFN is the main key Looks like a “top-level” directory in the Grid For each of the supported VO a separate subdirectory exists under the "/grid" directory. All members of a given VO have read-write permissions in such a directory Beijing, Advanced Tutorial, –

14 The LFC Service User Interface SE B SE A SE C File Catalogue lfn:/grid/gilda/tcaland/mpi.txt Beijing, Advanced Tutorial, –

15 The LFC Service srm://host.example.com/foo/bar host.example.com /grid/dteam/dir1/dir2/file1.root LFN GUID 38ed3f60-c402-11d7 -a6b0… Replicas /grid/dteam/mydir/mylink Symlink Further LFNs can be added as symlinks to the main LFN. LCF key SURLs User Metadata System Metadata Beijing, Advanced Tutorial, –

16 Job submission – example 1 User Interface CE Worker Nodes WMS Small files: InputSandbox / OutputSandbox Beijing, Advanced Tutorial, –

17 Data Management – example 2 User Interface CE Worker Nodes WMS LFC SE Beijing, Advanced Tutorial, –

18 LFC commands Add/replace a commentlfc-setcomment Set file/directory access control listslfc-setacl Remove a file/directorylfc-rm Rename a file/directorylfc-rename Create a directorylfc-mkdir List file/directory entries in a directorylfc-ls Make a symbolic link to a file/directorylfc-ln Get file/directory access control listslfc-getacl Delete the comment associated with the file/directorylfc-delcomment Change owner and group of the LFC file-directorylfc-chown Change access mode of the LFC file/directorylfc-chmod Interact with the catalogue only Beijing, Advanced Tutorial, –

19 lcg-utils commands lcg-cpCopies a grid file to a local destination lcg-crCopies a file to a SE and registers the file in the catalog lcg-delDelete one file lcg-repReplication between SEs and registration of the replica lcg-gtGets the TURL for a given SURL and transfer protocol lcg-sdSets file status to “Done” for a given SURL in a SRM request Copy files to/from/between SEs. Keep the SEs and the Catalogue up to date. The RPM containing these tools (lcg_util) is installed in the WNs and UIs. Beijing, Advanced Tutorial, –

20 Environment Variables Make sure to use the correct BDII and LFC BDII - LCG_GFAL_INFOSYS –export LCG_GFAL_INFOSYS=wms-01.eumedgrid.eu:2170 LFC - LFC_HOST –export LFC_HOST=lfc.eela.ufrj.br Beijing, Advanced Tutorial, –

21 Let’s practice! Reference: Beijing, Advanced Tutorial, –

22 Environment Variables Pointing to the right BDII Pointing to the right LFC echo $LCG_GFAL_INFOSYS export LCG_GFAL_INFOSYS=wms-01.eumedgrid.eu:2170 echo $LFC_HOST export LFC_HOST=gridsrv3-4.dir.garr.it Beijing, Advanced Tutorial, –

23 Before starting… voms-proxy-info -all Make sure to have a proxy created voms-proxy-init --voms eumed Beijing, Advanced Tutorial, –

24 LFC: Listing file and directory lfc-ls -l /grid/eumed/ lfc-mkdir /grid/eumed/fgSillyTests Remember that LFC has a directory tree structure –/grid/ / Defined by the user LFC Namespace You can set LFC_HOME variable to use relative paths export LFC_HOME=/grid/eumed/ lfc-ls -l fgSillyTests Beijing, Advanced Tutorial, –

25 LFC: creating a directory lfc-mkdir /grid/eumed/yourname Create your own personal directory inside: –/grid/eumed/ You can check the creation typing: lfc-ls /grid/eumed Beijing, Advanced Tutorial, –

26 Downloading a file lcg-cp --vo eumed lfn:/grid/eumed/fgSillyTests/test_thirst.jpg file://$HOME/test_thirst.jpg First of all, let’s download a file from a SE to start “playing” with it. Basic Usage: Try it: lcg-cp --vo Beijing, Advanced Tutorial, –

27 From where it was downloaded? List the Replicas of the file: This command will return the SURL of all replicas A file can be stored on multiple SE's so that a job can download it from the closest SE while is running. lcg-lr --vo eumed lfn:/grid/eumed/fgSillyTests/test_thirst.jpg Beijing, Advanced Tutorial, –

28 Copying and registering a file 1/2 lcg-cr --vo -l -d lcg-cr –Copies a file to a SE and registers the file in the catalogue Use the lcg-info or lcg-infosites commands to figure out the available SEs This command will return the GUID for your file Make sure to have a directory in the LFC (/grid/eumed/yourname/) Beijing, Advanced Tutorial, –

lcg-infosites --vo eumed se Avail Space(Kb) Used Space(Kb) Type SEs n.a gridsrm.ts.infn.it n.a n.a torik1.ulakbim.gov.tr n.a iceage-se-01.ct.infn.it n.a se01.isabella.grnet.gr n.a n.a prod-se-02.ct.infn.it n.a n.a storm-01.roma3.infn.it n.a se1.cnrst.magrid.ma 29 Copying and registering a file 2/2 lcg-cr --vo eumed -l lfn:/grid/eumed/yourname/yourfile.txt -d torik1.ulakbim.gov.tr file://$HOME/test_beware.jpg Beijing, Advanced Tutorial, –

30 Replicate a file between SEs lcg-rep --vo eumed -d prod-se-02.ct.infn.it lfn:/grid/eumed/yourname/yourfile.txt Basic Usage: Try it: lcg-rep --vo -d Beijing, Advanced Tutorial, –

31 Listing the replicas Use the same lcg-lr command used previously: The command will return the SURL of all replicas A file can be stored on multiple SE's so that a job can download it from the closest SE while is running. lcg-lr --vo eumed lfn:/grid/eumed/yourname/yourfile.txt Beijing, Advanced Tutorial, –

32 Adding metadata information lfc-setcomment /grid/eumed/yourname/yourfile.txt “Beware of these two guys” This is the only user-defined metadata that can be associated with catalogue entries. Basic Usage: Try it: lfc-setcomment "Your comments" Beijing, Advanced Tutorial, –

33 Listing with comments lfc-ls --comment /grid/eumed/yourname/yourfile.txt Try it: Beijing, Advanced Tutorial, –

34 Downloading a file lcg-cp --vo eumed lfn:/grid/eumed/yourname/yourfile.txt file://$HOME/theTestPicture.jpg Basic Usage: Try it: lcg-cp --vo Beijing, Advanced Tutorial, –

35 Deleting a file lcg-del -a --vo eumed lfn:/grid/eumed/yourname/yourfile.txt Basic Usage: When used with '-a' switch will delete all replicas and delete entry from catalog Try it: lcg-del -a --vo Beijing, Advanced Tutorial, –

36 Removing a LFC directory Basic Usage: Try it: lfc-rm -r lfc-rm -r /grid/eumed/yourname Beijing, Advanced Tutorial, –

37 Special Note: Get the file TURL lcg-gt gsiftp Basic Usage: Try it: lcg-gt Beijing, Advanced Tutorial, –

38 Thank you for your kind attention ! Any questions ? Beijing, Advanced Tutorial, –