centOS5.5升级内核后无法进入系统No volume groups found

nic122333 2013-01-03 02:16:23
原来是CentOS5.5 内核2.6.18-274.e15PAE,升级成2.6.21,重启后出错找不到系统分区的挂载点,下面就是系统不能启动、停住的信息:
Waiting for driver initialization.
Scanning and configuring dmraid supported devices
Scanning logica volumes
Reading all physical volumes. This may take a while...
No volume groups found
Activating logical volumes
Volume group "VolGroup00" not found
Creating root device.
Mounting root filesystems.
mount:could not find filesystem '/dev/root'
Setting up other filesystem.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc:No such file or directory
setuproot: error mounting /sys:No such file or directory
Switching to new root and running init.
umounting old /dev
umounting old /proc
umounting old /sys
switchroot: mount failed:No such file or directory
Kernel panic - not syncing:Attempted to kill init!
怀疑是硬盘驱动在编译时没有添加,但是我后来吧SCSI和SATA的全部都加入了,编译后再启动照样出错。

系统的grub是(主要信息):
splashimage=(hd0,1)/grub/splash.xpm.gz

title CentOS(2.6.21)
root(hd0,1)
kernel /vmlinuz-2.6.21 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.21.img
title CentOS(2.6.18-274.e15PAE)
root(hd0,1)
kernel /vmlinuz-2.6.18-274.e15PAE ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-274.e15PAE.img
在2.6.18内核下,在终端中查看挂载信息
df -lhT
/dev/mapper/VolGroup00-Logvol00 ext3 408G 8.4G 379G 3% /
/dev/sda2 ext3 99M 27M 68M 29% /boot
tmpfs tmpfs 4.0G 0 4.0G 0% /dev/shm

系统分区是不是用LVM做的?
怀疑是新的2.6.21内核对LVM不兼容??
求指点啊
...全文
680 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
Samdy_Chan 2013-08-16
  • 打赏
  • 举报
回复
我也有这种情况,在 make menuconfig 里找不到“Logical volume manager (LVM) support”这项,怎么回事?
辰岡墨竹 2013-01-04
  • 打赏
  • 举报
回复
另外升级内核之前一定要把用到的工具弄成最新版,比如Modutils、mkinitrd、binutils、Device Mapper、lvm
辰岡墨竹 2013-01-04
  • 打赏
  • 举报
回复
你重建了initrd了么? 你编译的时候选了RAID和LVM支持里选了Logical volume manager (LVM) support了么?
nic122333 2013-01-04
  • 打赏
  • 举报
回复
引用 1 楼 Bokutake 的回复:
你重建了initrd了么? 你编译的时候选了RAID和LVM支持里选了Logical volume manager (LVM) support了么?
我从原来的2.6.18的boot目录中拷贝的.config文件。添加了RAID支持,但没看到Logical volume manager (LVM) support项目啊
nic122333 2013-01-04
  • 打赏
  • 举报
回复
引用 1 楼 Bokutake 的回复:
你重建了initrd了么? 你编译的时候选了RAID和LVM支持里选了Logical volume manager (LVM) support了么?
我按照一般的流程来编译内核的 make menuconfig make make modules_intall make install 怎么重建initrd,一般编译内核不用手动重建吧

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