Show Table of Contents
6.6. 从卷组中删除丢失的物理卷。
如果丢失了物理卷,则可以用
vgchange 命令的 --partial 选项激活卷组中剩下的物理卷。可以使用 vgreduce 命令的 --removemissing 选项删除所有使用卷组中那些物理卷的逻辑卷。
建议运行
vgreduce 命令,使用 --test 选项确定要破坏的数据。
如果立即使用
vgcfgrestore 命令将卷组的元数据恢复到之前的状态,则与大多数 LVM 操作一样,vgreduce 命令在某种意义上是可逆的。例如:如果使用 vgreduce 命令的 --removemissing 参数,而不带 --test 参数,就可以找到要保留的已删除逻辑卷。此时仍可用替换物理卷,并使用另一个 vgcfgrestore 命令将卷组返回到之前的状态。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.