Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


New Feature - Clone a Linode to another Linode

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Linode.com Announcements
Author Message
caker



Joined: 15 Apr 2003
Posts: 2371
Location: Galloway, NJ

Posted: Fri Nov 16, 2007 3:23 pm    Post subject: New Feature - Clone a Linode to another Linode  

Clone a Linode's Configuration/disks to another Linode

This feature enables you to clone a Linode's configuration and data over to another Linode that is linked to your account. You can select an entire configuration profile to clone -- and this will automatically create the configuration profile in the target Linode, and copy all disk images associated with that configuration profile over to the targeted Linode -- or, you can pick out individual disk images to copy over.

This new feature is located here, off the new Utilities sub-tab.

Implementing this was more complicated than I initially thought, so some testing would be appreciated. Keep in mind, copying large disk images across datacenters will take time.

Enjoy!
-Chris
Back to top  
Xan



Joined: 08 Feb 2004
Posts: 293
Location: Austin

Posted: Fri Nov 16, 2007 4:02 pm    Post subject:  

Coolness! This would be very handy setting up redundancy across datacenters...
Back to top  
tasaro



Joined: 15 Apr 2003
Posts: 125
Location: Manahawkin, NJ

Posted: Fri Nov 16, 2007 4:59 pm    Post subject:  

Xan wrote: Coolness! This would be very handy setting up redundancy across datacenters...

Or even within the same data center, with Linodes on separate hosts and using the new HA / IP Failover feature:

http://www.linode.com/forums/viewtopic.php?t=2933
Back to top  
zunzun



Joined: 18 Feb 2005
Posts: 167
Location: Birmingham, Alabama USA

Posted: Fri Nov 16, 2007 5:57 pm    Post subject:  

What are you guys trying to do, put all of your competitors out of business??? How can they avoid bankruptcy if you keep this up?

James
Back to top  
harmone



Joined: 21 Jun 2007
Posts: 77

Posted: Fri Nov 16, 2007 6:29 pm    Post subject:  

Wow. What a useful feature. I really appreciate you implementing this. It makes testing changes to a production server so much easier without the need to shut it down for long periods of time.

Are we still being "charged" for the bandwidth this process would use?

If yes; can you make it possible to run two linodes on the same physical server so that any backups of this kind would be from localhost to localhost and thereby not generate any traffic on the network? That way you could choose not to charge for the bandwidth generated by a backup process.
Back to top  
caker



Joined: 15 Apr 2003
Posts: 2371
Location: Galloway, NJ

Posted: Fri Nov 16, 2007 6:36 pm    Post subject:  

harmone wrote: Are we still being "charged" for the bandwidth this process would use?
The copies run from host to host, rather than from within a Linode to another Linode .. if that makes sense. So, no -- this isn't deducted from your transfer allotment.

Enjoy -- let me know if I missed some bugs :)

-Chris
Back to top  
sweh



Joined: 13 Apr 2004
Posts: 223

Posted: Fri Nov 16, 2007 7:20 pm    Post subject:  

I assume the OS better be configured for DHCP else the same IP address might come up on both linodes...
Back to top  
harmone



Joined: 21 Jun 2007
Posts: 77

Posted: Fri Nov 16, 2007 7:42 pm    Post subject:  

caker wrote: harmone wrote: Are we still being "charged" for the bandwidth this process would use?
The copies run from host to host, rather than from within a Linode to another Linode .. if that makes sense. So, no -- this isn't deducted from your transfer allotment.

Enjoy -- let me know if I missed some bugs :)

-Chris

It makes sense. And is wonderful!

I just finished backing up my production linode disk image to my other linode. They are both in the same data center (Atlanta) and the backup of 2048 MB took 10-11 minutes. I tried to not shut down the running production server before clicking the "clone button" just to see if it would work anyway. It seems to have worked. Me and 2-3 other users are the only users of it, so I guess it worked due to very low disk usage on my production server.

Anyway.. I edited a mediawiki page on one of the servers and clicked refresh on both. The update only registered on one of the servers which is how it should be. I haven't done any more testing but it seems that this cloning feature you have implemented works just as I expected.

I noticed that the Dashboard job only got visible on the receiving linode account and not on the sending linode account. That is no biggie but would be nice if you fixed.
Back to top  
warewolf



Joined: 30 Apr 2005
Posts: 20

Posted: Tue Nov 20, 2007 12:23 pm    Post subject:  

sweh wrote: I assume the OS better be configured for DHCP else the same IP address might come up on both linodes...

Unlikely. The MAC address of a linode is based on it's bridge, which I think is some magic caker sets up to be unique.
Back to top  
SteveG



Joined: 30 Nov 2003
Posts: 212

Posted: Tue Nov 20, 2007 5:40 pm    Post subject:  

warewolf wrote: sweh wrote: I assume the OS better be configured for DHCP else the same IP address might come up on both linodes...

Unlikely. The MAC address of a linode is based on it's bridge, which I think is some magic caker sets up to be unique.

That controls your IP, *if* you're setup with DHCP. But if you modified your config for a static (as in fixed, hardcoded) IP, and then replicate that disk to another linode, it would be Not Good.
Back to top  
caker



Joined: 15 Apr 2003
Posts: 2371
Location: Galloway, NJ

Posted: Tue Nov 20, 2007 6:03 pm    Post subject:  

We filter layer 2 and layer3 traffic, in and out, that does not belong to the Linode in question. So, worst thing that can happen is that it boots without an accessible IP address.

Now, if you have the IP Failover stuff configured to allow those IPs to come up elsewhere, then yes -- it'll be bad.

-Chris
Back to top  
Xan



Joined: 08 Feb 2004
Posts: 293
Location: Austin

Posted: Sat May 31, 2008 12:22 am    Post subject:  

Caker, I'm finally getting around to giving this a try. I've bought another node (taking advantage of the new instance-day feature!) in order to test out an OS update on a clone before I do it on the real server. Had a couple of thoughts:

a) Is the data being run through a quick gzip or other compressor before being sent? From my back-o'-the-napkin calculations, it doesn't seem to be, although it could be that the data being sent was already compressed when I sampled.

b) I told it to clone before having any idea how long it would take, and then wished I could cancel the jobs and just clone one or two partitions, but I don't think I can do that at the moment.

c) The jobs appear on the "to" Linode, so I can submit a boot job and it'll happily boot after the transfer completes. But the jobs aren't on the "from" Linode at all, so I can't just submit a boot job for my existing server and go to bed while the transfer finishes.
Back to top  
 
       Linode.com Forum Forum Index -> Linode.com Announcements
Page 1 of 1