Re: Imaged a drive, now kernel panics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux