I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic.
When I try to boot up, I get this:
Volume group "VolGroup00" not found ERROR: /bin/lvm exited abnormally! (pid 448) mount: error 6 mounting ext3 mount: error 2 mounting none switchroot: mount failed: 22 umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init!
(I apologize for any typos, I don't have a way to copy/paste from that screen)
I can boot up with the boot CD, go into rescue mode and browse the files, so I know the drives are ok.
I found some stuff online saying that I should recreate my initrd from rescue mode if the motherboard changed. I tried this, but am still getting the same results.
Suggestions?
Thanks,
On 4/12/2013 2:33 PM, Bowie Bailey wrote:
I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic.
what chipset and storage controller was the old board? what chipset and storage controller is on the new one?
On 4/12/2013 6:53 PM, John R Pierce wrote:
On 4/12/2013 2:33 PM, Bowie Bailey wrote:
I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic.
what chipset and storage controller was the old board? what chipset and storage controller is on the new one?
The old board was an ASUS A8N-VM CSM with the NVIDIA nForce 430 chipset.
The new board is an ASRock A785GM-LE board with the AMD SB710 chipset.
On 4/12/2013 5:33 PM, Bowie Bailey wrote:
I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic.
When I try to boot up, I get this:
Volume group "VolGroup00" not found ERROR: /bin/lvm exited abnormally! (pid 448) mount: error 6 mounting ext3 mount: error 2 mounting none switchroot: mount failed: 22 umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init!
(I apologize for any typos, I don't have a way to copy/paste from that screen)
I can boot up with the boot CD, go into rescue mode and browse the files, so I know the drives are ok.
I found some stuff online saying that I should recreate my initrd from rescue mode if the motherboard changed. I tried this, but am still getting the same results.
Anyone have any ideas here? I can rebuild the machine if I have to, but that's a last resort.
The old board was an ASUS A8N-VM CSM with the NVIDIA nForce 430 chipset.
The new board is an ASRock A785GM-LE board with the AMD SB710 chipset.
Thanks,
Bowie Bailey wrote:
On 4/12/2013 5:33 PM, Bowie Bailey wrote:
I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic.
When I try to boot up, I get this:
Volume group "VolGroup00" not found ERROR: /bin/lvm exited abnormally! (pid 448) mount: error 6 mounting ext3 mount: error 2 mounting none switchroot: mount failed: 22 umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init!
(I apologize for any typos, I don't have a way to copy/paste from that screen)
I can boot up with the boot CD, go into rescue mode and browse the files, so I know the drives are ok.
I found some stuff online saying that I should recreate my initrd from rescue mode if the motherboard changed. I tried this, but am still getting the same results.
Anyone have any ideas here? I can rebuild the machine if I have to, but that's a last resort.
Just sort of guessing - could the new m/b have resulted in a new UUID, and the configuration - fstab? hwconf? - is looking for the old?
mark "I like LABEL="
On 4/15/2013 1:33 PM, m.roth@5-cent.us wrote:
Bowie Bailey wrote:
On 4/12/2013 5:33 PM, Bowie Bailey wrote:
I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic.
When I try to boot up, I get this:
Volume group "VolGroup00" not found ERROR: /bin/lvm exited abnormally! (pid 448) mount: error 6 mounting ext3 mount: error 2 mounting none switchroot: mount failed: 22 umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init!
(I apologize for any typos, I don't have a way to copy/paste from that screen)
I can boot up with the boot CD, go into rescue mode and browse the files, so I know the drives are ok.
I found some stuff online saying that I should recreate my initrd from rescue mode if the motherboard changed. I tried this, but am still getting the same results.
Anyone have any ideas here? I can rebuild the machine if I have to, but that's a last resort.
Just sort of guessing - could the new m/b have resulted in a new UUID, and the configuration - fstab? hwconf? - is looking for the old?
The drives are in an md array (raid 1) which is used as the PV for the volume group that is producing the error. fstab simply references the logical volume. LVM configuration refers to /dev/md1. mdadm.conf simply says "device partitions". I can't go any farther than that without a running system.
Bowie Bailey wrote:
On 4/12/2013 5:33 PM, Bowie Bailey wrote:
I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic.
When I try to boot up, I get this:
Volume group "VolGroup00" not found ERROR: /bin/lvm exited abnormally! (pid 448) mount: error 6 mounting ext3 mount: error 2 mounting none switchroot: mount failed: 22 umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init!
(I apologize for any typos, I don't have a way to copy/paste from that screen)
I can boot up with the boot CD, go into rescue mode and browse the files, so I know the drives are ok.
I found some stuff online saying that I should recreate my initrd from rescue mode if the motherboard changed. I tried this, but am still getting the same results.
Anyone have any ideas here? I can rebuild the machine if I have to, but that's a last resort.
Sorry, hit <send> and had another thought: I think you said you rebuilt the initrd... *could* you see the drives? *Did* the running system you rebuilt from have all the LVM drivers loaded when you rebuilt it?
mark
On Mon, Apr 15, 2013 at 12:35 PM, m.roth@5-cent.us wrote:
I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic.
CentOS 4 - seriously???
I can boot up with the boot CD, go into rescue mode and browse the files, so I know the drives are ok.
I found some stuff online saying that I should recreate my initrd from rescue mode if the motherboard changed. I tried this, but am still getting the same results.
Anyone have any ideas here? I can rebuild the machine if I have to, but that's a last resort.
Sorry, hit <send> and had another thought: I think you said you rebuilt the initrd... *could* you see the drives? *Did* the running system you rebuilt from have all the LVM drivers loaded when you rebuilt it?
You need to include whatever drivers loaded in rescue mode in the new initrd, but I've forgotten the exact details. In Centos5 you would add alias entries to /etc/modprobe.conf but it might have been named something else in C4. Maybe you can see what is there before you chroot to the installed instance and change the file there to match, then make the new initrd. Once in a similar circumstance I just copied the whole contents of ./boot from a different machine with identical hardware so I didn't have to know as much as anaconda about matching hardware and drivers.
-- Les Mikesell lesmikesell@gmail.com
On 4/15/2013 1:44 PM, Les Mikesell wrote:
On Mon, Apr 15, 2013 at 12:35 PM, m.roth@5-cent.us wrote:
I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic.
CentOS 4 - seriously???
Yea, it's an old system.
I can boot up with the boot CD, go into rescue mode and browse the files, so I know the drives are ok.
I found some stuff online saying that I should recreate my initrd from rescue mode if the motherboard changed. I tried this, but am still getting the same results.
Anyone have any ideas here? I can rebuild the machine if I have to, but that's a last resort.
Sorry, hit <send> and had another thought: I think you said you rebuilt the initrd... *could* you see the drives? *Did* the running system you rebuilt from have all the LVM drivers loaded when you rebuilt it?
You need to include whatever drivers loaded in rescue mode in the new initrd, but I've forgotten the exact details. In Centos5 you would add alias entries to /etc/modprobe.conf but it might have been named something else in C4. Maybe you can see what is there before you chroot to the installed instance and change the file there to match, then make the new initrd. Once in a similar circumstance I just copied the whole contents of ./boot from a different machine with identical hardware so I didn't have to know as much as anaconda about matching hardware and drivers.
There is a /etc/modprobe.conf file on the original system. Among other things, it says:
alias scsi_hostadapter sata_nv
I assume that refers to the driver for the nvidia chipset.
I found a modprobe.conf file in the rescue environment living in /tmp/modprobe.conf. This one says:
alias scsi_hostadapter ahci
I guess that's a driver that works with the new hardware? I do not have the ports in ahci mode in the bios.
What do I need to do to make sure the driver gets into initrd? Or do I just need to make the change to /etc/modprobe.conf on the hard drive?
On Mon, Apr 15, 2013 at 1:54 PM, Bowie Bailey Bowie_Bailey@buc.com wrote:
CentOS 4 - seriously???
Yea, it's an old system.
If you have somewhere to copy the data, the best approach would be to back it up from the rescue-mode boot, reinstall centos 6 and copy back anything you need - and be good for another many years.
There is a /etc/modprobe.conf file on the original system. Among other things, it says:
alias scsi_hostadapter sata_nv
I assume that refers to the driver for the nvidia chipset.
I found a modprobe.conf file in the rescue environment living in /tmp/modprobe.conf. This one says:
alias scsi_hostadapter ahci
I guess that's a driver that works with the new hardware? I do not have the ports in ahci mode in the bios.
lsmod from the running rescue system should show the loaded modules. Your initrd has to include anything needed to access the hard drive and filesystem before you can find the others.
What do I need to do to make sure the driver gets into initrd? Or do I just need to make the change to /etc/modprobe.conf on the hard drive?
I think you would change the /etc/modprobe.conf on the hard drive and chroot there (/mnt/sysimage) before running mkinitrd.
-- Les Mikesell lesmikesell@gmail.com
On 4/15/2013 3:10 PM, Les Mikesell wrote:
On Mon, Apr 15, 2013 at 1:54 PM, Bowie Bailey Bowie_Bailey@buc.com wrote:
CentOS 4 - seriously???
Yea, it's an old system.
If you have somewhere to copy the data, the best approach would be to back it up from the rescue-mode boot, reinstall centos 6 and copy back anything you need - and be good for another many years.
This system is running BackupPC. The number of hardlinks in the data makes copying impractical. I may rebuild it with CentOS 6 later and let the backups rebuild themselves, but I don't want to do it now if I can avoid it.
There is a /etc/modprobe.conf file on the original system. Among other things, it says:
alias scsi_hostadapter sata_nv
I assume that refers to the driver for the nvidia chipset.
I found a modprobe.conf file in the rescue environment living in /tmp/modprobe.conf. This one says:
alias scsi_hostadapter ahci
I guess that's a driver that works with the new hardware? I do not have the ports in ahci mode in the bios.
lsmod from the running rescue system should show the loaded modules. Your initrd has to include anything needed to access the hard drive and filesystem before you can find the others.
What do I need to do to make sure the driver gets into initrd? Or do I just need to make the change to /etc/modprobe.conf on the hard drive?
I think you would change the /etc/modprobe.conf on the hard drive and chroot there (/mnt/sysimage) before running mkinitrd.
I figured that one out just before I received your response. That fixed the bootup problem. The changes to modprobe.conf were what was missing from the instructions I found online on Friday.
For future reference, this is what I did:
1) Boot into rescue mode. 2) Look at /tmp/modprobe.conf in the rescue environment to see what driver was in use. 3) Edit /mnt/sysimage/etc/modprobe.conf and add the driver there 4) chroot /mnt/sysimage 5) cd /boot 6) mv initrd-(kernel version).img initrd-(kernel version).img.bkup 7) mkinitrd initrd-(kernel version).img (kernel version) 8) reboot
Now I've just got to work on getting the network card going, but that (I hope!) should be much easier now that the system is booting.
On 4/15/2013 1:35 PM, m.roth@5-cent.us wrote:
Bowie Bailey wrote:
On 4/12/2013 5:33 PM, Bowie Bailey wrote:
I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic.
When I try to boot up, I get this:
Volume group "VolGroup00" not found ERROR: /bin/lvm exited abnormally! (pid 448) mount: error 6 mounting ext3 mount: error 2 mounting none switchroot: mount failed: 22 umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init!
(I apologize for any typos, I don't have a way to copy/paste from that screen)
I can boot up with the boot CD, go into rescue mode and browse the files, so I know the drives are ok.
I found some stuff online saying that I should recreate my initrd from rescue mode if the motherboard changed. I tried this, but am still getting the same results.
Anyone have any ideas here? I can rebuild the machine if I have to, but that's a last resort.
Sorry, hit <send> and had another thought: I think you said you rebuilt the initrd... *could* you see the drives? *Did* the running system you rebuilt from have all the LVM drivers loaded when you rebuilt it?
I can see the drives from the rescue environment. I don't know how to check the LVM drivers.
Bowie Bailey wrote:
On 4/15/2013 1:35 PM, m.roth@5-cent.us wrote:
Bowie Bailey wrote:
On 4/12/2013 5:33 PM, Bowie Bailey wrote:
I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic.
When I try to boot up, I get this:
Volume group "VolGroup00" not found ERROR: /bin/lvm exited abnormally! (pid 448) mount: error 6 mounting ext3 mount: error 2 mounting none switchroot: mount failed: 22 umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init!
(I apologize for any typos, I don't have a way to copy/paste from that screen)
I can boot up with the boot CD, go into rescue mode and browse the files, so I know the drives are ok.
I found some stuff online saying that I should recreate my initrd from rescue mode if the motherboard changed. I tried this, but am still getting the same results.
Sorry, hit <send> and had another thought: I think you said you rebuilt the initrd... *could* you see the drives? *Did* the running system you rebuilt from have all the LVM drivers loaded when you rebuilt it?
I can see the drives from the rescue environment. I don't know how to check the LVM drivers.
You need *both* the md drivers and lvm drivers. I haven't built a system using lvm in years, I'm afraid, but it shouldn't be too hard.
Btw, this may be of some interest: http://www.centos.org/docs/5/html/Cluster_Logical_Volume_Manager/device_mapper.html
mark
On 4/15/2013 5:09 PM, m.roth@5-cent.us wrote:
Bowie Bailey wrote:
On 4/15/2013 1:35 PM, m.roth@5-cent.us wrote:
Bowie Bailey wrote:
On 4/12/2013 5:33 PM, Bowie Bailey wrote:
I had to replace the motherboard on one of my CentOS 4 systems and am now getting a kernel panic.
When I try to boot up, I get this:
Volume group "VolGroup00" not found ERROR: /bin/lvm exited abnormally! (pid 448) mount: error 6 mounting ext3 mount: error 2 mounting none switchroot: mount failed: 22 umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init!
(I apologize for any typos, I don't have a way to copy/paste from that screen)
I can boot up with the boot CD, go into rescue mode and browse the files, so I know the drives are ok.
I found some stuff online saying that I should recreate my initrd from rescue mode if the motherboard changed. I tried this, but am still getting the same results.
Sorry, hit <send> and had another thought: I think you said you rebuilt the initrd... *could* you see the drives? *Did* the running system you rebuilt from have all the LVM drivers loaded when you rebuilt it?
I can see the drives from the rescue environment. I don't know how to check the LVM drivers.
You need *both* the md drivers and lvm drivers. I haven't built a system using lvm in years, I'm afraid, but it shouldn't be too hard.
Btw, this may be of some interest: http://www.centos.org/docs/5/html/Cluster_Logical_Volume_Manager/device_mapper.html
I got it figured out. The problem was at the sata driver level. The instructions I found for rebuilding the initrd neglected to mention that I needed to edit modprobe.conf and add the appropriate driver information first.
I'm still not sure why it was able to get as far as loading the kernel before suddenly being unable to see the drives. If it needs sata drivers to see the disks, why doesn't it need them to read the boot partition? I didn't have to mess with grub or the boot sector after changing motherboards.
On Tue, Apr 16, 2013 at 8:30 AM, Bowie Bailey Bowie_Bailey@buc.com wrote:
I got it figured out. The problem was at the sata driver level. The instructions I found for rebuilding the initrd neglected to mention that I needed to edit modprobe.conf and add the appropriate driver information first.
I'm still not sure why it was able to get as far as loading the kernel before suddenly being unable to see the drives. If it needs sata drivers to see the disks, why doesn't it need them to read the boot partition? I didn't have to mess with grub or the boot sector after changing motherboards.
Grub uses the system bios to load the kernel and initrd. Then the kernel takes over and has to either have the needed disk/raid/lvm/filesystem drivers compiled in or available as modules in the initrd to be able continue and mount the drives.
-- Les Mikesell lesmikesell@gmail.com