middleware:Globus/42/server

From Dgiref
Jump to: navigation, search

See also troubleshooting for this page.


Please open a NGI-DE ticket if you experience any Installation or Configuration problem.

Contents

Globus Toolkit server v.4.2

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 & maui client
  • java SDK >= 1.6.0 (from Sun, IBM, HP, or BEA (do not use GCJ))
  • PostgreSQL 8.1.9 (postgresql, postgresql-libs, postgresql-server)
  • Perl 5.8.8 (with XML::PARSER)
  • sudo
  • ant version >= 1.6.5

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
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:

  • Download the GT binary
  • Install with gpt-install
  • Post-installation with gpt-postinstall

Configure

Note-icon.png
  
To configure the gsissh, please use the Globus services page. Please check the grid certificates allocation before to proceed.
Globus user must be authenticated to use the services. There are two ways for user authentication in Globus - manually or automatically.
  • 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.

  • 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>
  • Configure /etc/services
To make the Globus services available, the following ports must be inserted as root in the file /etc/services:
       gsiftp             2811/tcp 
       gsigatekeeper      2119/tcp
  • Configure /etc/hosts

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

  • Configure /etc/hosts.allow
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. Additional information about usage statistics is presented here.
  • These functions should be deactivated in the the D-Grid reference installation. 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
  • create the /etc/init.d/globus-container file, which serves as start/stop script for the container with the following content:
#!/bin/sh -e
# use RedHat feature:
# chkconfig: 345 80 50
#
# 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
  • the /etc/init.d/globus-container should be executed by root:
Note-icon.png
  
Do not run the /etc/init.d/globus-container before install the Globus Toolkit services.

Initial test

  • Using a JDL file (job description language)
    • 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)
  • Using the voms-proxy-init (e.g. voms-proxy-init -voms dgtest:/dgtest/admin:softwareadmin)

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