Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed May 16, 2012 11:34 am 
Offline
Senior Newbie

Joined: Wed May 16, 2012 11:19 am
Posts: 19
Website: http://www.creativetags.com
Location: Northern Ireland
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 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:

Code:
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


Top
   
 Post subject: Update
PostPosted: Wed May 16, 2012 12:20 pm 
Offline
Senior Newbie

Joined: Wed May 16, 2012 11:19 am
Posts: 19
Website: http://www.creativetags.com
Location: Northern Ireland
Ok, I managed to get a bit further now by adding a file here:
/etc/sysconfig/network-scripts/ifcfg-eth0

Code:
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


Top
   
 Post subject:
PostPosted: Wed May 16, 2012 12:44 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
You'll probably have a much easier time if you just start fresh...


Top
   
 Post subject:
PostPosted: Wed May 16, 2012 12:50 pm 
Offline
Senior Newbie

Joined: Wed May 16, 2012 11:19 am
Posts: 19
Website: http://www.creativetags.com
Location: Northern Ireland
@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.


Top
   
 Post subject:
PostPosted: Wed May 16, 2012 2:01 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
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.


Top
   
 Post subject:
PostPosted: Wed May 16, 2012 3:05 pm 
Offline
Senior Newbie

Joined: Wed May 16, 2012 11:19 am
Posts: 19
Website: http://www.creativetags.com
Location: Northern Ireland
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.


Top
   
 Post subject:
PostPosted: Wed May 16, 2012 7:30 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
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.


Top
   
 Post subject:
PostPosted: Wed May 16, 2012 9:35 pm 
Offline
Senior Member

Joined: Mon Dec 07, 2009 6:46 am
Posts: 331
vonskippy wrote:
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.


Top
   
 Post subject:
PostPosted: Thu May 17, 2012 7:59 am 
Offline
Senior Newbie

Joined: Wed May 16, 2012 11:19 am
Posts: 19
Website: http://www.creativetags.com
Location: Northern Ireland
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.


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


Who is online

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