Cloudlinux、GRUB 0.97、软件 RAID,无法自动启动

Cloudlinux、GRUB 0.97、软件 RAID,无法自动启动

我的服务器正在运行 Cloudlinux,并且有一个软件 RAID 镜像(由 /dev/sda 和 /dev/sdb 组成的 /dev/md2)安装在 /

它一直运行良好,但在模拟 raid 故障并重建镜像后,它不会自行重启。相反,它会将我转至 grub> 提示符。

如果我这样做,它将正常启动:

grub> root (hd0,1)
grub> kernel /boot/vmlinuz-2.6.32-531.29.2.lve1.3.11.10.el6.x86_64 root=/dev/md2
grub> initrd /boot/initramfs-2.6.32-531.29.2.lve1.3.11.10.el6.x86_64.img
grub> boot

但无论我怎么尝试,我都无法让它自动启动。就好像它没有看到 /boot/grub/grub.conf(符号链接到 menu.lst)/boot/grub/grub.conf 看起来像这样:

default=0
timeout=2

title CloudLinux Server (2.6.32-531.29.2.lve1.3.11.10.el6.x86_64)
   root (hd0,1)
   kernel /boot/vmlinuz-2.6.32-531.29.2.lve1.3.11.10.el6.x86_64 root=/dev/md2 LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  ro nohz=off
   initrd /boot/initramfs-2.6.32-531.29.2.lve1.3.11.10.el6.x86_64.img

我已经使用 grub-install 在两个驱动器上重新安装了 grub,并且还完成了以下操作:

grub> find /boot/grub/stage1
 (hd0,1)
 (hd1,1)
grub> device (hd0) /dev/sda
device (hd0) /dev/sda
grub> root (hd0,1)
root (hd0,1)
 Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... failed (this is not fatal)
 Running "embed /boot/grub/e2fs_stage1_5 (hd0,1)"... failed (this is not fatal)
 Running "install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/grub.conf "... succeeded
Done.
grub> device (hd1) /dev/sdb
device (hd1) /dev/sdb
grub> root (hd1,1)
root (hd1,1)
 Filesystem type is ext2fs, partition type 0x83
grub> setup (hd1)
setup (hd1)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd1)"... failed (this is not fatal)
 Running "embed /boot/grub/e2fs_stage1_5 (hd1,1)"... failed (this is not fatal)
 Running "install /boot/grub/stage1 (hd1) /boot/grub/stage2 p /boot/grub/grub.conf "... succeeded
Done.

有任何想法吗?

相关内容