TESTARE IL GRID-FTP
Sono stati effettuati una serie di tests per verificare le funzionalità del GRID-FTP (Grid Files Transfer Protocol) riguardo al trasferimento di files fra le varie macchine presenti nel GRID: questi tests hanno il solo scopo di verificare il corretto funzionamento del sistema, senza valutarne le effettive potenzialità e le prestazioni riscontrate.
Per poter avviare i comandi di GRID-FTP, è necessario creare il proprio proxy eseguendo il comando:% grid-proxy-init
Verrà richiesta la PEM pass phrase, la password utilizzata dall'utente per generare il proprio certificato:
% Your identity: ...
% Enter GRID pass phrase for this identity:Una volta inserita la password, verrà controllato il certificato dell'utente e, nel caso in cui quest'utlimo sia corretto, comparirà il seguente messaggio:
% Creating proxy .......................................... Done
% Your proxy is valid until : ...Sul server è necessario, inoltre, attivare il servizio per gestire le varie richieste tramite il comando:
% $GLOBUS_LOCATION/sbin/in.ftpd -a -s -p 5678
Non verrà visualizzato alcun messaggio, ma il comando rimarrà attivo sulla shell.
A questo punto è possibile eseguire il trasferimento di files tramite lo script:Questo script accetta come attributo una stringa in formato URL per indicare la locazione dei files. Ci sono 3 tipi di trasferimento possibili:
in locale: file://
in remoto: gsiftp://
via http: https://
Questo è il comando per il trasferimento punto a punto di un file: bisogna indicare la sorgente e la destinazione in formato URL.
da tom.ce.unipr.it
% globus-url-copy -verbose gsiftp://pp4.ce.unipr.it:5678/home/verde/g.mpg file:/tmp/prova.mpg
% 29360128 bytes 7167.81 KB/sec avg 8703.63 KB/sec inst
% 30408704 bytes 7423.55 KB/sec avg 9731.31 KB/sec inst
% 29360128 bytes 7167.31 KB/sec avg 9753.77 KB/sec instAbbiamo eseguito 3 volte lo stesso comando: l'attributo -verbose visualizza su standard output in modo interattivo un breve riassunto delle prestazioni durante il trasferimento. Abbiamo trasferito un file di 50MB da pp4 alla directory /tmp su tom. Si può notare la buona stabilità del sistema che in tutti i casi si è comportato allo stesso modo.
% globus-url-copy -verbose file:/home/verde/g.mpg gsiftp://pp4.ce.unipr.it:5678/tmp/prova.mpg
% 45088768 bytes 6011.24 KB/sec avg 7168.00 KB/sec inst
% 42991616 bytes 5405.07 KB/sec avg 5973.33 KB/sec inst
% 46137344 bytes 5878.44 KB/sec avg 6516.36 KB/sec instAbbiamo trasferito lo stesso file indietro da tom a pp4.
Proviamo ora un trasferimento in remoto. Settiamo i server su due diverse porte con il comando:
pp4.ce.unipr.it: $GLOBUS_LOCATION/sbin/in.ftpd -a -s -p 5678
trovatore.ce.unipr.it: $GLOBUS_LOCATION/sbin/in.ftpd -a -s -p 5679
globus-url-copy gsiftp://trovatore.ce.unipr.it:5679/home/verde/g.mpg gsiftp://pp4.ce.unipr.it:5678/tmp/prova.mpg
In questo caso il file viene trasferito senza visualizzare messaggi sullo standard output.
Eseguendo lo stesso comando con l'attributo -dbg si ottiene su standard output un resoconto di tutte le operazioni effettuate da GRID-FTP per effettuare il trasferimento.% globus-url-copy -dbg gsiftp://trovatore.ce.unipr.it:5679/home/verde/g.mpg gsiftp://pp4.ce.unipr.it:5678/tmp/prova.mpg
%
% debug: starting to transfer gsiftp://trovatore.ce.unipr.it:5679/home/verde/g.mpg to gsiftp://pp4.ce.unipr.it:5678/tmp/prova.mpg
% debug: connecting to gsiftp://pp4.ce.unipr.it:5678/tmp/prova.mpg
% debug: response from gsiftp://pp4.ce.unipr.it:5678/tmp/prova.mpg:
% 220 pp4.ce.unipr.it GridFTP Server 1.5 GSSAPI type Globus/GSI wu-2.6.2 (gcc32dbg, 1032298778-28) ready.
%
% debug: authenticating with gsiftp://pp4.ce.unipr.it:5678/tmp/prova.mpg
% debug: response from gsiftp://pp4.ce.unipr.it:5678/tmp/prova.mpg:
% 230 User grasso logged in.
%
% debug: sending command:
% FEAT
%
% debug: response from gsiftp://pp4.ce.unipr.it:5678/tmp/prova.mpg:
% 211-Extensions supported:
% REST STREAM
% ESTO
% ERET
% MDTM
% SIZE
% PARALLEL
% DCAU
% 211 END
%
% debug: sending command:
% TYPE I
% debug: response from gsiftp://pp4.ce.unipr.it:5678/tmp/prova.mpg:
% 200 Type set to I.
%
% debug: sending command:
% PBSZ 16384
%
% debug: response from gsiftp://pp4.ce.unipr.it:5678/tmp/prova.mpg:
% 200 PBSZ=16384
%
% debug: sending command:
% PASV
%
% debug: response from gsiftp://pp4.ce.unipr.it:5678/tmp/prova.mpg:
% 227 Entering Passive Mode (160,78,27,54,156,106)
%
% debug: sending command:
% STOR /tmp/prova.mpg
%
% debug: connecting to gsiftp://trovatore.ce.unipr.it:5679/home/verde/g.mpg
% debug: response from gsiftp://trovatore.ce.unipr.it:5679/home/verde/g.mpg:
% 220 Trovatore.ce.unipr.it GridFTP Server 1.5 GSSAPI type Globus/GSI wu-2.6.2 (gcc32dbg, 1032298778-28) ready.
%
% debug: authenticating with gsiftp://trovatore.ce.unipr.it:5679/home/verde/g.mpg
% debug: response from gsiftp://trovatore.ce.unipr.it:5679/home/verde/g.mpg:
% 230 User grasso logged in.
%
% debug: sending command:
% FEAT
%
% debug: response from gsiftp://trovatore.ce.unipr.it:5679/home/verde/g.mpg:
% 211-Extensions supported:
% REST STREAM
% ESTO
% ERET
% MDTM
% SIZE
% PARALLEL
% DCAU
% 211 END
%
% debug: sending command:
% TYPE I
% debug: response from gsiftp://trovatore.ce.unipr.it:5679/home/verde/g.mpg:
% 200 Type set to I.
%
% debug: sending command:
% SIZE /home/verde/g.mpg
%
% debug: response from gsiftp://trovatore.ce.unipr.it:5679/home/verde/g.mpg:
% 213 47816300
%
% debug: sending command:
% PBSZ 16384
%
% debug: response from gsiftp://trovatore.ce.unipr.it:5679/home/verde/g.mpg:
% 200 PBSZ=16384
%
% debug: sending command:
% PORT 160,78,27,54,156,106
%
% debug: response from gsiftp://trovatore.ce.unipr.it:5679/home/verde/g.mpg:
% 200 PORT command successful.
%
% debug: sending command:
% RETR /home/verde/g.mpg
%
% debug: response from gsiftp://trovatore.ce.unipr.it:5679/home/verde/g.mpg:
% 150 Opening BINARY mode data connection.
%
% debug: response from gsiftp://pp4.ce.unipr.it:5678/tmp/prova.mpg:
% 150 Opening BINARY mode data connection.
%
% debug: response from gsiftp://trovatore.ce.unipr.it:5679/home/verde/g.mpg:
% 226 Transfer complete.
%
% debug: response from gsiftp://pp4.ce.unipr.it:5678/tmp/prova.mpg:
% 226 Transfer complete.
%
% debug: operation complete