EGEE Home | Technical Pages Home | Search | EDMS Documents | People | Calendar | Agenda maker | Glossary

JRA1: Workload Management

Tools Testing Integration Information
Services
Workload
Management
Data
Management
Security Management

JRA1 Home | Workload Management Home | Mandate | People | Meetings | Presentations | Savannah Portal| Useful links | Actions list | EDMS



LB server quick Installation Guide


  LB server node install

0) Start from a fresh install of Scientific Linux CERN.

1) Create a non-privileged user 'glite', group 'glite'.

	  groupadd glite	  
	  adduser -g glite glite

2) _Install globus_ 
   
   Using the rpms from the EGEE external repository install the
   following ones: 
   http://glite.web.cern.ch/glite/packages/externals/bin/rhel30/RPMS/)
	
	gpt-VDT1.2.0rh9-1
	vdt_globus_essentials-VDT1.2.0rh9-1

3) Install and configure a mysql server installing the following rpms:
   (get them from http://glite.web.cern.ch/glite/packages/externals/bin/rhel30/RPMS/)
	
   MySQL-server-4.0.20-0
   MySQL-client-4.0.20-0

   Create the config file /etc/my.cnf with these lines:

[mysqld]
datadir=/var/lib/mysql
socket=/tmp/mysql.sock
                                                                                 
[mysql.server]
user=mysql
basedir=/var/lib
                                                                                 
[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[client]
socket=/tmp/mysql.sock
  		  
4) Install a copy of host key and certificate under ~glite/.cert/host{cert,key}.pem 
   and make sure glite.glite is the owner of both the .cert subdir and
   the certificates inside it.
   (Make sure that the original ones are put under /etc/grid-security
   and that as usual are owned by root).

   Install the rpms of the CA certificates that you need 
   (http://glite.web.cern.ch/glite/packages/externals/bin/rhel30/RPMS/ca_*)
   
   Set these variables in the 'glite' and root login scripts:
       GLITE_HOST_CERT=/home/glite/.cert/hostcert.pem
       GLITE_HOST_KEY=/home/glite/.cert/hostkey.pem
       GLITE_CERT_DIR=/etc/grid-security/certificates   

4b) Install CRL update script (take the rpm as usual from
http://glite.web.cern.ch/glite/packages/externals/bin/rhel30/RPMS/)
   
   edg-fetch-crl

   and added these crontab lines to root account:

GLOBUS_LOCATION=/opt/globus
GLITE_LOCATION=/opt/glite
LD_LIBRARY_PATH=/opt/edg/lib:/opt/glite/lib:/opt/globus/lib
PATH=$PATH:/opt/globus/bin
5 1,7,13,19 * * * /opt/glite/sbin/edg-fetch-crl -o /etc/grid-security/certificates/ -q

5) Update the 'glite' and root login scripts with these lines:
    export GLITE_LOCATION=/opt/glite
    export GLOBUS_LOCATION=/opt/globus
    export LD_LIBRARY_PATH=$GLITE_LOCATION/lib:$GLOBUS_LOCATION/lib

6) Install the LB services using these rpms:

   glite-wms-utils-exception 
   glite-wms-utils-jobid
   glite-lb-server-bones
   glite-lb-client-interface
   glite-lb-common  
   glite-lb-logger
   glite-lb-ws-interface
   glite-lb-server
    
7) Create (as root) the LB database and tables:
 
  mysqlaccess lbserver lbserver20
  
  Open the interactive console of mysql
       mysql
  and give the following commands:
       mysql> CREATE DATABASE  lbserver20;
       mysql> GRANT ALL PRIVILEGES ON lbserver20.* TO lbserver@localhost IDENTIFIED BY '';
       mysql> USE lbserver20;
       mysql> \. /opt/glite/etc/glite-lb-dbsetup.sql
       mysql> exit

8) How to start and stop the server.

   Create the directory /opt/glite/var and make it writable by all
       chmod 777 /opt/glite/var

   then to start the servers use
       /opt/glite/etc/init.d/glite-lb-bkserverd start		    
   to stop them
       /opt/glite/etc/init.d/glite-lb-bkserverd stop  

9 Optional) Creating custom indices

   By default the LB server indexes data according to Jobid only. 
   The server administrator can create and modify the set on indices 
   and control the set of supported queries in the following way, 
   using the /opt/glite/bin/glite-lb-bkindex utility. Is is invoked
   in the following way:

    /opt/glite/bin/glite-lb-bkindex [options] []

    There is a sample configuration file 
    /opt/glite/etc/glite-lb-index.conf.template
    containing definitions of indices on all the currently supported
    indexed system attributes, i.e. "owner", "destination" and "location". 
    
10) _Publish services in R-GMA_, if needed

    * Install and configure R-GMA client as described in 
      http://hepunx.rl.ac.uk/egee/jra1-uk/glite/index.html

    * If not done yet, install and configure a R-GMA site publisher, as
      described in: 
      http://hepunx.rl.ac.uk/egee/jra1-uk/glite/rgma-tools.html

    * Set up a R-GMA service publisher, as described in:
      http://hepunx.rl.ac.uk/egee/jra1-uk/glite/rgma-tools.html
      This is a template for the file 
      /opt/glite/etc/rgma-servicetool/services.xml, that must be modify
      according to your configuration (you should need to change just 
      the Site name and the the EndPoint):

<Services>

  <Site>INFN-CNAF</Site>

  <Service>
    <Endpoint>http://gundam.cnaf.infn.it:0/LB/LB Server</Endpoint>
    <Type>Logging and Bookkeeping server</Type>
    <Version>0.0.0</Version>
    <PublishInterval>20</PublishInterval>
    <StatusScript>/opt/glite/etc/init.d/glite-lb-bkserverd status</StatusScript>
    <StatusInterval>30</StatusInterval>
    <WSDL>n/a</WSDL>
    <Semantics>n/a</Semantics>
  </Service>


       Disclaimer Contact   Last Modified: Thursday, 09-Dec-2004 15:11:44 CET