== /usr/pppl/fusiongrid Notes -- --Monday, 11 July 2005 ==


Goal
  1. Install MIT PSFC build ROAM-enhanced MDSplus/Globus binary
     onto cluster for use as MDSplus, Globus gatekeeper, and Globus
     GridFTP daemons.
  2. Must afterwards set up ROAM resource for TRANSP and modify
     MDSplus/Globus ROAM tdi/roam scriptst to access this resource
     for authorization
  3. Will later build Globus and MDSplus from source for use
     by clients

Note: To install on the cluster, run the rpm on another machine
to a local /usr/pppl directory and then copy that directory to
the cluster.  On the cluster, use the post-install script as a
guide rather than running script.

The following is based on installing fusiongrid-1.0-2.i386.rpm 
downloaded from http://www.mdsplus.org.

INSTALLING THE FUSIONGRID RPM
-----------------------------
After installation
     Add the link $MDSPLUS_DIR/lib/libRoam.so -> libRoam_gcc32.so
When setting up servers
     Add globus-gatekeeper-sh and globus-gridftp-server-sh
      scripts from present /usr/pppl/fusiongrid build
     Update gsigatekeeper and gsiftp xinetd scripts
      - To use above *-sh scripts
      - Add GLOBUS_TCP_PORT_RANGE=50000,50009     

INSTALLING THE FUSIONGRID RPM ON A NON_DEFAULT DIRECTORY
--------------------------------------------------------
Use rpm to install
     dir=
     rpmfile=
     rpm -Uvh --relocate /usr/local=$dir $rpmfile

Change these files containing /usr/local or /tmp/fusiongrid/usr/local
These are required
     $MDSPLUS_DIR/setup.sh
     $MDSPLUS_DIR/setup.csh      
     $MDSPLUS_DIR/etc/globus-gatekeeper.conf
     $MDSPLUS_DIR/etc/globus-job-manager.conf
     $MDSPLUS_DIR/rpm/fusiongrid-mdsips.xinetd
     $MDSPLUS_DIR/rpm/fusiongrid-mdsip.xinetd
     $MDSPLUS_DIR/libexec/globus-job-manager-mds-provider
     $MDSPLUS_DIR/libexec/globus-job-manager-script.pl
     $MDSPLUS_DIR/libexec/globus-job-manager-service
Also critical to change /usr/local and /tmp/fusiongrid/usr/local
  references
     etc/grid-security/gsi-authz.conf
       in $MDSPLUS_DIR/setup/grid-security.tgz
These new files may need changing of /usr/local
    $MDSPLUS_DIR/sbin/globus-gatekeeper-sh
    $MDSPLUS_DIR/sbin/globus-gridftp-server-sh
There are many others which do not appear to need changing
     $MDSPLUS_DIR/lib/...
     $MDSPLUS_DIR/setup/...
     $MDSPLUS_DIR/bin/...
     $MDSPLUS_DIR/include/...


ACTIONS BASED ON POST_INSTALL SCRIPT
------------------------------------
Before looking at this script, be aware
  The addition of /etc/grid-security/gsi-authz.conf
   will affect all globus servers running on other ports
   or from this system disk if it is shared.
  Fix is to add "LD_LIBRARY_PATH $MDSPLUS_DIR/lib"
   to xinetd scripts starting those servers.
What gets added  on the system disk (and /root)
  /etc/grid-security signing policy files and other stuff
  /etc/grid-security/gsi-authz.conf
  /etc/mdsip.hosts
What gets added if you say yes to services install
  /etc/services updated
  /etc/xinetd.d/mdsip
  /etc/xinetd.d/mdsips
  /etc/xinetd.d/globus-gatekeeper
  /etc/xinetd.d/globus-gridftp

IF YOU DO NOT ADD A /ETC/.MDSPLUS_DIR
--------------------------------------
These files must be changed to run MDSplus servers
  $MDSPLUS_DIR/bin/mdsipd
  $MDSPLUS_DIR/bin/mdsipsd