4.6. Removing LVM logical volumes
This procedure describes how to remove an existing logical volume /dev/myvg/mylv1 from the volume group myvg.
Procédure
If the logical volume is currently mounted, unmount the volume:
umount /mnt
# umount /mntCopy to Clipboard Copied! Toggle word wrap Toggle overflow If the logical volume exists in a clustered environment, deactivate the logical volume on all nodes where it is active. Use the following command on each such node:
lvchange --activate n vg-name/lv-name
# lvchange --activate n vg-name/lv-nameCopy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the logical volume using the
lvremoveutility:lvremove /dev/myvg/mylv1
# lvremove /dev/myvg/mylv1 Do you really want to remove active logical volume "mylv1"? [y/n]: y Logical volume "mylv1" successfully removedCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteIn this case, the logical volume has not been deactivated. If you explicitly deactivated the logical volume before removing it, you would not see the prompt verifying whether you want to remove an active logical volume.