Riccardo Bruno, Salvatore Scifo gLite - Tutorial Catania, dd.mm.yyyy

Slides:



Advertisements
Similar presentations
EGRIS-1 E-infrastructure shared between Europe and Latin America Luciano Diaz ICN UNAM Mexico City, 24 October 2007 Hands on session: the.
Advertisements

FP7-INFRA Enabling Grids for E-sciencE EGEE Induction Grid training for users, Institute of Physics Belgrade, Serbia Sep. 19, 2008.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Grid Data Management Assaf Gottlieb - Israeli Grid NA3 Team EGEE is a project funded by the European Union under contract IST EGEE tutorial,
FILE TRANSFER PROTOCOL Short for File Transfer Protocol, the protocol for exchanging files over the Internet. FTP works in the same way as HTTP for transferring.
Working with Files How to create, view, copy, rename and print files.
Linux+ Guide to Linux Certification, Second Edition
6/24/2015B.RamamurthyPage 1 File System B. Ramamurthy.
File Management System The way a user or application may access files Programmer does not need to develop file management software You take files for granted.
7/15/2015B.RamamurthyPage 1 File System B. Ramamurthy.
Learning basic Unix command IT 325 operating system.
COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #5  Files and directories in UNIX  Various types of files  File attributes  Notion of pathname  Commands.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
1 Lecture 2 Working with Files and Directories COP 3344 Introduction to UNIX.
Linux+ Guide to Linux Certification, Second Edition
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE middleware: gLite Data Management EGEE Tutorial 23rd APAN Meeting, Manila Jan.
Managing Files. Module 5 Managing Files ♦ Introduction “On a Linux system, everything is a file; if something is not a file, it is a process.” ♦ Topics.
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
Hands on session: the AMGA Metadata Catalogue Riccardo Bruno - INFN Madrid, 07-11/05/2007.
FTP Server API Implementing the FTP Server Registering FTP Command Callbacks Data and Control Port Close Callbacks Other Server Calls.
EGEE-II INFSO-RI Enabling Grids for E-sciencE Hands on session: the AMGA Metadata Catalogue.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Λειτουργικά Συστήματα – Lab2 Γιάννης Πετράκης. Directory Navigation and Control  The Unix file system is set up like a tree branching out from the root.
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.
SEE-GRID-SCI Storage Element Installation and Configuration Branimir Ackovic Institute of Physics Serbia The SEE-GRID-SCI.
1 Lecture 2 Working with Files and Directories COP 3353 Introduction to UNIX.
NorduGrid plans and questions for gLite Marko Niinimaki, NorduGrid 3 rd EGEE meeting Athens, April 2005.
INFSO-RI Enabling Grids for E-sciencE GILDA Praticals Data management system GILDA Tutors INFN Catania EGEE Tutorial Roma 03.November.2005.
Further aspects of EGEE middleware components INFN, Catania EGEE is funded by the European Union under contract IST
FP6−2004−Infrastructures−6-SSA Enabling Grids for E-sciencE The AMGA Metadata Catalog Introduction and hands-on exercises Nuno Santos.
File Management commands cat Cat command cat cal.txt cat command displays the contents of a file here cal.txt on screen (or standard out).
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
1 DIRAC Data Management Components A.Tsaregorodtsev, CPPM, Marseille DIRAC review panel meeting, 15 November 2005, CERN.
INFSO-RI Enabling Grids for E-sciencE University of Coimbra gLite 1.4 Data Management System Salvatore Scifo, Riccardo Bruno Test.
EGEE-II INFSO-RI Enabling Grids for E-sciencE Architecture of LHC File Catalog Valeria Ardizzone INFN Catania – EGEE-II NA3/NA4.
Grid Data Management Assaf Gottlieb Tel-Aviv University assafgot tau.ac.il EGEE is a project funded by the European Union under contract IST
INFSO-RI Enabling Grids for E-sciencE Practicals on LFC and gLite DMS Tony Calanducci Emidio Giorgio INFN Retreat between GILDA.
Linux Filesystem Management
Tutorial of Unix Command & shell scriptS 5027
GFAL Grid File Access Library
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Java API del Logical File Catalog (LFC)
gLite 1.4. Data Mangement Exercises
gLite Data management system overview
FTP Lecture supp.
Lecture 2 Working with Files and Directories
Some Linux Commands.
The Command Prompt Commands are the way to “do things” in Unix
Hands-On Session: Data Management
Data Management in Release 2
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
File System B. Ramamurthy B.Ramamurthy 11/27/2018.
Data Management Ouafa Bentaleb CERIST, Algeria
Tutorial of Unix Command & shell scriptS 5027
Configuring Internet-related services
Data services in gLite “s” gLite and LCG.
EGEE Middleware: gLite Information Systems (IS)
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Architecture of the gLite Data Management System
gLite Data and Metadata Management
Module 6 Working with Files and Directories
January 26th, 2004 Class Meeting 2
Presentation transcript:

