nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

kernal panic in redhat enterprise linux as4.0

This is a discussion on kernal panic in redhat enterprise linux as4.0 within the Linux software forums, part of the Linux Getting Started category; while i am booting the linux i am getting kernal panic error.what are the possible ways to troubleshoot this problem.thanx ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-04-2006, 09:30 PM
Junior Member
User
 
Join Date: Mar 2006
Location: madurai
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ramjimh
Send a message via Yahoo to ramjimh
Default kernal panic in redhat enterprise linux as4.0

while i am booting the linux i am getting kernal panic error.what are the possible ways to troubleshoot this problem.thanx in advance.


with rgds,

ramjimh
Reply With Quote
  #2 (permalink)  
Old 08-04-2006, 09:28 AM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 5
tom is on a distinguished road
Default

Resolving a kernel panic is not a simple task. You need to provide us exact error message. For example few days back my new kernel stop at boot up with the error message
Kernel panic: VFS: Unable to mount root fs on…

What message do you see? Please post message so that we can help you further
Reply With Quote
  #3 (permalink)  
Old 08-04-2006, 09:44 AM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 703
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

Are you using 64 bit AMD/Intel EM64T based kernel? Many servers have problem to boot 64bit SMP servers so boot into single UP mode server. Type following two parameters at Grub prompt
Code:
nosmp maxcpu=1
In addition, boot system into single UP mode then update your kernel and try it out again

Also as pointed by tom it is better if you give us exact kernel panic message. Otherwise, we cannot guess your message and it will make delay for you to get solution
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #4 (permalink)  
Old 08-04-2006, 06:22 PM
Junior Member
User
 
Join Date: Mar 2006
Location: madurai
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ramjimh
Send a message via Yahoo to ramjimh
Default kernal panic in red hat enterprise linux as4.0

can you give me general troubleshooting guide lines for kernal panic errors.i don't know the exact errors.if you give general troubleshooting for linux it will be useful for future purpose.

with rgds,

ramjimh
Reply With Quote
  #5 (permalink)  
Old 09-04-2006, 04:14 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
OS: Debian GNU/Linux
Posts: 506
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 7
monk has a spectacular aura about monk has a spectacular aura about
Default

ramjimh,

If you get error Kernel panic: VFS: Unable to mount root fs…

a) It means initrd image is missing
b) Or image does not include fs kernel modules to access the filesystem on the partition

Solution boot from rescue cd and try to resinstall fresh copy of kernel from CD or RHN
Reply With Quote
  #6 (permalink)  
Old 09-04-2006, 04:20 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 703
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

If you see mysterious kernel hangs/ kernel Freezes at boot time then enable sysrq support in kernel See doc how to enable Reboot or halt Linux system in emergency http://www.cyberciti.biz/nixcraft/vi...system-in.html
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #7 (permalink)  
Old 09-04-2006, 04:37 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,706
Thanks: 11
Thanked 243 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

You need to enter nosmp and maxcpus parameter at Grub or Lilo boot prompt. For example if you are using Grub as a boot loader, at Grub prompt press 'e' to edit command before booting.

1) Select second line
2) Again, press 'e' to edit selected command
3) Go to end of line and type two parameters
nosmp maxcpus
4) Press enter twice and b to boot system
5) This will prevent the kernel panic and system hang scenario.
Once your system is up using single CPU then you can run diagnostic commands such as:

Get all boot message:
Code:
dmesg  | less
Find out if problem with PCI cards
Code:
lspci –vv
Find out what device drivers loaded (if something is missing then your driver will not get loaded)
Code:
lsmod
Get memory info (is memory detected correctly?)
Code:
free
cat /proc/meminfo
Get CPU info (see if your CPU hit by any bug):
Code:
 cat /proc/cpuinfo
Find out your kernel version:
Code:
 uname -a
If kernel is old then update it to latest stable release from RHN using up2date command
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #8 (permalink)  
Old 13-04-2006, 12:20 AM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 5
tom is on a distinguished road
Default

Mod stick out this post as it got some good info
Reply With Quote
  #9 (permalink)  
Old 13-04-2006, 12:32 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,706
Thanks: 11
Thanked 243 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Done
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #10 (permalink)  
Old 24-03-2008, 06:07 PM
Member
User
 
Join Date: Mar 2008
OS: Debian, Slackware, LFS
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
Tux-Idiot is on a distinguished road
Talking addon reason "why" and solution "oh"

Quote:
Originally Posted by nixcraft View Post
You need to enter nosmp and maxcpus parameter at Grub or Lilo boot prompt. For example if you are using Grub as a boot loader, at Grub prompt press 'e' to edit command before booting.

1) Select second line
2) Again, press 'e' to edit selected command
3) Go to end of line and type two parameters
nosmp maxcpus
4) Press enter twice and b to boot system
5) This will prevent the kernel panic and system hang scenario.
Once your system is up using single CPU then you can run diagnostic commands such as:

Get all boot message:
Code:
dmesg  | less
Find out if problem with PCI cards
Code:
lspci –vv
Find out what device drivers loaded (if something is missing then your driver will not get loaded)
Code:
lsmod
Get memory info (is memory detected correctly?)
Code:
free
cat /proc/meminfo
Get CPU info (see if your CPU hit by any bug):
Code:
 cat /proc/cpuinfo
Find out your kernel version:
Code:
 uname -a
If kernel is old then update it to latest stable release from RHN using up2date command
i had big bad time with a faulty mother board. its ram went for a toss, motherboard went for a toss, ide cables were rat chewed and smps was choking for fresh oxygen.
check the motherboard for tight connection setup.
check smps for proper power supply. thats why i got decent UPS and had to redo the wiring.
change ide/sata cables if cable gets chewed
ram is tossed? then run memtest86 or memtest86+
if these arent issues? then check for the health of the harddrive. run a check on IO status of the cylinders of harddrive. run fsck with real verbose mode. in ext2/3 we dont have any defragment option. and defragment is not necessary, because it got -j option in mkfs.conf which stands for journaling. when issuing fsck check for cylinder error and also bad blocks. and make sure bad blocks are not in the boot sector. else? kiss it bye bye. KIBB.
if everything is fine? run gdb if you are a little advanced user and if you are a little advanced than a little advanced user? "then kdb, because once is kernel? YOU START TO PANIC." run a kdb trace. and locate the exact source of the error and fix it. scramble, search, shoot, execute and fix!
happy rebooting.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Redhat Enterprise Linux RHEL - Start service on boot chimu Getting started tutorials 0 26-01-2007 07:29 PM
Upgrading Perl in redhat Enterprise Linux raj Linux software 1 03-01-2007 08:07 AM
Turn on Telnet for a Red Hat Enterprise Linux raj Linux software 1 20-12-2006 02:40 AM
Migrate a web server to Red Hat Enterprise Linux 4 from 3 chimu Linux software 2 19-12-2006 12:08 AM
redhat linux as4.0 kernal panic ramjimh Linux software 1 25-04-2006 02:37 PM


All times are GMT +5.5. The time now is 03:05 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38