nixCraft Linux Forum

nixCraft

Linux 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

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-07-2006, 09:30 PM
Junior Member
User
 
Join Date: Mar 2006
Location: madurai
Posts: 22
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
Sponsored Links
  #2 (permalink)  
Old 04-08-2006, 09:28 AM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 0
tom is an unknown quantity at this point
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 04-08-2006, 09:44 AM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 576
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
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.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #4 (permalink)  
Old 04-08-2006, 06:22 PM
Junior Member
User
 
Join Date: Mar 2006
Location: madurai
Posts: 22
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 04-09-2006, 04:14 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
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 04-09-2006, 04:20 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 576
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
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.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #7 (permalink)  
Old 04-09-2006, 04:37 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 962
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 | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #8 (permalink)  
Old 04-13-2006, 12:20 AM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 0
tom is an unknown quantity at this point
Default

Mod stick out this post as it got some good info
Reply With Quote
  #9 (permalink)  
Old 04-13-2006, 12:32 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 962
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 | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #10 (permalink)  
Old 03-24-2008, 06:07 PM
Member
User
 
Join Date: Mar 2008
My distro: Debian, Slackware, LFS
Posts: 83
Rep Power: 1
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

Bookmarks


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 On

Similar Threads

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


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


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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