Changes between Version 8 and Version 9 of installation_GridFTP

Show
Ignore:
Timestamp:
05/16/11 15:26:14 (13 years ago)
Author:
bartek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • installation_GridFTP

    v8 v9  
    88This sections provides overview of Globus Toolkit ver. 4.x installation procedure. 
    99 
    10 Globus Toolkit is provided both in binary and source versions. It is also available as Java WS-core only or full version. For the purpose of the QosCosGrid Infrastructure the full source installation is required, as it provides the required GridFTP features and in most cases is more reliable (though more troublesome in rare cases) and robust then binary version. 
     10Globus Toolkit is provided both in binary and source versions. It is also available as Java WS-core only or full version. For the purpose of the !QosCosGrid Infrastructure the full source installation is required, as it provides the required GridFTP features and in most cases is more reliable (though more troublesome in rare cases) and robust then binary version. 
    1111 
    1212Below are the steps required to compile and install Globus Toolkit with only GridFTP daemon and utilities. 
     
    205205{{{ 
    206206#!div style="font-size: 90%" 
    207 {{{#!default     
     207{{{#!sh  
    208208  log_level ALL (or 'EERROR', 'WARN', 'INFO', 'DUMP') 
    209209  log_module stdio 
     
    215215{{{ 
    216216#!div style="font-size: 90%" 
    217 {{{#!default 
     217{{{#!sh 
    218218 # /etc/init.d/xinetd restart 
    219219}}} 
     
    223223All Globus Toolkit commands require appropriately configured environment. Globus Toolkit provides scripts for that purpose. To configure users environment for GT command do the following: 
    224224for bash shell: 
    225  
     225{{{ 
     226#!div style="font-size: 90%" 
     227{{{#!sh 
    226228  export GLOBUS_LOCATION=/opt/globus/gt421 
    227229  . $GLOBUS_LOCATION/etc/globus-user-env.sh  
     230}}} 
     231}}} 
    228232 
    229233or for csh shell: 
    230  
     234{{{ 
     235#!div style="font-size: 90%" 
     236{{{#!sh 
    231237  setenv GLOBUS_LOCATION /opt/globus/gt421 
    232238  source $GLOBUS_LOCATION/etc/globus-user-env.csh  
    233  
    234 Next you must obtain user certificates (as described in [[GridFTP#Requesting_host_and_user_X.509_certificates| Requesting host and user X.509 certificates]]) and then create user proxy by running command <code>grid-proxy-init</code>: 
     239}}} 
     240}}} 
     241 
     242Next you must obtain user certificates (as described in [[#Requesting_host_and_user_X.509_certificates|Requesting host and user X.509 certificates]]) and then create user proxy by running command `grid-proxy-init`: 
     243{{{ 
     244#!div style="font-size: 90%" 
     245{{{#!sh 
    235246 $ grid-proxy-init  
    236247  Your identity: /C=PL/O=GRID/O=PSNC/CN=Bogdan Ludwiczak 
     
    238249  Creating proxy ....................................................... Done 
    239250  Your proxy is valid until: Tue Apr 29 21:02:33 2008 
    240  
    241 Next, become root and create a mapping in <code>/etc/grid-security/grid-mapfile</code>. You can use your favorite text editor for that purpose and append a line similar to this one: 
    242  
     251}}} 
     252}}} 
     253 
     254Next, become root and create a mapping in `/etc/grid-security/grid-mapfile`. You can use your favorite text editor for that purpose and append a line similar to this one: 
     255{{{ 
     256#!div style="font-size: 90%" 
     257{{{#!sh 
    243258  "/C=PL/O=GRID/O=PSNC/CN=Bogdan Ludwiczak" bogdanl 
    244  
    245 or use GT <code>grid-mapfile-add-entry</code> command: 
    246  
     259}}} 
     260}}} 
     261or use GT `grid-mapfile-add-entry` command: 
     262{{{ 
     263#!div style="font-size: 90%" 
     264{{{#!sh 
    247265  # grid-mapfile-add-entry -dn "/C=PL/O=GRID/O=PSNC/CN=Bogdan Ludwiczak" -ln bogdanl 
    248  
    249 {{Note}} "bogdanl" in examples above is a name of a local unix account. 
     266}}} 
     267}}} 
     268 
     269'''Note:''' "bogdanl" in examples above is a name of a local unix account. 
    250270 
    251271Now you can transfer some files with globus-url-copy tool: 
    252272 
     273{{{ 
     274#!div style="font-size: 90%" 
     275{{{#!sh 
    253276  $ globus-url-copy gsiftp://node1.qoscosgrid.man.poznan.pl/~/file file:///tmp/file.test 
    254277  $ globus-url-copy gsiftp://node1.qoscosgrid.man.poznan.pl/~/file gsiftp://node1.qoscosgrid.man.poznan.pl/~/file2 
    255278  $ globus-url-copy gsiftp://node1.qoscosgrid.man.poznan.pl/~/file gsiftp://node2.qoscosgrid.man.poznan.pl/~/file2 
     279}}} 
     280}}} 
    256281 
    257282= Quick Start = 
    258  
    259 * create 'globus' user and installation directory, make 'globus' user an owner of this directory: 
    260    
     283* create `globus` user and installation directory, make `globus` user an owner of this directory: 
     284{{{ 
     285#!div style="font-size: 90%" 
     286{{{#!sh   
    261287  bogdanl@cress ~ $ su - 
    262288  cress ~ # useradd -m globus 
    263289  cress ~ # mkdir /opt/globus 
    264290  cress ~ # chown globus:users /opt/globus  
    265  
    266 * login as a <code>globus</code> user: 
     291}}} 
     292}}} 
     293 
     294* login as a `globus` user: 
     295{{{ 
     296#!div style="font-size: 90%" 
     297{{{#!sh 
    267298  cress ~ # su - globus 
     299}}} 
     300}}} 
    268301 
    269302* download Globus Toolkit source installer and untar it: 
     303{{{ 
     304#!div style="font-size: 90%" 
     305{{{#!sh 
    270306  globus@cress ~ $ wget http://www-unix.globus.org/ftppub/gt4/4.2.1/installers/src/gt4.2.1-all-source-installer.tar.bz2 
    271307  globus@cress ~ $ tar xjf gt4.2.1-all-source-installer.tar.bz2  
    272  
     308}}} 
     309}}} 
    273310* Configure and make sources: 
     311{{{ 
     312#!div style="font-size: 90%" 
     313{{{#!sh 
    274314  globus@cress ~ $ cd gt4.2.1-all-source-installer 
    275315  globus@cress ~ $ export GLOBUS_LOCATION=/opt/globus/gt421 
     
    280320  Your build completed successfully.  Please run make install. 
    281321  globus@cress ~/gt4.2.1-all-source-installer $ make install 
    282  
    283 * Request host certificates: 
     322}}} 
     323}}} 
     324* Request host certificates. 
    284325* Start gridftp-server either standalone or by (x)inetd daemon 
    285 :* If you are going to use xinetd daemon add gridftp to /etc/services: 
     326 * If you are going to use xinetd daemon add gridftp to `/etc/services`: 
     327{{{ 
     328#!div style="font-size: 90%" 
     329{{{#!sh 
    286330  bogdanl@cress ~ $ su - 
    287331  cress ~ # echo "gsiftp          2811/tcp               # GridFTP" >> /etc/services 
    288 :* and create new xinetd configuration file for gridftp service 
     332}}} 
     333}}} 
     334 * and create new xinetd configuration file for gridftp service 
     335{{{ 
     336#!div style="font-size: 90%" 
     337{{{#!sh 
    289338  cress ~ # cat /etc/xinetd.d/gridftp 
    290339  service gsiftp 
     
    305354        nice                 = 10 
    306355        disable              = no 
    307   }  
    308  
    309 :* restart xinetd: 
     356  } 
     357}}} 
     358}}}  
     359 
     360 * restart xinetd: 
     361{{{ 
     362#!div style="font-size: 90%" 
     363{{{#!sh 
    310364  cress ~ # /etc/init.d/xinetd restart 
     365}}} 
     366}}} 
    311367* test it: 
    312    
     368{{{ 
     369#!div style="font-size: 90%" 
     370{{{#!sh 
    313371  bogdanl@cress ~ $ telnet cress 2811 
    314372  Trying 150.254.149.134... 
     
    323381  bogdanl@cress ~ $ globus-url-copy gsiftp://cress/~/file \ 
    324382        gsiftp://cress/~/file2 
     383}}} 
     384}}}