`
扬州老鬼
  • 浏览: 301747 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

血的教训:扩充lv_root之后系统启动失败,重装也失败

阅读更多

我需要扩大我的root所在的逻辑卷,运行命令之后,结果出现错误,并挂起:
[root@Hadoop ~]# lvextend -L +20G /dev/mappers/VolGroup-lv_root
  Extending logical volume lv_root to 45.55 GiB
  ---
  device-mapper: resume ioctl failed: Invalid argument
  Unable to resume VolGroup-lv_root (253:0)

此处重启都失败。所以我就直接关电源,重启之后机器就出现:kernel panic的错误。
到这我知道肯定是扩充逻辑卷的强制关机导致了内部错误。根本无法进入单用户模式,甚至使用
rescue mode 进行恢复都失败。
原因很明显,根目录的文件损坏了。

幸亏只是我的测试机器,所以打算重装系统。问题又出现,安装过程中检测硬盘的时候,出错
LVMError: lvactivate failed for lv_root。

这是由于redhat6安装过程中会检测之前的安装信息:
This is a known issue. Any preexisting lvm configurations using encrypted PVs will exhibit this behavior if you specify that the preexisting encrypted PVs be reformatted (not preserving the encryption).
--出处https://bugzilla.redhat.com/show_bug.cgi?id=565848 comment 6


没办法,找了一张ubuntu的盘,把磁盘上面的信息删了,再重新安装rhel6.2


教训:
1.千万不要对root盘进行逻辑卷扩充。这个也不是绝对正确,当时这确实是我的亲身经历啊
2.在磁盘操作的时候,若程序挂起,千万不要草率的操作。



0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics