LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-09-2009, 02:43 AM   #1
gaxi
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Kernel Panic at boot when PV missing from VG (LVM)


Hi,

I installed a server with Centos 5.2 on a machine with two physical sata-harddisks.

I used LVM to create a mirror for the two LVs, the root-LV plus one data-LV. (with lvcreate/lvconvert). I only have two disks so I used —corelog.

For testing reasons I simulated the failure of one harddisk and shutdown and removed /dev/sda (with /boot on it).
I created a boot-CD with mkbootdisk before. The boot-CD does not start the system but brings a kernel-panic because one PV is missing.
I don't have a clue how to remove the failed PV from a system which cannot boot.

Of course I already googled a lot for this problem but did not find a proper solution.

Did I miss a detail? Is mirroring of LVs with LVM (with corelog) a usable solution for harddisk-failures?

gaxi
 
Old 03-10-2009, 03:06 PM   #2
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 356

Rep: Reputation: 43
I found this:
http://prefetch.net/blog/index.php/2...lvm-silliness/
and this:
http://www.redhat.com/docs/manuals/e...or_create.html

Seems corelog is logging sync changes in memory. So after boot, those changes are gone.

You may try seeing if you can repair by booting into a rescue environment, provided LVM will give you tools to recover.

Last edited by TBC Cosmo; 03-10-2009 at 03:12 PM. Reason: Add link and comment
 
  


Reply


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
RHEL4 Strange kernel panic on boot. Kernel Update no solution RattleSn@ke Red Hat 3 02-07-2009 03:24 AM
Kernel panic when booting - LVM problem adamski2000 Fedora 4 03-25-2007 03:15 PM
LVM, lost partition table and kernel IS in panic pulassa_aina Fedora 2 06-29-2006 07:00 AM
Kernel Panic - Missing "initrd.img-2.6.8-2-686" in /boot MKSrivastava Debian 2 12-02-2005 03:09 PM
LVM on root: Kernel Panic: Gentoo Sutekh Linux - General 2 08-17-2003 08:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:08 AM.

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