Show Table of Contents
5.4.12. Removing Logical Volumes
To remove an inactive logical volume, use the
lvremove command. If the logical volume is currently mounted, unmount the volume before removing it. In addition, in a clustered environment you must deactivate a logical volume before it can be removed.
The following command removes the logical volume
/dev/testvg/testlv from the volume group testvg. Note that in this case the logical volume has not been deactivated.
#lvremove /dev/testvg/testlvDo you really want to remove active logical volume "testlv"? [y/n]:yLogical volume "testlv" successfully removed
You could explicitly deactivate the logical volume before removing it with the
lvchange -an command, in which case you would not see the prompt verifying whether you want to remove an active logical volume.

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.