前几天重装系统时,我把hda10和hda11做成了两个物理卷,放到一个卷组vg里面。然后再vg里建立了3个逻辑卷,分别为lv1,lv2和lv3。lv1给了swap,lv2给了/,lv3给了/usr/share。而/boot没有使用LVM管理,单独放到hda8里。
昨天晚上试验LVM,用vgrename把vg改成main(vgrename vg main),用lvrename把lv2改成lv_root(lvrename main lv2 lv_root),把lv3改成lv_usr_share(lvrename main lv3 lv_usr_share)。然后就重启了机器。结果就起不来了。错误是init not found。相关的一段错误信息如下:
LVM version 1.0.5+(22/07/2002) module loaded.
Mounting /proc filesystem
Creating block devices.
Scaning logical volumes.
Vgscan -- reading all physical volumes (this may take a while)
Vgscan -- found inactive volume group "main"
Vgscan -- "/etc/lvmtab" and "/etc/lvmtab.c" successgully created.
Vgscan -- Warning: This program does not do a VGDA backup of your volume group
Activating logical volumes
Vgchange -- volume group "main" successfully activated
Mounting root filesystem
mount: error 2 mounting ext3
privotroot: pivot_root(sysroot, sysroot/initrd)failed: 2
umount /initrd/proc failed: 2
kernel panicl: no init found. please try send "init=" option to kernel.