Show Table of Contents
4.4.10. 移除邏輯卷冊
若要移除一個非啟用中的邏輯卷冊,請使用
lvremove 這項指令。若該邏輯卷冊目前已掛載,請在將此卷冊移除前將它卸載。此外,在一個叢集環境中,您必須先將邏輯卷冊停用才可將之移除。
下列指令會將邏輯卷冊
/dev/testvg/testlv 由卷冊群組 testvg 中移除。請注意,在此情況下,邏輯卷冊並未被停用。
#lvremove /dev/testvg/testlvDo you really want to remove active logical volume "testlv"? [y/n]:yLogical volume "testlv" successfully removed
您能夠透過
lvchange -an 指令來在移除某個邏輯卷冊前先將它停用,在此情況下,您將不會看見一個提示要求您驗證是否要將一個啟用中的邏輯卷冊移除掉。

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.