SI2006 track1 GT4 Installation and Configuration

From NBCRwiki

Jump to: navigation, search

Back to Track 1

Contents

Required Software

PostgreSQL (8.1 is recommended)

  • Create a postgres user, no login is necessary.
  • Download from PostgreSQL Official site
  • $ tar xvzf postgresql-8.1.4.tar.gz
  • $ cd postgresql-8.1.4
  • $ ./configure --prefix=/export/apps/pgsql
    Note: if report that missing readline lib and readline header, please install readline-devel-4.3-13.i386.rpm
  • $ make
  • $ su
  • # make install (by default, pgsql will be installed at /usr/local/pgsql)
  • # useradd postgres (pgsql administrator)
  • # mkdir /usr/local/pgsql/data
  • # chown postgres /usr/local/pgsql/data
  • # su - postgres
  • # mkdir /export/apps/pgsql/data (or /usr/local/pgsql/data)
  • # /export/apps/pgsql/bin/initdb -D /export/apps/pgsql/data -A trust
    -A trust option required by Gfarm
  • $ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data (init database)

JDK (1.5 is recommended)

JDK in rocks4.1 is ok

Ant (1.6.5 is recommended)

Ant in rocks4.1 is ok

Full GT4 Installation

  • # su - globus
  • Download gt4.0.2-x86_rhas_3-installer.tar.gz or other approriate architecture
  • $ tar xvzf gt4.0.2-x86_64_rhas_3-installer.tar.gz
  • $ cd gt4.0.2-x86_64_rhas_3-installer
  • $ export GLOBUS_LOCATION=/opt/gt4
  • $ ./configure --prefix=$GLOBUS_LOCATION
  • $ make
  • $ make install

Configuration

Environment Variables

add these to user globus' .bash_profile

 $ export GLOBUS_LOCATION=/opt/gt4
 $ export GPT_LOCATION=$GLOBUS_LOCATION
 $ export PATH=$PATH:$GLOBUS_LOCATION/bin:$GLOBUS_LOCATION/sbin:/usr/local/pgsql/bin
 $ . $GLOBUS_LOCATION/etc/globus-user-env.sh (or $ source $GLOBUS_LOCATION/etc/globus-user-env.csh)
 $ . $GLOBUS_LOCATION/etc/globus-devel-env.sh (or $ source $GLOBUS_LOCATION/etc/globus-devel-env.csh

Security Configuration

setup hostcert.pem, hostkey.pem, CA certificates and gridmap-file at /etc/grid-security

 # cd /etc/grid-security
 # cp hostcert.pem containercert.pem
 # cp hostkey.pem containerkey.pem
 # chown globus.globus container*.pem
 # chmod 600 containerkey.pem

WS GRAM Configuration

Use visudo and add the two line, add users' name whom want to use WS GRAM in brackets:

 globus  ALL=(user1,user2) NOPASSWD: /opt/gt4/libexec/globus-gridmap-and-execute -g /etc/grid-security/grid-mapfile /opt/gt4/libexec/globus-job-manager-script.pl *
 globus  ALL=(user1,user2) NOPASSWD: /opt/gt4/libexec/globus-gridmap-and-execute -g /etc/grid-security/grid-mapfile /opt/gt4/libexec/globus-gram-local-proxy-tool *

Install scheduler-adapter for WS GRAM

  1. for LSF, PBS, Condor (take pbs as example)
    • $ su - globus
    • $ cd gt4.0.2-x86_rhas_3-installer
    • $ make gt4-gram-pbs/condor
    • $ make install
  2. for SGE

RFT Configuration

  • # su - postgres
  • # vi /usr/local/pgsql/data/pg_hda.conf
    Add a line:
host rftDatabase "globus" "<server IP address here>" 255.255.255.255 md5
  • $ /usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data&
  • $ createuser globus --pwprompt
  • give a password for dababase user "globus", and answer yes for create database privilege
  • $ su - globus
  • $ /usr/local/pgsql/bin/createdb rftDatabase
  • $ /usr/local/pgsql/bin/psql -d rftDatabase -f $GLOBUS_LOCATION/share/globus_wsrf_rft/rft_schema.sql
  • $ vi $GLOBUS_LOCATION/etc/globus_wsrf_rft/jndi-config.xml
  • find jdbc:mysql:///rftDatabase and replace the password value with database user "globus" 's password

Verification

Verify WS GRAM

  • $ su - globus
  • $ globus-start-container
  • open another terminal
  • $ su - <username>
  • $ grid-proxy-init
  • $ globusrun-ws -submit -c /bin/touch touchfile

Verfiy Index Service(WS MDS)

 $ wsrf-query -s https://<GT4.host.name>:8443/wsrf/services/DefaultIndexService "//*[name()='ns1:MemberServiceEPR']"

Back to Track 1

Personal tools