E. Ferro, CNAF, aprile LCFG: testbed upgrade Enrico Ferro INFN-LNL
E. Ferro, CNAF, aprile All these informations… …are available on: …are available on: –
E. Ferro, CNAF, aprile Repositories upgrade Upgrade your local RPM repository from datagrid.in2p3.fr/distribution. Upgrade your local RPM repository from datagrid.in2p3.fr/distribution. A script was done by Steve Traylen to simplify the download process: A script was done by Steve Traylen to simplify the download process: – extra/createRepository.sh.txt – genheaders.txt I did not try it but it seems nice. I did not try it but it seems nice.
E. Ferro, CNAF, aprile LCFG server upgrade Some rpms need to be updated/installed also in the LCFG server: 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 edg.i386.rpm –rpm -Uvh obj-filecopy-server edg.i386.rpm –rpm -Uvh obj-inet-server edg.i386.rpm –rpm -Uvh obj-nfs-server edg.i386.rpm –rpm -Uvh obj-nsswitch-server edg.i386.rpm –rpm -Uvh obj-update-server edg.i386.rpm –rpm -Uvh obj-xntpd-server edg.i386.rpm –rpm -Uvh obj-cron-server edg.i386.rpm –rpm -Uvh populate-server edg.i386.rpm
E. Ferro, CNAF, aprile Installroot upgrade The Installroot needs to be updated: The Installroot needs to be updated: –cd /opt/local/linux/installroot –make create
E. Ferro, CNAF, aprile Download latest RPM lists From: From: – Download latest LCFG RPM lists and put them into: /opt/local/linux/6.2/rpmcfg Download latest LCFG RPM lists and put them into: /opt/local/linux/6.2/rpmcfg
E. Ferro, CNAF, aprile Download latest LCFG resources From: From: – Download latest LCFG resource files and put them into: Download latest LCFG resource files and put them into: –/var/obj/conf/profile/source
E. Ferro, CNAF, aprile Customize your resources In theory only site-cfg.h In theory only site-cfg.h
E. Ferro, CNAF, aprile Update the testbed nodes Rebuild and notify the configuration changes with: 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). The first command is a workaround to a LCFG adaptors bug (Bugzilla #317).
E. Ferro, CNAF, aprile Reboot Reboot to ensure that Reboot to ensure that –RPM are updated –Upgraded demons are restarted
E. Ferro, CNAF, aprile 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. 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: After the update of installroot you MUST use this disk image instead of the previous one: – install/packages/disk_images/boot_nfs_ 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 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 "lcfgize-me" New tool: it is possible to install from scratch a node also without the boot diskette New tool: it is possible to install from scratch a node also without the boot diskette But the node must be: But the node must be: –Already up and running –Configured with the lilo bootloader The tool lcfgize-me: 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 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) It is possible to "undo" (the /etc/lilo.conf is not modified) The installation is non interactive The installation is non interactive