我有一个LVM逻辑卷分布在Amazon AWS上的八个单独的物理卷上。 逻辑卷使用ext3格式化。
我的一个物理卷失败了。 有没有办法从剩余卷中恢复部分或全部数据?
谢谢!
通过执行以下操作,我能够或多或less地恢复剩余的数据:
vgscan来确定丢失(失败)物理卷的UUID。 pvcreate --uuid [uuid of failed volume]来添加新的物理卷,并给它与失败的那个相同的uuid和设备描述符。 vgcfgrestore [the volume group name]来恢复卷组描述符(可能需要也可能不需要)。 vgchange -ay [the volume group name]来激活卷组。 e2fsck -y [the logical volume]修复任何错误; 会有很多他们。 mount [the logical volume] [desired mount point]和voilà! 我发现了我的剩余数据!