Riccardo Bruno, Salvatore Scifo gLite - Tutorial Catania, dd.mm.yyyy gLite DMS - Practicals Riccardo Bruno, Salvatore Scifo gLite - Tutorial Catania, dd.mm.yyyy

gLite DMS CLI User Interaction Catalog (FireMan) Catalog entries manipulation gLite I/O (SE) Local file management File Transfer (FTS) It is responsible for moving sets of files from one site to another. Metadata (AMGA) File based metadata management EGEE Tutorial, Roma, 03.11.2005

FireMan: Catalog commands Browsing the contents of a directory glite-catalog-ls [-h][-q][-s SERVICE][-V][-v][-c] [-d][-g][-l][-R][-S][-t][-u][-x] LFN... Where LFN (Logical File Name) is the absolute path of the file/directory to list Main Options: -l request long output -v increase the verbosity level -R request recursive listing -S sort by size -t sort by modification time -g print GUIDs in the long listing -h print a short help -s SERVICE specifies the service endpoint to use -d list the directory node itself instead of its contents EGEE Tutorial, Roma, 03.11.2005

FireMan: glite-catalog-ls example Example: $glite-catalog-ls –l /simtest -pdrwl-gs--r-l-g--------- 792 2006-01-28 12:52:20 /smtest/simulator.jdl -pdrwl-gs--r-l-g--------- 115768 2006-01-25 11:53:44 /smtest/simparam.dat -pdrwl-gs--r-l-g--------- 256736039 2006-01-28 12:52:37 /smtest/060128sim.dat -pdrwl-gs--r-l-g--------- 245789366 2006-01-29 12:51:04 /smtest/060129sim.dat -pdrwl-gs--r-l-g--------- 259187742 2006-01-30 12:51:04 /smtest/060130sim.dat -pdrwl-gs--r-l-g--------- 237 2006-01-23 12:52:37 /smtest/runsim.sh Meaning of the flags: The first letter shows the type of the entry: ’-’ for regular files, ’d’ for directories, ’l’ for symbolic links and ’v’ for virtual directories. It follows 3 series of 8 flags, respectively for the owner, the group and others: p indicates the permission to change attribute, while d gives rights to delete the entry. It follows permissions to read, write, list, execute. The last two flags are reserved for metadata use, and so are currently unused. They will give the rights to get or set the metadata. EGEE Tutorial, Roma, 03.11.2005

FireMan: Handling with directories Directory creation glite-catalog-mkdir [-h][-q][-s SERVICE][-V][-v] [-p][-c] DIR... Where DIR is the name of the directory to create (in LFN format) -p create missing parent directory -c copy the permission of the parent directory Example: glite-catalog-mkdir /smtest Deleting a directory glite-catalog-rmdir [-h][-q][-s SERVICE][-V][-v] DIR... The specified directory must be empty or the command will fail Example: glite-catalog-rmdir /smtest EGEE Tutorial, Roma, 03.11.2005

FireMan: Detailed info on a entry glite-catalog-stat [-h][-q][-s SERVICE][-V][-v][-r] LFN... Lists all information the file catalog has about a file or directory. It includes LFN, GUID, owner/group with basic permission, list of ACLs (if any), SURL for every replica. Example: glite-catalog-stat /smtest/runsim.sh LFN: /smtest/runsim.sh Created: 2005-10-20 12:51:04.000 Modified: 2005-10-20 12:51:04.000 Size: 38 Type: File Expires: Never GUID: 004c3024-7697-1357-9128-c1ced08dbeef Created: 2005-10-20 12:51:08.000 Modified: 2005-10-20 12:51:08.000 Checksum: 00000000 Status: 0 User: /C=IT/O=INFN/OU=Personal Certificate/L=Catania/CN=brunor Group: egee-group User rights: pdrwl-gs Group rights: --r-l-g- Other rights: -------- Replicas: srm://aliserv6.ct.infn.it:8443/srm/managerv1?SFN=/dpm/ct.infn.it/home/gilda/smtest/runsim.sh Master replica Created: 2005-10-20 12:51:04.000 Modified: 2005-10-20 12:51:04.000 EGEE Tutorial, Roma, 03.11.2005

