错误截图

物理卷丢失

命令解释

vgreduce - Remove physical volume(s) from a volume group

--removemissing
Removes all missing PVs from the VG, if there are no LVs allocated on them.
This resumes normal operation of the VG (new LVs may again be created, changed and so on). If this is not possible because LVs are referencing the missing PVs, this option can be combined with --force to have the command remove any partial LVs. In this case, any LVs and dependent snapshots that were partly on the missing disks are removed completely, including those parts on disks that are still present. If LVs spanned several disks, including ones that are lost, salvaging some data first may be possible by activating LVs in partial mode.
从VG中删除所有丢失的pv(如果没有在这些pv上分配lv)。这将恢复VG的正常操作(可能会再次创建、更改新的lv等等)。如果由于lv引用了丢失的pv而无法执行此操作,则可以将此选项与--force结合使用,以使命令删除任何部分lv。在这种情况下,部分位于缺失磁盘上的所有lv和从属快照都将被完全删除,包括磁盘上仍然存在的那些部分。如果lv跨越多个磁盘,包括丢失的磁盘,则可以通过在部分模式下激活LVs来先恢复一些数据。

解决办法:

vgreduce --removemissing VG

作者:暗黑墨宇
链接:https://www.jianshu.com/p/bee2b59e9aa9
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

发表评论

邮箱地址不会被公开。 必填项已用*标注