• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1351
  • Last Modified:

Kernel panic error

I recently installed RHEL 4 in a Server Machine , created one partition for "boot " and rest as LVM .
In LVM I created Logical volumes like 535 GB  /  and 200 GB /home . After Installed OS and configured some servers on it . I got a situation like we need to reduce Logical volume " / " partition size 535 GB to 500 GB . I did this using lvreduce command  but by mmistake I given only 5 GB space first time afterthat  I extented " / " logical volume in to  +500 GB . Now its 505GB , but when I tried to do lvdispay its not showing the size . After that I rebooted my server its not booting , giving Kernel Panic error .

In rescue mode i used "chroot /mnt/sysimage " command and its giving me error "Permission Denied ". I tried to do  " e2fsck /dev/vol/log02 "command and  its also giving me same error .
Please advise with a  best solution to make  server up .
0
remeshk
Asked:
remeshk
  • 3
  • 3
1 Solution
 
nociSoftware EngineerCommented:
The Panic error message is just the message that the kernel is giving up, there should have been a few lines above it describing what failed.... (f.e. it cound find the root file system, couldn't find a driver are whatever...)

You might have reduced the root volume a tad too much and destroyed in the process.
Any backups?

chroot /mnt/sysimage only works after you mount the root filesystem on /mnt/sysimage
It also tries to execute the /bin/bash in that new root (or whatever command you give on the command line).

the /dev/vol/log02 did exist when you tried this?

The probability that you will recover any data is very small.
My suggestion restore / from backup or
reinstall the system you intended to the new / (after a mke2fs)

0
 
remeshkAuthor Commented:
Thanks noci , kernel panic shows  " sync initialization failed "  . I don't have any backup . In rescue mode root partition is mounted  under /mnt/sysimage  , while I am trying to execute " chroot /mnt/sysimage " its  " giving me error permission denied "  . In rescue mode I checked before mounting root partition /dev/vol/log02 is not exist . I am sure this is happened after reduce my LVM partition ( / ) . Could you tell me is there any problem in  reducing LVM  ?
0
 
nociSoftware EngineerCommented:
If there is was no valuable data on the LVM volume the quickest way to restore everything might be to do
a reinstalation.
Anyway:
Where is /mnt/sysimage mounted then.., This should have been you root volume from before,
On the CD that might as well be /tmp/vol.... as /dev/....
(mount and df command supply this info)
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
remeshkAuthor Commented:
Hi ,

At last I had to reinstall the operating system .

Thanks & Regards ,
Remesh.k
0
 
remeshkAuthor Commented:
Hi ,

At last I had to reinstall the operating system .

0
 
nociSoftware EngineerCommented:
IMHO, A delete is warranted, shrinking volumes cannot be done just like that...  A suggested solution was followed.
But a refund of points?
0
 
Vee_ModCommented:
Force accepted.
Vee_Mod
Community Support Moderator
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now