Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 12-31-2008, 02:25 AM   #1
Registered: Oct 2007
Location: Netherlands, ZH
Posts: 32

Rep: Reputation: 15
Question [SOLVED] RHEL4 Strange kernel panic on boot. Kernel Update no solution


I have the following strange thing with a RHEL4 installation.
Since last week, the system did a reboot and now something is really fucked up. During boot we get the following messages (don't care about 'strange' typo's, my colleague typed it 'blind' from the screen)

scanning logical volumes
reading all physical volumes this may take a while
hda: packet command error:status=0x51 { Drivev Ready SeekComplete Error}
hda packet command error: error=0x54
ide failed opcode was 100
FOund volume group "Volgroup00" using metadata type lvm2
Activating logical volumes 
2 logical volumes in volume group VolGroup00" is now active
creating root device
Mounting root filesystem
kjournald starting. Commit interval 5secndes
EXT3-fs: mounted filesystem with ordered data mode
switchting to new root
Kernel panic -not syncing: Attempted to kill init!
In above: hda = cdrom
HDD is sda.

The strange thing is that we never see a 'could not mount blabla' or similar messages. First we thought it was a failing kernel update by plesk, but even after manually updating the kernel with RHN RPM's, still the same message. Booting with rescue mode and then chroot the system works. After that we even can start things like plesk and so on.

We double checked things with another RHEL4 install, and at least two things were odd:
1: the working machine has /dev/dm-0 and /dev/dm-1, the broken one doesn't
2: some files on /dev didn't have group root, but 252

We tried to recreate the /dev/dm-X nodes with [vgmknodes -v], output:
file descriptor 20 left open
file descriptor 21 left open
finding all logical volumes
fixing up missing size 148.88 gb for PV /dev/sda2
A fdisk /dev/sda shows: /dev/sda2 XX XXX XXXXX Linux LVM (I removed the numbers because this line is from another machine, but rest was identical)

We have a copy of the boot partition so if one need more info please let me know.

title Red Hat Enterprise Linux ES (2.6.9-78.0.8.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-78.0.8.ELsmp ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.9-78.0.8.ELsmp.img
last part of init extracted from initrd-2.6.9-78.0.8.ELsmp.img:
echo Making device-mapper control node
echo Scanning logical volumes
lvm vgscan --ignorelockingfailure
echo Activating logical volumes
lvm vgchange -ay --ignorelockingfailure VolGroup00
echo Creating root device
mkrootdev /dev/root
umount /sys
echo Mounting root filesystem
mount -o defaults --ro -t ext3 /dev/root /sysroot
mount -t tmpfs --bind /dev /sysroot/dev
echo Switching to new root
switchroot /sysroot
umount /initrd/dev
I hope someone can give me some insight in this issue, because my ideas are depleted. Ow BTW !!:: Almost at the same time we have another machine (CentOS) in another Datacenter with the identical issue!! That's just to strange in my eyes...

And for those who are reading this today: Already have a happy newyear!


Last edited by RattleSn@ke; 02-07-2009 at 03:12 AM. Reason: Problem solved.
Old 01-02-2009, 01:25 PM   #2
Registered: Oct 2007
Location: Netherlands, ZH
Posts: 32

Original Poster
Rep: Reputation: 15

In addition to my question I discovered the following:
I installed a VM with RHEL4 to check some things out, and I discovered that the next message right after "switchting to new root" is "SELinux disabled on runtime". At least that is on a working machine. So I would say (please disagree with me if I'm wrong) that SELinux is causing the kernel to panic right?!

Hope someone can reply on this with useful info.

Old 01-02-2009, 04:34 PM   #3
Registered: Mar 2008
Location: currently, where ever the army takes me
Distribution: Debian Lenny/Ubuntu or Arch Linux
Posts: 145

Rep: Reputation: 28
I am also getting the same problems with PUD linux, and antix linux on my virtualbox vm's. when i tried installing pud on my laptop, i got the kernel panic error, so i reverted back to ubuntu and did a virtual machine to see what was wrong with pud, if it didnt like my hardware or whatnot. im at a loss here too. so if anyone has any hints or answers, shoot, i'll take them.
Old 02-07-2009, 03:24 AM   #4
Registered: Oct 2007
Location: Netherlands, ZH
Posts: 32

Original Poster
Rep: Reputation: 15

This problem is solved. I found out by myself that the problem was caused by a faulty /sbin/init

Normally the init exec is around 40KB or more, but on all these systems it was just around 15KB (!) We really don't know what happend, we think "someone" screwed it up. After doing a reinstall of SysVinit RPM, everything started to work again.

To complete this post I'll include the commands used to force the reinstall of the SysVinit Package.

# rpm -qa |grep -i sysvinit

# rpm -e --nodeps SysVinit-2.85-34.4

# yum install sysvinit

That did the trick.

At least thanks for replies.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Panic - Unable to Boot RHEL4 *******glibc*******8 teluguswan Red Hat 4 10-18-2010 08:39 AM
Kernel Panic After Upgrade from RHEL4-5 sunny123 Red Hat 1 03-04-2008 01:23 PM
Boot panic with kernel update + bootsplash vcatalano Debian 3 03-27-2007 04:17 PM
Kernel Panic: Solution? TSHF-Megsy Linux - Software 1 11-18-2005 10:19 PM
YaST Online Update + AMD kernel patch = kernel panic THX1138 Linux - General 3 10-26-2003 04:25 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 12:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration