LCFG: testbed upgrade - To the INFN WWW Server
Transcript
LCFG: testbed upgrade - To the INFN WWW Server
LCFG: testbed upgrade Enrico Ferro INFN-LNL E. Ferro, CNAF, aprile 2002 1 All these informations… ? …are available on: – http://www.lnl.infn.it/datagrid/wp4-install E. Ferro, CNAF, aprile 2002 2 1. Repositories upgrade ? Upgrade your local RPM repository from datagrid.in2p3.fr/distribution. ? A script was done by Steve Traylen to simplify the download process: – http://www.gridpp.ac.uk/tb-support/lcfgextra/createRepository.sh.txt – http://www.gridpp.ac.uk/tb-support/lcfg-extra/Makefilegenheaders.txt ? I did not try it but it seems nice. E. Ferro, CNAF, aprile 2002 3 2. LCFG server upgrade ? Some rpms need to be updated/installed also in the LCFG server: – cd /opt/local/linux/6.2/RPMS/LCFG – rpm -Uvh config-defaults-rpmcfg-server -1.0.022.edg.i386.rpm – rpm -Uvh obj-filecopy-server-1.0-7.edg.i386.rpm – rpm -Uvh obj-inet-server -1.0-0.6.edg.i386.rpm – rpm -Uvh obj-nfs-server -1.0-0.9.edg.i386.rpm – rpm -Uvh obj-nsswitch -server -1.0-0.4.edg.i386.rpm – rpm -Uvh obj-update-server -1.0-18.edg.i386.rpm – rpm -Uvh obj-xntpd-server-1.0-2.edg.i386.rpm – rpm -Uvh obj-cron-server-1.0-1.edg.i386.rpm – rpm -Uvh populate-server -1.0-13.edg.i386.rpm E. Ferro, CNAF, aprile 2002 4 3. Installroot upgrade ? The Installroot needs to be updated: – cd /opt/local/linux/installroot – make create E. Ferro, CNAF, aprile 2002 5 4. Download latest RPM lists ? From: – http://datagrid.in2p3.fr/cgi -bin/cvsweb.cgi/edg-release/rpmlist ? Download latest LCFG RPM lists and put them into: /opt/local/linux/6.2/rpmcfg E. Ferro, CNAF, aprile 2002 6 5. Download latest LCFG resources ? From: – http://datagrid.in2p3.fr/cgi -bin/cvsweb.cgi/edg-release/source/ ? Download latest LCFG resource files and put them into: – /var/obj/conf/profile/source E. Ferro, CNAF, aprile 2002 7 6. Customize your resources ? In theory only site-cfg.h E. Ferro, CNAF, aprile 2002 8 7. Update the testbed nodes ? Rebuild and notify the configuration changes with: – touch /var/obj/conf/profile/source/linuxdef-cfg.h – /usr/sbin/mkxprof -n -A -R ? The first command is a workaround to a LCFG adaptors bug (Bugzilla #317). E. Ferro, CNAF, aprile 2002 9 8. Reboot ? Reboot to ensure that – RPM are updated – Upgraded demons are restarted E. Ferro, CNAF, aprile 2002 10 9. New boot disk ? A new boot disk was created to solve the problem of BOOTP protocol (now we use DHCP) and to add the support for Realtek Ethernet card. ? After the update of installroot you MUST use this disk image instead of the previous one: – http://www.lnl.infn.it/datagrid/wp4install/packages/disk_images/boot_nfs_25032002.img ? The problem of the length of the pathname (e.g. short link to /opt/local/linux/6.2/installroot) and the URL of the LCFG server was solved E. Ferro, CNAF, aprile 2002 11 10. "lcfgize-me" ? New tool: it is possible to install from scratch a node also without the boot diskette ? But the node must be: – Already up and running – Configured with the lilo bootloader ? The tool lcfgize-me: – Copy existing lilo.conf to a temporary location – Add the new kernel – Run lilo using this temporary configuration ? The new kernel will be the default image for the next boot; it will mount the installroot via NFS and start the standard LCFG installation process ? It is possible to "undo" (the /etc/lilo.conf is not modified) ? The installation is non interactive E. Ferro, CNAF, aprile 2002 12