How to extend root LV that is being used as a snapshot origin volume

Solution Unverified - Updated -

Issue

  • If the logical volume containing the root filesystem is a snapshot origin volume, trying to extend it fails with the following error:
# lvextend -l +100%free /dev/mapper/rhel-root
  Snapshot origin volumes can be resized only while inactive: try lvchange -an.
  • However, trying to deactivate the logical volume fails as well:
# lvchange -an /dev/mapper/rhel-root
  Logical volume rhel/root contains a filesystem in use.
  • Since the root filesystem can not be unmounted, how can the root filesystem's logical volume be extended if it is a snapshot origin volume?

Environment

  • Red Hat Enterprise Linux
  • Logical Volume Manager (LVM)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content