Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed May 04, 2011 10:26 am 
Offline
Senior Member

Joined: Sat Nov 13, 2010 3:05 am
Posts: 91
Website: http://www.graq.co.uk
I have 2 nodes (10.04LTS). I have resized the source node to '12000 MB' with the destination node showing 14GB free, yet whenever I try to clone I am told that there is not enough free space.

Source:
Code:
# df -m
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/xvda                11812      9453      1999  83% /


Destination:
Code:
# df -m
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/xvda                15875       389     14842   3% /


Top
   
 Post subject:
PostPosted: Wed May 04, 2011 10:46 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Moving disk images around in the linode manager would require unallocated disk space (not allocated to a disk image), not free space inside a disk image. It looks like your destination linode is a 512 with a 16GB disk image, which means you've allocated all space.

You'll need to shrink the disk image on your destination linode to free up enough unallocated space.


Top
   
 Post subject:
PostPosted: Wed May 04, 2011 11:58 am 
Offline
Senior Member

Joined: Sat Nov 13, 2010 3:05 am
Posts: 91
Website: http://www.graq.co.uk
So the process:

    1. Create a new node, edit the profile to make sure you build a small disk.
    2. Make sure your source disk image size fits into the available unused space.
    3. Clone source to destination. This will create another device on the destination node.
    4. Boot up destination node, mount cloned image to edit hosts and network (static IPs).
    5. Edit node profile, marking cloned image as the root device to boot from.
    6. Reboot destination node.


Writing it out, they all seem like obvious steps. Don't know why I didn't grok it first time. Any hints or suggestions where I might have missed something?


Top
   
 Post subject:
PostPosted: Wed May 04, 2011 12:30 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Normally when cloning a linode, most people would leave out the second half of step 1, and step 4. Most people use DHCP for IPs, so it's just a matter of, create a new linode, clone the old one to the new one, boot it up, make any configuration changes as desired.

If you've used static IPs, then yes you'd have to edit the IP before booting the copied partition, but you can do that with finnix to avoid having to deploy a new distro and worry about disk image sizes (all you'd need to worry about is source <= destination)


Top
   
 Post subject:
PostPosted: Thu May 05, 2011 6:07 am 
Offline
Senior Member

Joined: Sat Nov 13, 2010 3:05 am
Posts: 91
Website: http://www.graq.co.uk
Guspaz wrote:
If you've used static IPs, then yes you'd have to edit the IP before booting the copied partition, but you can do that with finnix to avoid having to deploy a new distro and worry about disk image sizes (all you'd need to worry about is source <= destination)

I do have static IPs. I tried setting finnix as the boot device, but got an error (paraphrasing) "node cannot boot for unknown reason".

I think maybe if I were to start again, I would build a node that was easier to clone :)


Top
   
 Post subject:
PostPosted: Thu May 05, 2011 9:00 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
graq wrote:
I think maybe if I were to start again, I would build a node that was easier to clone :)


Build servers like nature builds organisms: from a set of instructions. Puppet, Chef, DevStructure, etc. :-)

-rt (don't think about what pollen really is)

_________________
Code:
/* TODO: need to add signature to posts */


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


Who is online

Users browsing this forum: No registered users and 10 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