All of lore.kernel.org
 help / color / mirror / Atom feed
From: Digimer <linux@alteeve.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Cc: Ray Morris <support@bettercgi.com>
Subject: Re: [linux-lvm] Imaged a drive, now kernel panics
Date: Sat, 05 Jun 2010 23:59:59 -0400	[thread overview]
Message-ID: <4C0B1D3F.8090904@alteeve.com> (raw)
In-Reply-To: <1275795202.3993.30@raydesk1.bettercgi.com>

On 10-06-05 11:33 PM, Ray Morris wrote:
>   You mentioned that the old drive is IDE.  If so,
> You may be running into a couple problems I've had.
> I take it the new drive is SATA, SAS, or SCSI?
> Did you edit /etc/fstab to change hda to sda, hdb
> to sdb, etc., before running mkinitrd?

Yup, simple SATA.

> The existing kernel may not have the needed drivers
> compiled in, the drivers for the particular chipset
> and whatever SCSI drivers or modules are needed.
> Assuming that rescue kernel matches the kernel on
> the failed drive, mkinitrd _should_ take care of that
> if /etc/fstab is correct. Might it might look at
> mtab?

I just went through /etc grep'ing for and replace hda for sda. Also, the 
system has CentOS 4.4 and my rescue disk is CentOS 4.8...

> Be sure to bind /proc, /sys, /dev, and /selinux
> into the chroot. We want to be able to see /dev/sda
> it order to set up to boot from it. Along the same lines,
> double check that any other partitions, primarily /boot,
> are mounted in the chroot.

Sorry, how do I bind those fs into chroot?

> That should pretty much you, but before I figured out
> some of the possible failure modes I build modified several
> initrd by hand. You can debug the init script with simple
> echo statements much like you would debug any simple
> script.
>
> One last thing - on some motherboards the BIOS can
> be set to present a SATA drive as if it were IDE, I
> understand. qemu-kvm can also present a hard drive image
> as either SCSI or IDE, regardless of the actual underlying
> hardware. So you could present your SATA or SCSI drive
> as an IDE drive in order to make the old initrd and kernel
> happy.

I'll look at that if all else fails.

-- 
Digimer
E-Mail:         linux@alteeve.com
AN!Whitepapers: http://alteeve.com
Node Assassin:  http://nodeassassin.org

  reply	other threads:[~2010-06-06  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-06  0:59 [linux-lvm] Imaged a drive, now kernel panics Digimer
2010-06-06  3:33 ` Ray Morris
2010-06-06  3:59   ` Digimer [this message]
2010-06-06  6:05     ` Luca Berra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C0B1D3F.8090904@alteeve.com \
    --to=linux@alteeve.com \
    --cc=linux-lvm@redhat.com \
    --cc=support@bettercgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.