Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jan 12, 2011 1:24 pm 
Offline
Senior Newbie

Joined: Wed Jan 12, 2011 1:16 pm
Posts: 5
Website: http://nicholasgarofalo.com/
Not entirely sure this is in the right spot. If not, sorry.

I have a 1gb Linode that's been running great for over a year. Has a LAMP install on it. Today, I cloned for someone I'm building a site for (just using the Linode clone option). The new Linode did its thing, booted OK, but I cannot SSH into it. Using the AJAX LISH console I can get in, but apt-get update and such all fail. Any ideas?


Top
   
 Post subject:
PostPosted: Wed Jan 12, 2011 1:36 pm 
Offline
Senior Member

Joined: Mon Oct 27, 2008 10:24 am
Posts: 173
Website: http://www.worshiproot.com
What distro are you running?

Did you leave DHCP enabled, or did the Linode have a static IP configured?

It sounds like networking isn't working for some reason, which leads me to believe some vestige of the other node is still there.


Top
   
 Post subject:
PostPosted: Wed Jan 12, 2011 1:39 pm 
Offline
Senior Member

Joined: Tue Dec 07, 2010 10:18 am
Posts: 65
check the ip address/hostname on cloned linode ...


Top
   
 Post subject:
PostPosted: Wed Jan 12, 2011 1:52 pm 
Offline
Senior Newbie

Joined: Wed Jan 12, 2011 1:16 pm
Posts: 5
Website: http://nicholasgarofalo.com/
Running Ubuntu 10.04 32-bit.

Left the Linode as is. Just shut it down, clicked the clone tab, and then cloned the profile over to the new linode.

Looks like DHCP is still enabled in /etc/network/interfaces:

auto eth0
iface eth0 inet dhcp

I actually did the original install with the LAMP stackscript if I remember right.


Top
   
 Post subject:
PostPosted: Wed Jan 12, 2011 2:02 pm 
Offline
Senior Member

Joined: Mon Oct 27, 2008 10:24 am
Posts: 173
Website: http://www.worshiproot.com
Ubuntu hardcodes udev rules for ethX devices based on MAC address. Try eth1.


Top
   
 Post subject:
PostPosted: Wed Jan 12, 2011 2:06 pm 
Offline
Senior Newbie

Joined: Wed Jan 12, 2011 1:16 pm
Posts: 5
Website: http://nicholasgarofalo.com/
hostname is just localhost

I ran ifconfig and oddly enough nothing was returned. JshWright, not sure what you mean by try eth1. I wasn't aware linodes had more than one NIC. You have a command I can run?


Top
   
 Post subject:
PostPosted: Wed Jan 12, 2011 2:12 pm 
Offline
Senior Newbie

Joined: Wed Jan 12, 2011 1:16 pm
Posts: 5
Website: http://nicholasgarofalo.com/
This is probably related:

Whenever I try editing a file, any file, I get Error writing <filename>: Read-only file system


Top
   
 Post subject:
PostPosted: Wed Jan 12, 2011 4:06 pm 
Offline
Senior Newbie

Joined: Wed Jan 12, 2011 1:16 pm
Posts: 5
Website: http://nicholasgarofalo.com/
On the note of the read only file system, I tried http://yuji.wordpress.com/2010/06/03/li ... r-cloning/ but had no luck.


Top
   
 Post subject:
PostPosted: Wed Jan 12, 2011 11:16 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Was the donor Linode running at the time of the clone operation? If so, the filesystem will have some amount of damage on it, especially if the system was pretty busy during the clone.

The URL you pasted is out of date; the instructions in the Linode Library will get you there more quickly.

Once you're at the finnix prompt, run:

Code:
e2fsck -fnv /dev/xvda | tee /tmp/fsckerrors.txt


... and post the results here. They'll be stored in /tmp/fsckerrors.txt for your convenience. This command invokes the ext2/ext3/ext4 filesystem checker with -f (force fsck even if filesystem is clean), -n (read-only/don't change anything), and -v (verbose output).

Omitting the -fnv and perhaps using -p (preen: assume consent for minor low-risk fixes) or -y (yes: assume consent for any fixes) will actually let it fix stuff, if you want.

If the filesystem is too far gone, another possible solution is to restore a backup of the donor Linode to the target Linode. That avoids the whole spaghetti-filesystem problem by creating a new one based upon a snapshot, but it is still susceptible to the spaghetti-database problem.

_________________
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 3 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