FireMan: looking for files Locate files matching a specified pattern in the specified directory glite-catalog-find [-h] [-q] [-s SERVICE] [-V] [-v] [-n LIMIT] PATTERN DIR... Where -n LIMIT return no more than LIMIT results. The default is 100 PATTERN is the file name pattern to look for. Recognized wildcards are ? matching any character, and * matching any string DIR Name of the directories where to look for files matching PATTERN. Example: glite-catalog-find sim*.jdl /smtest/tcaland/helloworld.jdl EGEE Tutorial, Roma, 03.11.2005

Fireman: commands (I) Summary of the Fireman Catalog commands glite-catalog-ls List file/directory entries in a directory glite-catalog-mkdir Create a directory glite-catalog-mv Rename a file/directory glite-catalog-rm glite-catalog-rmdir Remove a file/directory glite-catalog-getreplica Get all replicas associated with a file/GUID glite-catalog-touch glite-catalog-create Create a new entry in the catalog/update the modification time glite-catalog-find Find entries based on their name pattern glite-seindex-list List all SEs having a replica of the given files EGEE Tutorial, Roma, 03.11.2005

Fireman: commands (II) Summary of the Fireman Catalog commands glite-catalog-chmod glite-catalog-setacl glite-catalog-setdefacl glite-catalog-setdefperm Change access mode of the Fireman file/directory. Set the ACL, the default ACL and the default permission glite-catalog-stat glite-catalog-getguid List the details of a file – all attributes, replicas. Or just the associated GUID. glite-catalog-setattr glite-catalog-getattr glite-catalog-setschema Set/get metadata attribute and set the metadata schema of a given directory glite-catalog-getacl glite-catalog-getdefacl Get file/directory access control lists and default ACL glite-catalog-symlink Make a symbolic link to a file. Directory symlinks are not supported by design. EGEE Tutorial, Roma, 03.11.2005

gLite I/O: Upload a local file to the Storage Element glite-put <localfilename> <lfn>[-m <mode>][-c <config>] where <localfilename> is the name of the local file you want to upload and <lfn> is the logical file name you want to assign to that file. glite-put is part of the glite-io client CL tools. It will contact the local glite-IO server to accomplish its works. It also interacts with FireMan interfaces to register the new entry into the catalog. Example: glite-put simparam.dat /smtest/simparam.dat [glite_put] Total 0.00 MB |====================| 100.00 % [0.0 Mb/s] Transfer Completed: LFN : /smtest/simparam.dat GUID : 002b06c4-795e-1357-a628-c1ced08dbeef SURL : srm://aliserv6.ct.infn.it:8443/srm/managerv1?SFN=/dpm/ct.infn.it/home/gilda/smtest/simparam.dat Data Written [bytes] : 202335 Eff.Transfer Rate[Mb/s] : 0.000076 EGEE Tutorial, Roma, 03.11.2005

gLite I/O: Retrieve and delete a file from the SE glite-get <lfn> <localfilename> [-c <config>] Copies the given file from the local Storage Element to the given local file. <lfn> is the logical file name of the file you want to download and <localfilename> is the name of the destination local file -c <config> use an alternativi config file, overriding the glite-io-client configuration Example: glite-get /smtest/060130sim.dat lastsim.dat Transfer Completed: LFN : /tcaland/myjob.jdl GUID : 002b06c4-795e-1357-a628-c1ced08dbeef SURL : srm://aliserv6.ct.infn.it:8443/srm/managerv1?SFN=/dpm/ct.infn.it/home/gilda/tcaland/myjob.jdl Data Written [bytes] : 0 Eff.Transfer Rate[Mb/s] : 0.000000 glite-rm <lfn> [-c <config>] Removes the given file from your local Storage Element and delete the corresponding entry in the File Catalog Example: glite-rm /smtest/simparam.dat Unlink Completed: File : /smtest/simparam.dat Time [s] : 4.471000 EGEE Tutorial, Roma, 03.11.2005

FTS: Data Transfers: requirements Check which CHANNELS are available for data transfer on your VO, using: glite-transfer-channel-list [-h] [-q] [-s SERVICE] [-V] [-v] CHANNEL... Examples: $ glite-transfer-channel-list channelCtCnaf channelCnafCt channelCtPd channelPdCt If you are authorized $ glite-transfer-channel-list channelCtCnaf Channel: channelCtCnaf Between: ct.infn.it and cnaf.infn.it State: Active Contact: fts-admin@ct.infn.it Bandwidth: 1001 Nominal throughput: 1000 Number of files: 4, streams: 1 Number of VO shares: 2 VO 'gilda' share is: 50 EGEE Tutorial, Roma, 03.11.2005

