Language and Page Formatting Options
4.4.6. Removing Logical Volumes
To remove an inactive logical volume, use the
lvremovecommand. If the logical volume is currently mounted, you must close the volume with the
umountcommand 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 -ancommand, in which case you would not see the prompt verifying whether you want to remove an active logical volume.