Upgrade an existing installation
Upgrading the configuration
Upgrading the configuration files of the various components used by ComputeMode (dhcpd, dnsd, etc) is done manually through retrieval of a new tarball with the latest configuration files.
# wget http://computemode.imag.fr/files/cm-conf-files-squeeze.tgz # tar -xvzf cm-conf-files-squeeze.tgz -C / --backup --suffix=.old_cm-conf-file
Bind cached files must be set with the right owner/group:
# chown -R bind:bind /var/cache/bind
After upgrading, you can see the list of changed files using the following command:
# find / -type f -name '*.old_cm-conf-file'
Check that your changes are good, you can remove the backup files with:
# find / -type f -name '*.old_cm-conf-file' -delete
After upgrading the configuration, you should restart the host to ensure every service is restarted with the new configuration:
# /etc/init.d/nis restart # /etc/init.d/nfs-kernel-server restart # /etc/init.d/bind9 restart # /etc/init.d/isc-dhcp-server restart # /etc/init.d/oar-server restart
Upgrading the Web interface
Upgrading the web interface is done through the Debian package infrastructure. The prefered method is to use the ComputeMode repository to retrieve new releases through the usual way:
# apt-get update # apt-get upgrade
Beware that new releases can reset the ComputeMode database because of incompatible changes. You should always backup nodes before an update through the web interface, new releases should either be able to manage all CSV dumps or provide instructions to convert them.
Upgrading the node images
Upgrading the node images is done manually through retrieval of a new tarball with the latest version. Sadly, we cannot yet save any custom modification done to the node images (like installed packages).
First, you should save your old node images, in case you want to access your old files:
# mv /cm/debian /cm/debian.prev
Now, you can install the new image. If you are using x86_64 nodes:
# wget http://computemode.imag.fr/files/cm-node-squeeze-amd64.tar.gz # tar xvzf cm-node-squeeze-amd64.tar.gz -C /
If you are using i386 nodes:
# wget http://computemode.imag.fr/files/cm-node-squeeze-i386.tar.gz # tar xvzf cm-node-squeeze-i386.tar.gz -C /
Now you can reconfigure the new image:
# sh /cm/debian/post-build.sh
If you want to compare both images, you can use the diff(1) command:
# diff -ru /cm/debian.prev /cm/debian
Now you can re-apply your customizations to the new images, and remove /cm/debian.prev when you are done.