Show Table of Contents
6.6. 將遺失的實體卷冊由一個卷冊群組中移除掉
若您遺失了一個實體卷冊,您可透過
vgchange 指令的 --partial 引數來啟用卷冊群組中剩下的實體卷冊。您可透過 vgreduce 指令的 --removemissing 引數來將所有使用了該實體卷冊的邏輯卷冊由卷冊群組中移除。
我們建議您執行
vgreduce 指令和 --test 引數來驗證您所要銷毀的邏輯卷冊。
就和大部分的 LVM 作業一樣,您可透過即刻地使用
vgcfgrestore 指令來將卷冊群組的 metadata 復原為先前的狀態以撤消 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.