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.
/dev/testvg/testlv
from the volume group testvg
. Note that in this case the logical volume has not been deactivated.
[root@tng3-1 lvm]#lvremove /dev/testvg/testlv
Do you really want to remove active logical volume "testlv"? [y/n]:y
Logical volume "testlv" successfully removed
lvchange -an
command, in which case you would not see the prompt verifying whether you want to remove an active logical volume.