middleware:Globus/408/server

From Dgiref
Jump to: navigation, search
Please open a NGI-DE ticket if you experience any Installation or Configuration problem.

Contents

Globus Toolkit server v.4.0.8

Prepare

Operating system
  • Scientific Linux v.5.4 64 bit

Optimizing the configuration:


Use minimal operating system installation without firewall. To verify installed packages use the command

  • rpm -qa | grep package_name

Install the following additional packages:

  • yum -y install wget yum rpm make gcc gcc-c++ tar sed zlib openssl

After the installation is complete, turn off any unnecessary services (like gpm, sendmail, cups, haldaemon, messagebus, pcmcia, anacron, atd) with the following command:

  • chkconfig <SERVICE> off

Configure the following settings for the server:

Additional Software
  • Torque and maui client
  • java SDK >= 1.6.0 (from Sun, IBM, HP, or BEA (do not use GCJ))
  • JDBC compliant database. E.g. PostgreSQL 8.1.9 (postgresql, postgresql-libs, postgresql-server)
  • Perl >= 5.8 (with perl-XML-Parser)
  • sudo
  • gcc >= 3.2.1, gcc++
  • xml-commons-jaxp-1.3-apis
  • ant >= 1.6.5
Note-icon.png
  
To make all libraries from ant available do the following as root:
   cd /usr/share/ant/lib
   ln -s /usr/share/java/ant.jar ant.jar
   ln -s /usr/share/java/ant-launcher.jar ant-launcher.jar

WARNING: if your OS includes ant already. Your /etc/ant.conf is probably configured to use gcj, which will fail to compile the Toolkit. You may need to edit /etc/ant.conf or run ant --noconfig to use your clean version.

Note-icon.png
  
Each grid user needs a certificates directory . As grid user create this directory by:
mkdir -p $home/.$user_globus
chown $user_grid /localhome/.$user_globus
Firewall configuration

The GT4 frontend runs GRAM + MDS + GridFTP + RFT services (how to open port in firewall).

Service Incoming ports (TCP) Change to default default
GRAM (GT2) 2119 No
GRAM (GT2) 20000-25000 Yes
WS-GRAM 8443 No
WS-GRAM 20000-25000 Yes
WS-MDS 8443 No
GridFTP 2811 No
GridFTP 20000-25000 Yes
RFT 8443 No

Install

The installation procedure includes the following steps:

  • GPT - Grid Packaging Toolkit will be needed to install the Globus toolkit.
  • Globus Toolkit installation
Note-icon.png
  
After execution gpt-install command wait till the procedure is ready


Configure

Note-icon.png
  
To configure the gsissh, please use the Globus services page
Note-icon.png
  
Please check the grid certificates allocation before to proceed.
Grid Security Infrastructure
In order to use the Globus services Globus user must be authenticated. There are two ways for user authentication in Globus:
  • manually
as grid-user extract the Distinguished name (DN) as the following:
       su $USER
       grid-cert-info -subject /C=DE/O=GridGermany/OU=Leibniz-Rechenzentrum/CN=griduser1
Now, the grid-user should be included to the grid-mapfile. For this, execute as root:
       su root
       grid-mapfile-add-entry -dn<DN>-ln <locale user name for griduser1>
  • automatically
There is the dgridmap script for automatic generation of the grid-mapfile. It is mandatory to execute the dgridmap script regularly (e.g. cron minimum once per 24 hours) for update of the Globus grid-mapfile (see section join D-Grid).
Note-icon.png
  
Grid-mapfile:

The grid-mapfile located in the directory /etc/grid-security/ is necessary for the successful launch of the Globus container. If you have none of it, an empty file with the name grid-mapfile should be created.

In order to work with the Globus services, the following ports must be inserted as root in the file /etc/services:

gsiftp             2811/tcp 
gsigatekeeper      2119/tcp

In /etc/hosts the IP address of the server must be mapped to FQDN as follows: <IP ADDRESS> <FQDN> <hostname>

Furthermore, insert as 'root' the following entries in the file /etc/hosts.allow:

globus-gatekeeper:ALL:ALLOW
globus-gridftp-server:ALL:ALLOW

The required configuration for every Globus service is documented in a separate section using the links from service section


Proceed

Globus Usage statistics

The Globus Toolkit provides functions for submitting personal user information to the Globus Alliance. These functions should be deactivated in the the D-Grid reference installation. Additional information about usage statistics is presented here.

This can be done as follows:

for Java components
in file $GLOBUS_LOCATION/etc/globus_wsrf_core/server-config.wsdd the attribute <globalConfiguration> comment the parameter usageStatisticsTargets with the:
     <!--
     <parameter name="usageStatisticsTargets" 
     value="usage-stats.globus.org:4810"/> 
     -->
for C components
Setup the environment variable GLOBUS_USAGE_OPTOUT with value 1.
Globus start script

The file /etc/init.d/globus-container (should be executed by root) serves as start/stop script for the container.

The contents of the file is as follows:

#!/bin/sh -e
#
# A script to start and stop the Globus Container
#
### BEGIN INIT INFO
# Provides: globus-container
# Required-Start: $network $remote_fs
# Required-Stop: $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
## Description: Start/stop the globus-container service.
### END INIT INFO
case "$1" in
  start)
   su - globus -c "/usr/local/globus/sbin/globus-start-container-detached -p 8443"
     ;;
   stop)
  su - globus -c "/usr/local/globus/sbin/globus-stop-container-detached"
     ;;
  restart)
   $0 stop
   sleep 1
   $0 start
   ;;
  *)
  printf "Usage: $0 {start&#124;stop&#124;restart}\n" >&2
  exit 1
  ;;
esac
Note-icon.png
  
After Toolkit installation, configure the Globus Toolkit services.

Initial test

  • Using a JDL file
    • The following job is described in XML format using the job description language (JDL). It is stated as a parameter during the job submission (see below).
    • First, create as grid user the file torqueJob.xml and fill it with the following content (see script section #Using a JDL file)

A detailed description of the job description language can be found here.

  • Generic Test
  • Torque Test

Update

  • Re-install Globus
Execute commands in installation directory as user 'globus'
  • Deinstallation
This procedure run as 'root' will delete the whole installation and configuration of Globus from the machine:
  • Remove installation directories and files
  • Remove the Globus entries, if they are available.
  • remove for GSI
  • remove for GRAM
  • remove for RFT
  • delete postgressql packages with YaST or YUM
  • Update
The updates for the 64-bit architecture are available. For the 32-bit machines were the same packages with gcc32 packages installed. More current fixes can be found here.

WARNING: Globus 4.0.7 fixes: It is highly recommended to install the following updates after the globus installation.

All the updates can be downloaded from here and must be installed by user globus:

Personal tools