Upgrading your Debian VPS from lenny to squeeze
Revision as of 09:39, 16 February 2012 by Strugglers (talk | contribs) (→Before Rebooting: Specify the correct kernel)
Below are my notes recorded when migrating from Debian 5.0 (lenny) to 6.0 (squeeze) on my BitFolk VPS; hopefully others will expand upon it with their own notes.
Background Work
- Recommended: Move to UUIDs or LABELs in /etc/fstab and /boot/grub/menu.list (kernel and kopt lines) if that isn't already the case.
- Remove clocksource=jiffies from your kopt line if you have it in /boot/grub/menu.list.
- Is your root partition on /dev/xvda1 (as opposed to /dev/xvda)? If so, make sure that fdisk -l /dev/xvda works. If it doesn't you need to have your /dev/xvda1 device renamed to /dev/xvda. Contact support if that's the case.
- Check if you have xen.independent_wallclock in /etc/sysctl.conf; remove it if you do.
- Ensure you have working console access in case networking doesn't come up
- Recommended: Contact support and request a snapshot of the VPS before upgrading in case it goes wrong
Perform the Upgrade
- Add the following to /etc/apt/sources.list for stable (non-security) updates:
deb http://apt-cacher.lon.bitfolk.com/debian/ftp.uk.debian.org/debian/ squeeze-updates main non-free- The above replaces Debian Volatile, so remove any references to volatile.
- Follow the upgrade instructions at http://www.debian.org/releases/squeeze/i386/release-notes/ch-upgrading.en.html
Before Rebooting
- Make sure you have grub-legacy installed.
- Run update-grub to see which kernels it finds.
- Make sure that your /boot/grub/menu.lst is actually going to boot into the right kernel. For squeeze this is usually linux-image-686-bigmem.
After Rebooting
- Make sure all of your services are working properly
After a Successful Upgrade
- Remember to let support know they can release your VPS snapshot, but make sure everything is ok first
Alternatives to upgrading in-place
If you can't afford the down time then you might like to take advantage of BitFolk's free offer of a new VPS to migrate to over a period of two weeks.
You can also completely reinstall your VPS yourself to a range of distributions. Upgrading Debian distributions in-place usually works well, however.