Changes between Version 8 and Version 9 of installation_GridFTP
- Timestamp:
- 05/16/11 15:26:14 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
installation_GridFTP
v8 v9 8 8 This sections provides overview of Globus Toolkit ver. 4.x installation procedure. 9 9 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.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. 11 11 12 12 Below are the steps required to compile and install Globus Toolkit with only GridFTP daemon and utilities. … … 205 205 {{{ 206 206 #!div style="font-size: 90%" 207 {{{#! default207 {{{#!sh 208 208 log_level ALL (or 'EERROR', 'WARN', 'INFO', 'DUMP') 209 209 log_module stdio … … 215 215 {{{ 216 216 #!div style="font-size: 90%" 217 {{{#! default217 {{{#!sh 218 218 # /etc/init.d/xinetd restart 219 219 }}} … … 223 223 All Globus Toolkit commands require appropriately configured environment. Globus Toolkit provides scripts for that purpose. To configure users environment for GT command do the following: 224 224 for bash shell: 225 225 {{{ 226 #!div style="font-size: 90%" 227 {{{#!sh 226 228 export GLOBUS_LOCATION=/opt/globus/gt421 227 229 . $GLOBUS_LOCATION/etc/globus-user-env.sh 230 }}} 231 }}} 228 232 229 233 or for csh shell: 230 234 {{{ 235 #!div style="font-size: 90%" 236 {{{#!sh 231 237 setenv GLOBUS_LOCATION /opt/globus/gt421 232 238 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 242 Next 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 235 246 $ grid-proxy-init 236 247 Your identity: /C=PL/O=GRID/O=PSNC/CN=Bogdan Ludwiczak … … 238 249 Creating proxy ....................................................... Done 239 250 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 254 Next, 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 243 258 "/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 }}} 261 or use GT `grid-mapfile-add-entry` command: 262 {{{ 263 #!div style="font-size: 90%" 264 {{{#!sh 247 265 # 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. 250 270 251 271 Now you can transfer some files with globus-url-copy tool: 252 272 273 {{{ 274 #!div style="font-size: 90%" 275 {{{#!sh 253 276 $ globus-url-copy gsiftp://node1.qoscosgrid.man.poznan.pl/~/file file:///tmp/file.test 254 277 $ globus-url-copy gsiftp://node1.qoscosgrid.man.poznan.pl/~/file gsiftp://node1.qoscosgrid.man.poznan.pl/~/file2 255 278 $ globus-url-copy gsiftp://node1.qoscosgrid.man.poznan.pl/~/file gsiftp://node2.qoscosgrid.man.poznan.pl/~/file2 279 }}} 280 }}} 256 281 257 282 = 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 261 287 bogdanl@cress ~ $ su - 262 288 cress ~ # useradd -m globus 263 289 cress ~ # mkdir /opt/globus 264 290 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 267 298 cress ~ # su - globus 299 }}} 300 }}} 268 301 269 302 * download Globus Toolkit source installer and untar it: 303 {{{ 304 #!div style="font-size: 90%" 305 {{{#!sh 270 306 globus@cress ~ $ wget http://www-unix.globus.org/ftppub/gt4/4.2.1/installers/src/gt4.2.1-all-source-installer.tar.bz2 271 307 globus@cress ~ $ tar xjf gt4.2.1-all-source-installer.tar.bz2 272 308 }}} 309 }}} 273 310 * Configure and make sources: 311 {{{ 312 #!div style="font-size: 90%" 313 {{{#!sh 274 314 globus@cress ~ $ cd gt4.2.1-all-source-installer 275 315 globus@cress ~ $ export GLOBUS_LOCATION=/opt/globus/gt421 … … 280 320 Your build completed successfully. Please run make install. 281 321 globus@cress ~/gt4.2.1-all-source-installer $ make install 282 283 * Request host certificates: 322 }}} 323 }}} 324 * Request host certificates. 284 325 * 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 286 330 bogdanl@cress ~ $ su - 287 331 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 289 338 cress ~ # cat /etc/xinetd.d/gridftp 290 339 service gsiftp … … 305 354 nice = 10 306 355 disable = no 307 } 308 309 :* restart xinetd: 356 } 357 }}} 358 }}} 359 360 * restart xinetd: 361 {{{ 362 #!div style="font-size: 90%" 363 {{{#!sh 310 364 cress ~ # /etc/init.d/xinetd restart 365 }}} 366 }}} 311 367 * test it: 312 368 {{{ 369 #!div style="font-size: 90%" 370 {{{#!sh 313 371 bogdanl@cress ~ $ telnet cress 2811 314 372 Trying 150.254.149.134... … … 323 381 bogdanl@cress ~ $ globus-url-copy gsiftp://cress/~/file \ 324 382 gsiftp://cress/~/file2 383 }}} 384 }}}