FTS: Move data between SEs Submit a data transfer job Usage: glite-transfer-submit [options] [SOURCE DEST] 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. -b Blocking mode, wait until the operation completes. -f FILE Read job descriptions from FILE -g PARAM gridftp parameters -i TIME Interval between two poll operations in blocking mode -m SERVER MyProxy server to use -p PASSWORD MyProxy password to send with the job MyProxy password will be requested. Then the JobId will be prompted. EGEE Tutorial, Roma, 03.11.2005

FTS: Control Data Transfer Jobs Display the status of data transfer jobs glite-transfer-status [-h] [-q] [-s SERVICE] [-V] [-v] [-l] JOBID... JOBID is the Identifier of a submitted placement job returned by glite-placement-submit. -l list the status of invidual files that are part of the placement job Example: glite-placement-status -l 6685222f-3b34-11da-8336-f118ddd430f7 Active Source: srm://aliserv6.ct.infn.it:8443/srm/managerv1?SFN=/dpm/ct.infn.it/home/gilda/FTStest Destination: srm://egee016.cnaf.infn.it:8443/srm/managerv1?SFN=/dpm/cnaf.infn.it/home/gilda/FPS_Example State: Active Failures: 0 Reason: (null) Cancel a previously submitted file placement job glite-transfer-cancel [-h] [-q] [-s SERVICE] [-V] [-v] JOBID... Example: glite-placement-cancel 6685222f-3b34-11da-8336-f118ddd430f7 EGEE Tutorial, Roma, 03.11.2005

Metadata: Access the Metadata Catalog Start up the Metadata Catalog Client with $ mdclient Once logged in, you can list the available commands, typing help. Connecting to amga.ct.infn.it:8822... ARDA Metadata Server 1.1.0 Query> help >> help [topic] >> Displays help on a command or a topic. >> Valid topics are: help metadata metadata-optional directory replication entry group acl index schema sequence user view ticket commands Commands are grouped by topic. You can get the list of valid commands for each topic, typing help [topic] Example: help entry EGEE Tutorial, Roma, 03.11.2005

Metadata: MDC directory related commands Browse the contents of a directory dir <path> Returns the name of all subdirectories and files in the given path or in the current directory if not specified Print the current working directory pwd Change the current working directory cd directory Example: cd /gilda/xraypics Directory creation createdir /parentdir/dir Creates the directory dir if it does not yet exist but parentdir already does Example: createdir /gilda/xraypics Directory removal rmdir <path> Removes the directory given by path EGEE Tutorial, Roma, 03.11.2005

Metadata: MDC – Handling attributes Schema population addattr dir attr type Adds a new attribute to the schema of a directory. Type is the name of an SQL datatype which will translated (if necessary) into a data type understood by the back end DB. Examples of valid datatypes are: int, float, varchar(n), timestamp, text, numeric(p,s) Examples: addattr /gilda/xraypics PatientId int addattr /gilda/xraypics Remarks text Attribute listing listattr path Returns a list of all attributes of the given file/direcory Attribute Removal removeattr dir attribute Removes an attribute from a directory if it is not used by any entry in the directory EGEE Tutorial, Roma, 03.11.2005

Metadata: MDC - managing entries Entry creation addentry entry (attribute value)+ Add a new entry and initializes some attributes Example: addentry /gilda/xraypics/20060123.01353.jpg PatientId 145 Setting attribute values setattr entry (attribute value)+ Sets one or more attributes of an entry to given values Example: setattr /gilda/xraypics/20060123.01353.jpg Remark ‘Final diagnosys’ Getting attribute values getattr pattern (attribute)+ Returns the entries and all the attributes for every file matching pattern Example: getattr /gilda/xraypics/*.jpg Remark Entry deletion rm pattern Removes all entries matching pattern Example: rm /gilda/xraypics/*.jpg EGEE Tutorial, Roma, 03.11.2005

Metadata: Queries find pattern ‘query_condition’ Returns all entries matching pattern whenever the query_condition is true Examples: find /gildav/xraypics/ ‘PatientId = 145’ find /gildav/xraypics/ ‘like(Remark, “Final%”)’ find /gildav/xraypics/ ‘like(MovieTitle, “Final%”) AND PatientId = 145’ selectattr attr... Condition Returns the values of given attributes for all files matching condition Example: cd /gildav/xraypics selectattr .:PatientId .:Remark ‘PatientId =145' >> >145< >> >Final diagnosys< EGEE Tutorial, Roma, 03.11.2005