如果您已将 LVM 从早期版本升级到 LVM 的早期 0.9 和 0.9.1 版本,并且 vgscan 显示vgscan -- 未找到卷组,这是一种解决方法。
从 Sistina 的 contributor 目录下载 UUID fixer 程序。
它位于 ftp://ftp.sistina.com/pub/LVM/contrib/uuid_fixer-0.3-IOP10.tar.gz"
解压uuid_fixer-0.3-IOP10.tar.gz
# tar zxf uuid_fixer-0.3-IOP10.tar.gz |
cd 到 uuid_fixer
# cd uuid_fixer |
此时您有两种选择
使用预构建的二进制文件(它是为 i386 架构构建的)。
确保您列出了要恢复的 VG 中的所有 PV,并按照提示操作
# ./uuid_fixer <LIST OF ALL PVS IN VG TO BE RESTORED> |
从源代码构建 uuid_builder 程序
使用您喜欢的编辑器编辑 Makefile,并确保 LVMDIR 指向您的 LVM 源代码。
然后运行 make。
# make |
现在运行 uuid_fixer。确保您列出了要恢复的 VG 中的所有 PV,并按照提示操作。
# ./uuid_fixer <LIST OF ALL PVS IN VG TO BE RESTORED> |
停用任何活动的卷组(可选)
# vgchange -an |
运行 vgscan
# vgscan |
重新激活卷组
# vgchange -ay |