How to Remove a logical volume

To remove a logical volume, you can use the command

lvremove /dev/vg-name/lv-name

Example

lvremove /dev/vg1/win10

This will remove logical volume with the name “win10” from volume group “vg1”.

[root@Alma-85-amd64-base ~]# lvremove  vg1/data1
Do you really want to remove active logical volume vg1/data1? [y/n]: y
  Logical volume "data1" successfully removed.
[root@Alma-85-amd64-base ~]# 

back to LVM

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *