LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-17-2008, 02:58 PM   #1
beeth2006
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Rep: Reputation: 0
Arrow System reboot stop at kernel panic - after restore from clone image


I have a critical Linux box running RHEL4 on Dell PowerEdge 1850. I was asked to clone the whole system to another Dell server ( Dell PowerEdge 2950 ).
I knew clone Linux between dissimilar hardware could be difficult, however, due to the complexity of the existing server, installing OS then software on the new box(PE2950) would be almost impossible to ensure they are identical. So, I used Acronis True Image to create an image from the PE1850, and restore it to the PE2950.

The grub looked fine, the new system picked the first kernel and continue booting, however, I got kernel panic right after that.
Details are as follows:
...
No volume groups found
Volume group "VolGroup00" not found
ERROR: /bin/lvm exited abnormally! (pid 529)
mount: error 6 mounting ext3
mount: error 2 mounting none
switchroot:mount failed: 22
umount /initrd/dev failed: 2
kernel panic - not syncing: Attempted to kill init!


I booted the system with the Redhat installation CD and went into the "linux rescue" mode, then "chroot /mnt/sysimage", I could see all the data/files.

This is from the source linux box:
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
269G 67G 189G 27% /
/dev/sda1 289M 31M 244M 12% /boot
none 1014M 0 1014M 0% /dev/shm

# fdisk -l
Disk /dev/sda: 293.3 GB, 293391564800 bytes
255 heads, 63 sectors/track, 35669 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 38 305203+ 83 Linux
/dev/sda2 39 35669 286206007+ 8e Linux LVM


That is, most data/files are on LVM, and the backup and restore of LVM looked successful, since I could mount it and browse files on the new box.

Because I "clone" the whole partitions, all the files on two systems should be identical.

The PE1850(source) has one Logical drive on top of hardware RAID, same as PE2950(destination), although physical disk numbers are different, which should not have any impact.


I found another post had same error message as mine:
http://forums12.itrc.hp.com/service/...readId=1187094
However, the situations are totally different. I didn't do any change to the kernel(I clone disk), so, it shouldn't be a kernel issue like Gary had.


How to fix such LVM problem?
I appreciate any answers or suggestions.
Thank you!
 
Old 09-17-2008, 04:48 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by beeth2006 View Post
That is, most data/files are on LVM, and the backup and restore of LVM looked successful, since I could mount it and browse files on the new box.
How did you mount the LV if you could not boot the kernel?
 
Old 09-18-2008, 09:20 AM   #3
beeth2006
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by David1357 View Post
How did you mount the LV if you could not boot the kernel?
I mentioned in my original post that:
I booted the system with the Redhat installation CD and went into the "linux rescue" mode, then "chroot /mnt/sysimage", I could see all the data/files.

If I boot from the harddrive, I couldn't mount LVM, and got kernel panic...
 
Old 09-18-2008, 09:21 AM   #4
beeth2006
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
The problem may be related to LVM config, but I have no clue how to fix this.
Any input will be great.
Thanks!

Last edited by beeth2006; 09-18-2008 at 09:22 AM.
 
Old 09-18-2008, 02:24 PM   #5
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by beeth2006 View Post
The problem may be related to LVM config, but I have no clue how to fix this.
Any input will be great.
Thanks!
The initrd from your original machine may not have the necessary drivers needed to communicate with your hardware properly. You might try using the RedHat install CD environment to update your initrd. This is harder to do than it is to say, because you will probably not have any of the necessary packages.

The basic syntax is like this
Code:
example: mkinitrd /boot/initrd-2.2.5-15.img 2.2.5-15
I copied that from this HOWTO.

WARNING: Make a backup copy of your initrd file before you overwrite it. You can have multiple files with different names and specify the one you want on the kernel line when it boots.
 
  


Reply



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
clonezilla clone disk to image, when restore from image to destination hdd problem. hocheetiong Linux - Newbie 3 05-06-2008 07:59 PM
kernel panic after image restore turnbui Linux - Software 1 06-20-2006 02:30 AM
"make clean" caused system freeze, kernel panic on reboot jwhill2000 Linux - General 3 02-08-2005 07:59 PM
[dump,restore] system => kernel panic? bdp Linux - General 2 01-12-2004 09:19 PM
on reboot network stop stalls the system. pdescham Linux - Networking 2 09-26-2003 02:15 PM

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

All times are GMT -5. The time now is 05:51 PM.

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