Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun May 15, 2011 7:32 pm 
Offline
Newbie

Joined: Sun Feb 15, 2009 3:13 am
Posts: 3
I only have one linode running my live site. I'd love to rebuild my linode with ubuntu 11.04.
In order to minimize downtime, what's your strategy gracefully informing users of site maintenance? Do you redirect the site to some temporary maintenance page somewhere?


Top
   
PostPosted: Sun May 15, 2011 7:34 pm 
Offline
Senior Member

Joined: Mon Jul 05, 2010 5:13 pm
Posts: 392
coughman wrote:
I'd love to rebuild my linode with ubuntu 11.04.


Why?

Not to stifle your joy here, but if it's working, and you don't need a specific feature of the new version, why upgrade?


Top
   
 Post subject:
PostPosted: Sun May 15, 2011 7:39 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Assuming you have a good reason to upgrade to a non-lts release, best thing to do is buy a 2nd node, create it how you want, shutdown both nodes, then swap the ips. (note both must be in the same data centre)

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sun May 15, 2011 9:16 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
+1 for second linode followed by IP swap. If you do it properly, you will have less than 1 minute of downtime. Then you won't need to worry about putting up "Under maintenance" signs or any such inconvenience.


Top
   
 Post subject:
PostPosted: Mon May 16, 2011 9:57 am 
Offline
Junior Member

Joined: Wed Oct 06, 2010 2:41 pm
Posts: 20
I used the IP swap trick for a 512->768 upgrade, and it worked well. One thing to keep an eye out for is that swapping the IPs will shutdown the linodes for you, but it won't automatically queue a boot job. I spent several minutes waiting for the new linode to come back up only to realize it was waiting for me to tell it to start. Fortunately, this was a trial run on a site that wasn't live yet, so no harm done.

Other things:
- Make sure the new linode's configured with DHCP so it'll pick up the changed address when it boots after you do the switch. Or you could statically configure it with the proper address, though you'll need to be careful not to shoot yourself in the foot.
- Adding a private IP to a linode requires a shutdown/reboot. If you've got a lot of data to transfer between the old and new linodes, you'll want a private IP so it doesn't eat up your bandwidth.
- Keeping track of what changes you make to the default OS setup makes the process run a lot smoother in the future. I've got a text file full of commands that I can copy-and-paste to reproduce the setup of my linode. It's not worth making a proper stack script since rebuilding it is a very rare occurrence, but it's helpful to have a reference of what I've done.


Top
   
 Post subject:
PostPosted: Mon May 16, 2011 11:16 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
For a 512->768 upgrade, though, a simple resize can be done in-place. It leads to a little bit of extra downtime, but it's a lot simpler.


Top
   
 Post subject:
PostPosted: Wed May 18, 2011 8:24 pm 
Offline
Newbie

Joined: Sun Feb 15, 2009 3:13 am
Posts: 3
Thanks for all your advice guys.

Stupid question, how do you configure the linode with DHCP?

Erasmus Darwin wrote:
I used the IP swap trick for a 512->768 upgrade, and it worked well. One thing to keep an eye out for is that swapping the IPs will shutdown the linodes for you, but it won't automatically queue a boot job. I spent several minutes waiting for the new linode to come back up only to realize it was waiting for me to tell it to start. Fortunately, this was a trial run on a site that wasn't live yet, so no harm done.

Other things:
- Make sure the new linode's configured with DHCP so it'll pick up the changed address when it boots after you do the switch. Or you could statically configure it with the proper address, though you'll need to be careful not to shoot yourself in the foot.
- Adding a private IP to a linode requires a shutdown/reboot. If you've got a lot of data to transfer between the old and new linodes, you'll want a private IP so it doesn't eat up your bandwidth.
- Keeping track of what changes you make to the default OS setup makes the process run a lot smoother in the future. I've got a text file full of commands that I can copy-and-paste to reproduce the setup of my linode. It's not worth making a proper stack script since rebuilding it is a very rare occurrence, but it's helpful to have a reference of what I've done.


Top
   
 Post subject:
PostPosted: Wed May 18, 2011 11:03 pm 
Offline
Newbie

Joined: Sun Feb 15, 2009 3:13 am
Posts: 3
Never mind. Figured out DHCP is enabled by default. Thanks guys.

coughman wrote:
Thanks for all your advice guys.

Stupid question, how do you configure the linode with DHCP?

Erasmus Darwin wrote:
I used the IP swap trick for a 512->768 upgrade, and it worked well. One thing to keep an eye out for is that swapping the IPs will shutdown the linodes for you, but it won't automatically queue a boot job. I spent several minutes waiting for the new linode to come back up only to realize it was waiting for me to tell it to start. Fortunately, this was a trial run on a site that wasn't live yet, so no harm done.

Other things:
- Make sure the new linode's configured with DHCP so it'll pick up the changed address when it boots after you do the switch. Or you could statically configure it with the proper address, though you'll need to be careful not to shoot yourself in the foot.
- Adding a private IP to a linode requires a shutdown/reboot. If you've got a lot of data to transfer between the old and new linodes, you'll want a private IP so it doesn't eat up your bandwidth.
- Keeping track of what changes you make to the default OS setup makes the process run a lot smoother in the future. I've got a text file full of commands that I can copy-and-paste to reproduce the setup of my linode. It's not worth making a proper stack script since rebuilding it is a very rare occurrence, but it's helpful to have a reference of what I've done.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group