Remove Logical Volume From Volume Group

When a logical volume is no longer in use, Cockpit administrators can use the Storage page in the web console to remove a logical volume from a volume group.

What Do You Need?

  • The Cockpit web console must be installed and accessible.

    For details, see these topics: Install and Enable Cockpit and Log in to the Cockpit Web Console.

  • The cockpit-storaged package must be installed.

    Note:

    If the cockpit-storaged package isn't installed, see this section Install and Manage Add-on Applications.
  • Unmounted and unused logical volume in a volume group.

    WARNING:

    Removing a logical volume from a group, deletes all the data associated with the logical volume. To avoid losing critical data, back up the data residing on the logical volume.
  • A deactivated logical volume if logical volume is part of a clustered environment.

    Note:

    A clustered environment exists when volume groups are shared among multiple hosts.

    Note:

    Logical volumes can be deactivated or activated from the Eclipse (3 vertical dots) menu in the Logical volumes table.
  • Administrator privileges.

Steps

Using the Cockpit web console, follow these steps to remove an unused logical volume from a group.

  1. In the Storage page, find the Devices table and select the volume group that contains an unused logical volume.

    The LVM2 group [name] page appears.

  2. In the LVM2 group [name] page, navigate to the Logical volumes table.
  3. In the Logical volumes table, find the unused logical volume and then select Delete from the actions [] menu.

    The Delete Logical Volume dialog appears.

  4. In the Delete Logical Volume dialog, click Delete.

    LVM removes all the data on the logical volume, and it also removes the logical volume instance from the volume group.