Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Forum locked  This topic is locked, you cannot edit posts or make further replies.
Author Message
PostPosted: Fri Nov 16, 2007 4:23 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
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


Top
   
 Post subject:
PostPosted: Fri Nov 16, 2007 5:02 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
Coolness! This would be very handy setting up redundancy across datacenters...


Top
   
 Post subject:
PostPosted: Fri Nov 16, 2007 5:59 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 10:32 pm
Posts: 246
Location: NJ, USA
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


Top
   
 Post subject:
PostPosted: Fri Nov 16, 2007 6:57 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
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


Top
   
 Post subject:
PostPosted: Fri Nov 16, 2007 7:29 pm 
Offline
Senior Member
User avatar

Joined: Thu Jun 21, 2007 7:13 pm
Posts: 100
Website: http://neo101.org
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.


Top
   
 Post subject:
PostPosted: Fri Nov 16, 2007 7:36 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
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


Top
   
 Post subject:
PostPosted: Fri Nov 16, 2007 8:20 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
I assume the OS better be configured for DHCP else the same IP address might come up on both linodes...

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Fri Nov 16, 2007 8:42 pm 
Offline
Senior Member
User avatar

Joined: Thu Jun 21, 2007 7:13 pm
Posts: 100
Website: http://neo101.org
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.


Top
   
 Post subject:
PostPosted: Tue Nov 20, 2007 1:23 pm 
Offline
Junior Member

Joined: Sat Apr 30, 2005 3:38 am
Posts: 23
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.


Top
   
 Post subject:
PostPosted: Tue Nov 20, 2007 6:40 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
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.

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.
-- seen on the net


Top
   
 Post subject:
PostPosted: Tue Nov 20, 2007 7:03 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
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


Top
   
 Post subject:
PostPosted: Sat May 31, 2008 1:22 am 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
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.


Top
   
PostPosted: Sat Aug 08, 2009 11:48 am 
Offline
Junior Member
User avatar

Joined: Sat May 16, 2009 1:34 am
Posts: 24
Website: http://www.ddsc.com
Problems? I see what looks like a problem with the links mentioned above. What is going on??

_________________
Q.E.D

Rob


Top
   
 Post subject:
PostPosted: Sat Aug 08, 2009 12:06 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
You're reading an announcement from some years ago; since then, the dashboard has been reorganized and older URLs probably won't work. Fortunately, it's still there on the Settings & Utilities tab in the dashboard, almost exactly as described.


Top
   
 Post subject:
PostPosted: Sat Aug 08, 2009 3:38 pm 
Offline
Senior Member
User avatar

Joined: Mon Dec 10, 2007 4:30 pm
Posts: 341
Website: http://markwalling.org
Code:
mwalling@youtoo:~$ python
Python 2.5.2 (r252:60911, Jul 22 2009, 15:35:03)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> datetime.datetime(2009,8,8,11,48) - datetime.datetime(2007,11,16,16,23)
datetime.timedelta(630, 69900)
>>>


Top
   
Display posts from previous:  Sort by  
Forum locked  This topic is locked, you cannot edit posts or make further replies.


Who is online

Users browsing this forum: No registered users and 2 guests


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