lvremove

Delete the specified LVM logical volume

Supplementary instructions

lvremove command is used to delete the specified LVM logical volume. If the logical volume has been mounted using the mount command, it cannot be removed using the lvremove command. The logical volume must be unmounted using the umount command before it can be deleted.

grammar

lvremove(options)(parameters)

Options

-f: Force deletion.

Parameters

Logical volume: Specify the logical volume to be deleted.

Example

Use the lvremove command to delete the specified logical volume. Enter the following command at the command line:

[root@localhost ~]# lvremove /dev/vg1000/lvol0 #Delete logical volume "lvol0"

The output information is as follows:

Do you really want to remove active logical
volume "lvol0"? [y/n]: y #Confirm deletion
   Logical volume "lvol0" successfully removed