硬體更換修復系統方法

rusli
Site Admin
文章: 212
註冊時間: 週三 7月 07, 2010 9:49 pm

硬體更換修復系統方法

文章rusli » 週六 6月 16, 2012 5:52 pm

P2V: VolGroup00 not found

So you P2V'd a Linux box (CentOS, RedHat, Oracle, etc.) that is using LVM and now when it boots you get:

Reading all physical volumes. This may take awhile...
Volume group "VolGroup00" not found
Unable to access resume device (/dev/VolGroup00/LogVol01)
mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!

Well that sucks--basically initrd didn't have the right drivers to access the file system.

Reboot the VM with the Linux distro ISO attached

Then it boots from the CD follow the instructions to enter Linux Rescue (usually you type "linux rescue" at the boot prompt)

Now we can rebuild initrd with the missing drivers.

Enter:

chroot /mnt/sysimage
cd /boot


Type:

mkinitrd -v -f initrd
Now hit tab and it will auto complete then add the text that was autocompleted when you hit tab except for the .img

So your command should look like:

mkinitrd -v -f initrd2.4.18-19.8.0.img 2.4.18-19.8.0
Hit enter and it will do it's thing with a lot of output coming out, when it's done type exit annd exit again and the VM will reboot automatically. Should boot up just fine this time.


http://michael.requeny.com/2011/03/25/p ... linux-lvm/

回到「CentOS」

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客