Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Migration Strategy
PostPosted: Sat Nov 03, 2007 11:48 am 
Offline
Junior Member

Joined: Sat Nov 03, 2007 11:33 am
Posts: 32
Hello Everyone,

New linode.com member here, and I have a few questions about the best practice and pros/cons about various migration strategies.

I will be using a custom CentOS 5 install with LVM, completely replacing the linode.com version. The way I see it, I have a couple of options:

1. Perform the install locally, then after changing the drive block devices, etc, upload it and dd replace what's there using Finnix.

2. Set up my drives using the web interface, then using Finnix simply copy the files into the new respective partitions, while excluding things like /proc, etc.

With option #1, will it essentially be running LVM on top of LVM (since I understand that's what linode.com uses under the hood)? Then again, perhaps that will not be the case since the "physical" drives are changing. Will that add extra I/O overhead? Finally, would I need to use the initrd from my own image and use the web interface to specify that?

Option #2 seems pretty straight-forward and easy. Any gotchas pros/cons with that?

Thanks in advance.


Top
   
 Post subject:
PostPosted: Sat Nov 03, 2007 4:23 pm 
Offline
Senior Member

Joined: Tue Apr 27, 2004 5:10 pm
Posts: 212
I've always used the "canned" distros that linode provides, so I can't comment on your migration strategy. I *can* say, however, that linode is currently using UML under the hood, not LVM.


Top
   
 Post subject:
PostPosted: Sat Nov 03, 2007 5:50 pm 
Offline
Junior Member

Joined: Sat Nov 03, 2007 11:33 am
Posts: 32
anderiv wrote:
I've always used the "canned" distros that linode provides, so I can't comment on your migration strategy. I *can* say, however, that linode is currently using UML under the hood, not LVM.


They are two different things. UML is the virtualization layer, while LVM (logical volume manager) is a way to manage disk space.


Top
   
 Post subject:
PostPosted: Sat Nov 03, 2007 6:51 pm 
Offline
Senior Member

Joined: Tue Apr 27, 2004 5:10 pm
Posts: 212
mstarks01 wrote:
They are two different things. UML is the virtualization layer, while LVM (logical volume manager) is a way to manage disk space.


Hah - I mistook LVM for KVM. Nevermind me...


Top
   
 Post subject:
PostPosted: Sun Nov 04, 2007 6:32 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
I use LVM on my Linode without problems. I use a regular Linode partition for the root partition (no initrd) and I have a minimal Debian distro with the LVM tools installed - instead of using Finnix. I used the Debian distro to create the LVM volumes. I built my custom system on the Linode, rather than copying it across - but the principle is the same.

When you copy across, you have to 'Linode-ise' your distro - the instructions are in the wiki.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Sun Nov 04, 2007 9:33 am 
Offline
Junior Member

Joined: Sat Nov 03, 2007 11:33 am
Posts: 32
pclissold wrote:
I use LVM on my Linode without problems. I use a regular Linode partition for the root partition (no initrd) and I have a minimal Debian distro with the LVM tools installed - instead of using Finnix. I used the Debian distro to create the LVM volumes. I built my custom system on the Linode, rather than copying it across - but the principle is the same.

When you copy across, you have to 'Linode-ise' your distro - the instructions are in the wiki.


Do you mean that you did the actual custom Debian install on the linode? If so, what did you boot from and how did you get the install going? Please elaborate. Thanks.


Top
   
 Post subject:
PostPosted: Sun Nov 04, 2007 10:14 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
I installed the Debian 3.1 small distro (only 95 MB). This was before the Etch distro was available. I also used the Linode Platform Manager (LPM, = web interface) to create a root partition (ext3) and partition(s) for LVM (raw). I booted the Debian distro, installed the LVM tools, created physical volumes, logical volumes, a volume group, and filesystems. Then I created the directory structure in root and mounted the logical volumes in the appropriate places. I then installed my system from scratch. You could copy your system to the new root + mounted LVM logical volumes.

After that, you need to create UML disk devices, edit fstab, make sure that you're starting a getty process on tty0 (for the Lish console) and add tty0 to /etc/securetty.

Use LPM to set your new root partition as the boot device.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Sun Nov 04, 2007 10:29 am 
Offline
Junior Member

Joined: Sat Nov 03, 2007 11:33 am
Posts: 32
pclissold wrote:
I then installed my system from scratch. You could copy your system to the new root + mounted LVM logical volumes.


OK, here's where you lost me. I understand how you created the partitions and so on. But to install the system did you simply copy over files that you had created by doing an install somewhere else? Or did you (perhaps chroot) run an installer?


Top
   
 Post subject:
PostPosted: Sun Nov 04, 2007 10:49 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
mstarks01 wrote:
But to install the system did you simply copy over files that you had created by doing an install somewhere else? Or did you (perhaps chroot) run an installer?


Both - I've downloaded a Gentoo tarball, untarred and the chrooted to do the install, and I've copied across a Linux-From-Scratch system built elsewhere.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Wed Nov 21, 2007 10:35 am 
Offline
Senior Member

Joined: Fri Feb 13, 2004 11:30 am
Posts: 140
Location: England, UK
Just a quick note, if you're wondering - if you do use another distro, os a reinstall of one without using the Linode version, be aware that you won't be able to use the kernel from the new distro, and nor will you be able to load any kernel modules. (This isn't normally a problem, since the Linode kernel has most things anyway.)

Just to warn you in case it cropped up at all. :)


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


Who is online

Users browsing this forum: apkehoe 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