Release notes for the gLite 3.1 WMS Checkpointing release (patch #1251
)
These notes describe the WMS checkpoint release 1251 with VDT 1.2.x for SL3
APT configuration
Please use the following repository to install:
http://gimo.pd.infn.it:25555/rep/wmslb-i386/RPMS/
To use apt-get, create
glite.list in
/etc/apt/sources.list.d with the following contents.
rpm http://gimo.pd.infn.it:25555/ rep/wmslb-i386 wmslb_patch1251 glite ig externals
For CAs, you may need the following apt-get repository (for example in
lcg-ca.list)
rpm http://linuxsoft.cern.ch/ LCG-CAs/current production
Host certificate installation
- Copy to /etc/grid-security your host and key certificates and then set the right permissions:
chmod 600 /etc/grid-security/hostcert.pem
chmod 400 /etc/grid-security/hostkey.pem
YAIM installation and configuration
Install glite-yaim and ig-yaim (use version glite-yaim-core-3.1.0-2.3)
apt-get update
apt-get install glite-yaim-core
apt-get install ig-yaim
If you use a different repository you need to download the previous rpm from here:
ig-yaim
Site-info.def customization
Prepare your customized site-info.def starting from the template provided by ig-yaim (/opt/glite/yaim/examples/siteinfo/ig-site-info.def).
Below we describe the variables that affect the ig_WMS31 configuration process in the order you find them in the ig-site-info.def template.
For more detailed information please refer to the official Site Installation Guide. An
example has been attached.
General variables |
Notes |
MY_DOMAIN |
Local domain name |
INSTALL_ROOT |
Where yaim conf files are locate |
Yaim related variables |
USERS_CONF |
Leave the default |
GROUPS_CONF |
Leave the default |
FUNCTIONS_DIR |
Leave the default |
YAIM_VERSION |
Leave the default |
Repository variables (Change them only if needed) |
INSTALL_SERVER_HOST |
Local install server that hosts repositories (if present) |
OS_REPOSITORY |
Operating system repository |
LCG_REPOSITORY |
Glite rpms repository |
IG_REPOSITORY |
InfnGrid repository |
CA_REPOSITORY |
CA repository |
REPOSITORY_TYPE |
Leave the default: apt |
Information system variables |
SITE_EMAIL |
Site administrator email |
SITE_NAME |
Site name |
BDII_HOST |
Set it to the referred BDII |
BDII_SITE_TIMEOUT |
Leave the default |
BDII_RESOURCE_TIMEOUT |
Leave the default |
BDII_HTTP_URL |
Set it to the referred BDII configuration file |
Other variables |
JAVA_LOCATION |
Set to the home of the current installed Java |
VOS |
List of supported VOs |
GLOBUS_TCP_PORT_RANGE |
Leave the default |
LB_HOST |
Set it to the list of available LB, e.g. LB_HOST=”host1:port1 host2:port2 host3:port3” |
MYSQL_PASSWORD |
Set the password for MySql database |
WMS 3.1 installation
Install ig_WMS31 profile usign YAIM
/opt/glite/yaim/bin/ig_yaim_wms31 -i -s <site-info.def> -m ig_WMS31
where <site-info.def> is the path of your customized site-info.def
WMS 3.1 Post Installation
Modify these scripts:
- /opt/glite/etc/init.d/glite-wms-wm
- /opt/glite/etc/init.d/glite-wms-wmproxy
in this way:
#########################################################
#
# Integration changes
-. ${GLITE_LOCATION}/etc/glite-wms-vars.sh
-. ${GLITE_LOCATION}/libexec/glite-wms-services-certs.sh
-. ${GLITE_LOCATION}/etc/profile.d/glite-wms.sh
-. ${GLITE_LOCATION}/etc/profile.d/glite-wms-config.sh
-#
-#########################################
+#. ${GLITE_LOCATION}/etc/glite-wms-vars.sh
+#. ${GLITE_LOCATION}/libexec/glite-wms-services-certs.sh
+#. ${GLITE_LOCATION}/etc/profile.d/glite-wms.sh
+#. ${GLITE_LOCATION}/etc/profile.d/glite-wms-config.sh
+
+. /opt/glite/yaim/etc/grid-env-funcs.sh
+. /etc/glite/profile.d/glite_setenv.sh
WMS 3.1 Configuration
Configure ig_WMS31 profile using YAIM
/opt/glite/yaim/bin/ig_yaim_wms31 -c -s <site-info.def> -n ig_WMS31
where <site-info.def> is the path to your customized site-info.def
Manual step (should be integrate in the automatic procedures)
- Change the cron job glite-wms-purger.cron for the purger using this one:
HOME=/
MAILTO=root@localhost
# Execute the 'purger' command at every day except on Sunday with a frequency of one hour
# if and only if the percentage of allocated blocks is greater than 40%
0 */6 * * mon-sat root . /opt/glite/etc/profile.d/grid-env.sh ; $GLITE_LOCATION/sbin/glite-wms-purgeStorage.sh -l $GLITE_LOCATION_LOG/glite-wms-purgeStorage.log -p /var/glite/SandboxDir -t 604800 -a 40 > /dev/null
# Execute the 'purger' command at 4:00 AM, 8:00 AM, 12:00 noon, 4:00 PM,
# and 8:00 PM (0 */4) on each Sunday (sun).
0 */4 * * sun root . /opt/glite/etc/profile.d/grid-env.sh ; $GLITE_LOCATION/sbin/glite-wms-purgeStorage.sh -l $GLITE_LOCATION_LOG/glite-wms-purgeStorage.log -p /var/glite/SandboxDir -t 604800 > /dev/null
- Run $GLITE_LOCATION/sbin/glite-wms-purgeStorage.sh one time to create the /var/glite/wms.proxy first time
- Create a cron job to rotate wmproxy logs glite-wms-wmproxy-logrotate.cron (first copy /opt/glite/etc/wmproxy_logrotate.conf.template in /opt/glite/etc/wmproxy_logrotate.conf.template and modify it if necessary):
HOME=/
MAILTO=root@localhost
0 */2 * * * root /usr/sbin/logrotate -v /opt/glite/etc/wmproxy_logrotate.conf >> /var/log/glite/wmproxy_logrotate.log 2>&1
- Create a cron job lb-purger.cron to clean periodically LB databases (set the right name of the LB server):
#! /bin/sh
GLITE_LB_EXPORT_BKSERVER="<LB SERVER NAME>"
# run every day at 01:00
0 1 * * * glite . /etc/profile.d/grid-env.sh ; $GLITE_LOCATION/sbin/glite-lb-export.sh >> /var/log/glite/lb_purger.log 2>&1
First apply these changes to
$GLITE_LOCATION/sbin/glite-lb-export.sh
--- /opt/glite/sbin/glite-lb-export.sh.orig 2007-07-31 15:58:40.000000000 +0200
+++ /opt/glite/sbin/glite-lb-export.sh 2007-07-31 15:59:08.000000000 +0200
@@ -39,7 +39,7 @@
# directory with exported data (file per job)
GLITE_LB_EXPORT_JOBSDIR=${GLITE_LB_EXPORT_JOBSDIR:-/tmp/lbexport}
# purge args (timeouts)
-GLITE_LB_EXPORT_PURGE_ARGS=${GLITE_LB_EXPORT_PURGE_ARGS:---cleared 2d --aborted 2w --cancelled 2w --other 2m}
+GLITE_LB_EXPORT_PURGE_ARGS=${GLITE_LB_EXPORT_PURGE_ARGS:---cleared 2d --aborted 15d --cancelled 15d --other 60d}
# Book Keeping Server
GLITE_LB_SERVER_PORT=${GLITE_LB_SERVER_PORT:-9000}
GLITE_LB_EXPORT_BKSERVER=${GLITE_LB_EXPORT_BKSERVER:-localhost:$GLITE_LB_SERVER_PORT}
-- Main.gianelle - 19 Jul 2007