Migrating VPS from RailsPlayground

Hi, I'm trying to copy my entire VPS from railsplayground to linode. I followed the instructions here: http://library.linode.com/linode-platfo … -to-linode">http://library.linode.com/linode-platform/migration/migrate-server-to-linode but I'm struggling to get it to boot. I'm not overly familiar with configuring linux but learning what I need as I go. The system is CentOS 5.2 i686. It's frustrating that I'm not at the stage of having booted to be able to interact properly with it. I have to boot into recovery to make changes.

Here's the last bit of the console output when trying to start it proper:

Starting vzquota:  quotaon: Cannot find quota file on / [/dev/simfs] to turn quotas on/off.
quotaon: Cannot find quota file on / [/dev/simfs] to turn quotas on/off.
[FAILED]
Starting system logger: [  OK  ]
Starting kernel logger: [  OK  ]
Starting system message bus: [  OK  ]
Starting APF:apf(1064): {glob} activating firewall
apf(1104): {glob} could not verify that interface eth0 is routed to a network, aborting.
apf(1064): {glob} firewall initalized
apf(1064): {glob} fast load snapshot saved
[  OK  ]
/etc/rc.d/rc: line 63:  1153 Segmentation fault      $i start
Starting sshd: [  OK  ]
Starting xinetd: [  OK  ]
Starting MySQL:  [  OK  ]
Starting Djbdns: 
Starting httpd: Syntax error on line 2 of /home/apache/conf/defaults/cp_config.conf:
 <virtualhost>directive requires additional arguments
[FAILED]
Starting kloxo: 11
/etc/rc3.d/S85kloxo: line 53:  1275 Terminated              sh ../sbin/$__var_wrapper_name
mysqld (pid 1242) is running...
Started kloxo

Starting Qmail: 
Starting Courier-Imap: 
Starting crond: [  OK  ]
Starting Munin Node: [  OK  ]
Starting xfs: [  OK  ]
INIT: no more processes left in this runlevel</virtualhost> 

8 Replies

Ok, I managed to get a bit further now by adding a file here:

/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
IPADDR=12.34.56.78 #YOUR IP
NETMASK=255.255.255.0 #DEFAULT INFO, do not change.
GATEWAY=12.34.56.1 #follow your main ip

and updating my nameservers here: /etc/resolv.conf

Any idea what's causing: /etc/rc.d/rc: line 63: 10282 Segmentation fault $i start

You'll probably have a much easier time if you just start fresh…

@Guspaz I thought about that but that would also take a load of time to configure everything and then test about 40 sites so I'm holding off right now.

Yeah, but you're even trying to load OpenVZ quota management stuff in a Xen virtual machine… If you want to migrate stuff, by all means, copy your specific configuration files for apache and such, but copying the entire system wholesale is a mess.

I would start from scratch if I had the time but I'm guessing this will be quicker. It would be a lot of work to copy sites and config over because I have some sites running php and some ruby on rails (needing particular versions of ruby gems). To rebuild everything would take a month and require more testing than I have patience for so for the time being I'm stuck with patching up the old horse. Any advise about what to take out/add in would be helpful.

If you can't afford the time to do it right, how do you expect to find the time to fix it?

You've attempting to change mangoes into guava fruit - it's not going to work.

Start fresh, document everything (so the next move will be much easy) with copies of the config file, and just get it done.

If you don't already have a bare metal restore plan for a host with 40+ sites, you're a train wreck waiting to happen anyways.

It's not going to get easier, so why put off the correct solution.

@vonskippy:

Start fresh, document everything (so the next move will be much easy) with copies of the config file, and just get it done.

At which point I'd like to suggest a configuration management tool. That way you're provider agnostic and can switch them as long as the managed config files stay the same, as they would if you used same OS, for instance.

I use a simple high-level declarative layer atop of Fabric, inspired by Cuisine, instead of memory/cpu/dependency hogs like Puppet, Chef or the like.

It even doubles as a backup, so I really offsite-backup only the (user, application) data, since I can replay configuration/installation by single call to the fabfile.

Thanks for the advise but I'm going to stick at it for the time being as I'm up and running now. I hadn't heard of Fabric so could look into that for a future move to an up to date system.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct