Show Table of Contents
4.3.8. 啟用和停用卷冊群組
當您建立卷冊群組時,就預設值它會是被啟用的。這代表在該群組中的邏輯卷冊可被存取並且可能會有變更。
在幾種情況下您將需要停用卷冊群組,並使 kernel 無法偵測到該卷冊群組。若要停用或啟用卷冊群組,請使用
vgchange 指令的 -a(--available)引數。
下列範例將會停用卷冊群組
my_volume_group。
# vgchange -a n my_volume_group
若叢集鎖定被啟用的話,請附加「e」來將卷冊群組啟用或停用於一個專屬的節點上,或是附加「l」來啟用或停用本機節點上的卷冊群組。只有單獨主機 snapshot 的邏輯卷冊總是會特別地被啟用,因為它們一次只能使用於一個節點上。
您可透過
lvchange 指令來停用各別的邏輯卷冊,如〈節 4.4.8, “更改邏輯卷冊群組的參數”〉中所示。欲取得有關於在叢集中的各別節點上,啟用邏輯卷冊的相關資訊,請參閱〈節 4.7, “在叢集中啟用各別節點上的邏輯卷冊”〉。

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.