How to Delete or Remove LVM volumes

Things that needs to be taken care of before proceeding with removal:

  1. Make sure its a non-root partition
  2. Please take a backup of the data before proceeding
  3. Make sure the volume is unmounted

Step 1: Delete entry from /etc/fstab

# cat /etc/fstab
...
/dev/CVOL/workspace            /data              ext4    defaults        0 0
...

Step 2: unmount the partition

# umount /data

Step 3: Disable LVM

# lvchange -an /dev/CVOL/workspace

Step 4: Delete LVM volume

# lvremove /dev/CVOL/workspace
Do you really want to remove and DISCARD logical volume CVOL/workspace? [y/n]: y
Logical volume "workspace" successfully removed

Step 5: Disable volume group

# vgremove CVOLVolume group "CVOL" successfully removed

Step 6: Delete physical volumes used for volume group “vg”

# pvremove /dev/sdbLabels on physical volume "/dev/sdb" successfully wiped.

That’s all!