Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Dec 07, 2010 10:23 am 
Offline
Senior Member

Joined: Tue Dec 07, 2010 10:18 am
Posts: 65
Hi,

I have a centos 5.3 server with following details


Filesystem Size Used Avail Use% Mounted on
/dev/sda3 63G 11G 49G 18% /
/dev/sda1 145M 11M 126M 9% /boot
tmpfs 1014M 0 1014M 0% /dev/shm

I want to move this server to a new linode, I am willing to buy linode 2GB ...


How can I transfer the whole data with full setup? What steps I should take?

Please suggest.

Richard
http://www.vasaiflowers.com
[/b] :lol:


Top
   
 Post subject:
PostPosted: Tue Dec 07, 2010 11:14 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
File a ticket and they can migrate it to another host, but might want to justify it. Why do you want to move to a different host?


Top
   
 Post subject:
PostPosted: Tue Dec 07, 2010 12:01 pm 
Offline
Senior Member

Joined: Mon Jul 05, 2010 5:13 pm
Posts: 392
I think he means move from non-linode to linode. Not move from one linode host to another.


Top
   
 Post subject:
PostPosted: Tue Dec 07, 2010 12:29 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
I haven't done this myself, but if you set the Linode to use pv_grub (e.g., your own local kernel), and create a disk image large enough for your current root partition, you could then boot a recovery (Finnix) configuration, transfer over your old root partition to that disk image, and then boot from a configuration using it. Some configuration elements (interface names, IP addresses, etc..) might not port depending on your original hardware and network configuration, but that could be fixed via the LISH console if needed.

If you don't have any special requirements, you could then revert to a standard Linode kernel if you'd prefer.

I believe there's an article in the Linode Library - http://library.linode.com/linode-platfo ... e-over-ssh - on doing a network transfer of disk images. This assumes you take down your source system to a maintenance mode too - e.g., boot a recovery CD of some sort on it. I think there's another library article on transferring a live system with rsync if the source system must remain running.

It's really easy to experiment with a Linode in terms of creating and destroying disk images and configurations, so if you haven't already I'd just give it a shot and see what happens. Your biggest issue is going to be the time to transfer the image, so if I were you I might create a smaller source configuration as a test to experiment with the process. You could even make it a VM with a minimal CentOS installation running on top of your existing system.

-- David


Top
   
 Post subject:
PostPosted: Tue Dec 07, 2010 2:31 pm 
Offline
Senior Member

Joined: Tue Dec 07, 2010 10:18 am
Posts: 65
Hi,

My current system (non linode) version is

Linux 2.6.18-92.el5 #1

Can someone help me with step by step guide? The non linode system has to be on all the time.


Top
   
 Post subject:
PostPosted: Tue Dec 07, 2010 7:46 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Step-by-step guide for a live system is here.

Avoid suid problems by adding the p option to the rsync command:
Code:
rsync --exclude="/sys/*" --exclude="/proc/*" -aHSKDvzp -e ssh / root@12.34.56.78:/mnt/xvdb/ 

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Tue Dec 07, 2010 10:54 pm 
Offline
Senior Member

Joined: Tue Dec 07, 2010 10:18 am
Posts: 65
Thank you very much, I am checking the document you have suggested.

Will the linode backup will work with this type of setup easily? Will there be any problems for linode software because my server kernel version?


Richard


Top
   
 Post subject:
PostPosted: Wed Dec 08, 2010 12:02 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
You should be fine with backups as long as you just create normal disk images through the Linode manager, since the host has to be able to mount the disk and read the filesystem for backups. Beyond that though it'll just back up any contents of that filesystem. Kernel doesn't matter, as the host is just taking a snapshot of the filesystem independent of what is actually running on your guest.

See also http://www.linode.com/backups/

-- David


Top
   
 Post subject:
PostPosted: Wed Dec 08, 2010 1:50 am 
Offline
Senior Member

Joined: Tue Dec 07, 2010 10:18 am
Posts: 65
As per the document ...

I have created a new disk image of 12 GB in which my non linode server will be copied. Do I need to create another swap partition? or existing swap can be used in two installations?


Top
   
 Post subject:
PostPosted: Wed Dec 08, 2010 2:09 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
richardvc wrote:
As per the document ...

I have created a new disk image of 12 GB in which my non linode server will be copied. Do I need to create another swap partition? or existing swap can be used in two installations?


Your linode needs just one swap partition, since you can only have one linode profile booted at a time you only need to create the one.

Since you have a 11GB used on your non-linode you should allocate more space on your linode than 12GB, if you did indeed buy a linode 2GB you might as well use almost all of the 64gb that comes with it for your /root partition.

_________________
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: Wed Dec 08, 2010 3:12 am 
Offline
Senior Member

Joined: Tue Dec 07, 2010 10:18 am
Posts: 65
My rsync status ...

I am trying to run command mentioned the document, my rsync is pausing at

lib/modules/2.6.18-92.el5/kernel/fs/nls/nls_cp949.ko

what could be the reason?

Thanks
Richard Correia
http://www.vasaiflowers.com


Top
   
 Post subject:
PostPosted: Wed Dec 08, 2010 6:42 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Pausing as in hanging or stopping completely? Either way try adding an additional -v option to rsync it should provide more insight, could be a permissions issue are you rsyncing as root?

_________________
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: Wed Dec 08, 2010 7:24 am 
Offline
Senior Member

Joined: Tue Dec 07, 2010 10:18 am
Posts: 65
Yes. I am doing rsync as a root, also -v option is added, so I can see the files progress.

But the program is stopping at certain files .. like I mentioned earlier

It's terminating with any errors, just paused.


Richard


Top
   
 Post subject:
PostPosted: Wed Dec 08, 2010 7:29 am 
Offline
Senior Member

Joined: Tue Dec 07, 2010 10:18 am
Posts: 65
On this server, I have CDP backup client installed from R1Soft

http://wiki.r1soft.com/display/R1D/CDP+ ... dmin+Guide

IS this a reason why rsync is having problems?


Top
   
 Post subject:
PostPosted: Wed Dec 08, 2010 3:50 pm 
Offline
Senior Member

Joined: Tue Dec 07, 2010 10:18 am
Posts: 65
I stopped the backup client ...

still rsync is pausing randomly .. at any file .. it transfer around 100/200 files and then take a pause .. no error on stdout ..


Please help


Richard


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


Who is online

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