Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have an Ubuntu 7.10 slice on Slicehost running my main web server. I want to update to Ubuntu 8.10 because the repositories are gone for 7.10 and I want the latest security and application upgrades.

Slicehost does not seem to let me dist-upgrade from 7.10 to 8.10, they suggested I buy a new VPS slice, upgrade it to what I need, port my data over, and then reimage my original slice from the 2nd slice. Has anyone else done this? Any better way to do it or pitfalls to watch out for while doing this? How long will my site be down if I use this method? Can I finish it in 2 hours on a Saturday?

share|improve this question
add comment

5 Answers

up vote 2 down vote accepted

There is no reason you should be down at all.

  1. Set your DNS TTL low (30 min or lower if you can), and do it ahead of time.

  2. Get the second slice. Install/port your software to it, and have it staged and ready to go.

  3. Change your DNS. Within the TTL period, users that already had your old IP will still go to the old slice. New users will go to the new slice. After the TTL, everyone is using the new slice.

  4. Reset your DNS TTL to whatever you had.

  5. Retire the original slice. (I don't know why you would want to go back to it, the new slice already has what you want.)

If you have some state or something that has to stay in sync (e.g., user settings), then you might have to take the original slice before updating DNS. Users with the old IP will be down for the TTL period.

You pay for two slices the month you do this. I'm not sure what seems unreasonable about this, or why people think Slicehost might be giving you the run-around.

EDIT: The alternative to paying for two slices would be to upgrade in place: Take down your server, reimage the slice, reinstall your software. You'ld be down for the duration, which would likely be more than 2 hours.

share|improve this answer
    
I don't think it's unreasonable for a host to provide an easy upgrade path, it's in their best business interest for people to buy more service. –  Dana the Sane May 20 '09 at 18:49
    
Agreed. And they have provided a very straight forward upgrade path. The only thing they didn't do is provide support for an unsupported OS (Ubuntu 7.10). –  CoverosGene May 20 '09 at 20:42
add comment

It does seem like your host is giving you the run-around. Most likely, you'll have to have the two VPS's going for about 2 days. The first day to port your application (barring no serious issues), and the second, to give time for dns records to be updated to the new VPS.

If you do go this route, I'd try setting up a local 8.10 server and do a test run of moving your ap (if you haven't already done this). This will give you the closest estimate for how long your move will take.

share|improve this answer
add comment

I think 2 hours would be pushing it, it took me a couple of days when i moved webserver and there was also the time it took to shift my domain to the new server. I think you should talk to slice host about this, they should be more willing to help you upgrade. I am sure you aren't the only customer in this situation.

share|improve this answer
add comment

I'm have a VPS on slicehost myself, and they've never upgraded the dist for me. I'm not totally sure why they suggested a new slice to do the upgrades. What I've done with my slice since Ubuntu 6 something, is just update the sources list, and upgrade up one step at a time.

Like jldugger mentioned, you have to upgrade to 8.04 before going to 8.10.

share|improve this answer
add comment

You can't directly upgrade from 7.10 to 8.10. Instead, you need to upgrade to 8.04 first, then upgrade to 8.10, if that's what you desire.

8.04 is an Long Term Support (LTS) release, and may be more suitable for servers. It's given to 5 years support on the server, 3 on the desktop.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.