What is the procedure to remove a logical volume or a LVM snapshot from a volume group?

Solution Verified - Updated -

Issue

  • What is the procedure to remove a logical volume (LV) or a LVM snapshot from a volume group?
  • How to delete an LVM volume or a volume snapshot?
  • How do I remove the inactive snapshots from RHEL server? They are not mounted and do not show in a df -h but are using space:
kernel: dracut: Scanning devices sda2 sda3  for LVM logical volumes root_vg/lv_swap root_vg/lv_root
kernel: dracut: inactive Original '/dev/root_vg/lv_root' [45.00 GiB] inherit
kernel: dracut: inactive '/dev/root_vg/lv_swap' [11.77 GiB] inherit
kernel: dracut: inactive Original '/dev/root_vg/lv_home' [74.53 GiB] inherit
kernel: dracut: inactive Snapshot '/dev/root_vg/lv_snapshot.1059735224' [4.50 GiB] inherit
kernel: dracut: inactive Snapshot '/dev/root_vg/lv_snapshot.1348956789' [7.45 GiB] inherit
kernel: device-mapper: snapshots: Snapshot is marked invalid.
kernel: Buffer I/O error on device dm-3, logical block 11796464
kernel: Buffer I/O error on device dm-3, logical block 11796464

Environment

  • Red Hat Enterprise Linux(RHEL) 5
  • Red Hat Enterprise Linux(RHEL) 6
  • Logical Volume Manager 2 (LVM 2)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.