Difference between revisions of "Upgrading Quattor managed glite servers"

From PDP/Grid Wiki
Jump to navigationJump to search
Line 11: Line 11:
 
== As normal-user@stal ==
 
== As normal-user@stal ==
 
Assuming you have a working Quattor environment, in particular $L points to a usable Quattor checkout.
 
Assuming you have a working Quattor environment, in particular $L points to a usable Quattor checkout.
 +
First argument of rpmUpdates.pl script is the directory of the mirror created as ndpfmgr before.
  
 +
# ~ronalds/src/nl.nikhef.ndpf.quattor-config/bin/rpmUpdates.pl /project/quattor/www/html/mirror/glite/3.1/generic/sl4/x86_64/updates/ > /tmp/31-i386
 +
# ~ronalds/src/nl.nikhef.ndpf.quattor-config/bin/rpmUpdates.pl /project/quattor/www/html/mirror/glite/3.1/generic/sl4/x86_64/updates/ > /tmp/31-x86-64
 
# cd $L/cfg
 
# cd $L/cfg
# cp /tmp/glite-3.1-update-31.tpl ./ (the file created as ndpfmgr in the first step)
+
# cp /tmp/glite-3.1-update-31.tpl ./  
 
# cd $L/cfg/grid/glite-3.1/update/
 
# cd $L/cfg/grid/glite-3.1/update/
 
# cp -a 29 31
 
# cp -a 29 31
 
# find $L/cfg/grid/glite-3.1/update/31 -type d -name CVS -exec rm -rf {} \; (delete the CVS files, this command will change when moving to subversion)
 
# find $L/cfg/grid/glite-3.1/update/31 -type d -name CVS -exec rm -rf {} \; (delete the CVS files, this command will change when moving to subversion)
 
# for file in `find 31 -name \*.tpl | xargs grep -H "/29/"|awk -F : '{print $1}'`; do  sed -i "s/\/29\//\/31\//g" $file; done (replace the old update nr with the new one).
 
# for file in `find 31 -name \*.tpl | xargs grep -H "/29/"|awk -F : '{print $1}'`; do  sed -i "s/\/29\//\/31\//g" $file; done (replace the old update nr with the new one).
# replace the entries in $L/cfg/grid/glite-3.1/update/31/{i386,x86_64}/rpms.tpl with entries in glite-3.1-update-31.tpl, take care to uncomment torque packages and that the manualy added packages are appended
+
# replace the entries in $L/cfg/grid/glite-3.1/update/31/{i386,x86_64}/rpms.tpl with entries in glite-3.1-update-31.tpl, take care to uncomment torque packages and that the manualy added packages are appended.
 +
# makexprof -u -f itb tbn09 (try to compile it for some testbed node)
 +
# if OK, submit the changes to CVS

Revision as of 16:20, 1 October 2008

Upgrading to a new glite release

The following notes were taken during the upgrade from glite-3.1-update-29 to glite-3.1-update-31.

As ndpfmgr@stal

  1. Run the skript ~/bin/mirror-glite-3.1

This creates a Quattor template file in /tmp which can be used to create a cern-mirror of the latest glite in /project/quattor/www/html/mirror/glite (fetch release from: http://glitesoft.cern.ch/EGEE/gLite/).

As normal-user@stal

Assuming you have a working Quattor environment, in particular $L points to a usable Quattor checkout. First argument of rpmUpdates.pl script is the directory of the mirror created as ndpfmgr before.

  1. ~ronalds/src/nl.nikhef.ndpf.quattor-config/bin/rpmUpdates.pl /project/quattor/www/html/mirror/glite/3.1/generic/sl4/x86_64/updates/ > /tmp/31-i386
  2. ~ronalds/src/nl.nikhef.ndpf.quattor-config/bin/rpmUpdates.pl /project/quattor/www/html/mirror/glite/3.1/generic/sl4/x86_64/updates/ > /tmp/31-x86-64
  3. cd $L/cfg
  4. cp /tmp/glite-3.1-update-31.tpl ./
  5. cd $L/cfg/grid/glite-3.1/update/
  6. cp -a 29 31
  7. find $L/cfg/grid/glite-3.1/update/31 -type d -name CVS -exec rm -rf {} \; (delete the CVS files, this command will change when moving to subversion)
  8. for file in `find 31 -name \*.tpl | xargs grep -H "/29/"|awk -F : '{print $1}'`; do sed -i "s/\/29\//\/31\//g" $file; done (replace the old update nr with the new one).
  9. replace the entries in $L/cfg/grid/glite-3.1/update/31/{i386,x86_64}/rpms.tpl with entries in glite-3.1-update-31.tpl, take care to uncomment torque packages and that the manualy added packages are appended.
  10. makexprof -u -f itb tbn09 (try to compile it for some testbed node)
  11. if OK, submit the changes to CVS