Upgrading Ubuntu 10.04 to 12.04 - Anything to look out for?

Sorry for the vague question but …

I have a Linode 512 happily running Ubuntu 10.04 LTS. I want to upgrade to 12.04 LTS because I need a newer PHP to run Symfony.

I'm reading this: http://library.linode.com/upgrading/upg … 04-precise">http://library.linode.com/upgrading/upgrade-to-ubuntu-12.04-precise

and https://help.ubuntu.com/community/Preci … mmended.29">https://help.ubuntu.com/community/PreciseUpgrades#NetworkUpgradeforUbuntuServers_.28Recommended.29

For those who have done it recently, are there any gotchas that I should look out for?

I don't think I have anything particularly unusual running and anything critical has come from apt-get.

I have the Linode backup service so I will make a snapshot first.

I don't know why I thought this but somehow I had the impression that a clean install was only good way to go but upgrading certainly seems like a reasonable and much easier option.


3 Replies

I upgraded a while back, and the biggest (only?) issue I ran into was php-fpm looking for the pool configuration files in a different place. That was somewhat expected though, since the php-fpm I was using on 10.04 was from a ppa. logwatch seems to be a bit different too, but I haven't really been motivated to look into it since it's still giving me the information I need.

Can't help you with the specific upgrade, but some generic advice: if you want to avoid downtime, you're better off doing the following. Get a new Linode the same size as your current one in the same datacenter, and clone the existing Linode. Perform the upgrade on the new Linode and fool with it until everything's working the way you want. Shut down external-facing services on the old Linode and copy over to the new one any changes in data since the clone was made (usually database files, but also mail and uploads, if you allow those). Switch the IPs between the two Linodes.

Now your new Linode will be running 12.04 and acting as your server. Once you're satisfied everything is OK, remove the old Linode. You'll be billed a little extra since you'll be running two Linodes instead of one for a day or two, but since charges are prorated it's not much of an expense.

The backup, upgrade, restore-if-a-problem-occurs method also works, but at the risk of more downtime.

Thanks. It worked perfectly.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct