我有一台Centos 6服务器,在过去的6个月里,它在Google Compute平台上运行时间为6个月。
没有重新启动 – 今天早上冻结,重新启动时在启动时产生以下错误:
[ 3.205240] VFS: Cannot open root device "UUID=e2eb8dc4-d9f9-48e8-9194-cdbff5f4513f" or unknown-block(0,0) [ 3.208204] Please append a correct "root=" boot option; here are the available partitions: [ 3.210557] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 3.213256] Pid: 1, comm: swapper veid: 0 Not tainted 2.6.32-673.8.1.lve1.4.3.1.el6.x86_64 #1 [ 3.215642] Call Trace: [ 3.216263] [<ffffffff81546288>] ? panic+0xa7/0x16f [ 3.217749] [<ffffffff81c45515>] ? mount_block_root+0x208/0x2bd [ 3.219708] [<ffffffff81002930>] ? bstat+0x200/0x8d0 [ 3.221633] [<ffffffff81c45620>] ? mount_root+0x56/0x5a [ 3.223300] [<ffffffff81c45794>] ? prepare_namespace+0x170/0x1a9 [ 3.225390] [<ffffffff81c44ac2>] ? kernel_init+0x2e6/0x2fc [ 3.227119] [<ffffffff8100971d>] ? __switch_to+0x7d/0x340 [ 3.228979] [<ffffffff8100c3ca>] ? child_rip+0xa/0x20 [ 3.231076] [<ffffffff81c447dc>] ? kernel_init+0x0/0x2fc [ 3.232883] [<ffffffff8100c3c0>] ? child_rip+0x0/0x20
我已closures实例并将磁盘连接到另一台计算机,并且:
这与fstab没有任何关系。 这是您的initramfsfind根卷本身的失败。 这通常是由于初始ramdisk,或者没有所需的模块来发现/挂载包含root的块设备,或者缺lessGRUB传递的适当根卷信息。
上面的一个例子是initramfs找不到root的块设备,因为没有LVM模块需要find一个LVM的根LV。
另外,这可能是由于您的GRUB有一个无效的root = entry,因为initramfs获取了有关从GRUB挂载的信息(如在启动时传递的信息)。 确保使用UUID来定义根卷,并且在GRUB中指定的UUID与卷自身的UUID相匹配。
看起来它没有发现任何可能被挂载的东西,因此在initramfs中缺less模块的问题比其他任何东西都要多。 您可能需要在chroot中重build您的initramfs(使用有权访问该卷的实时操作系统)。 Dracut是你将用来重buildinitramfs的工具。
如果重build后仍然有问题,那么提取initramfs并检查其内容将是一个谨慎的行动。 在这种尝试中,如果在根安装或根节点失败时将其删除到initramfs shell,则会非常有帮助。 如果是这样的话,你会很容易的调查这是什么原因(因为shell默认有很多工具)。