How to extend a logical volume and its filesystem online in Red Hat Enterprise Linux?

Solution Verified - Updated -

Issue

  • What is the procedure to grow an existing filesystem based on Logical Volume?
  • How can I extend my logical volume and the filesystem in the command line?
  • How can I resize my Logical Volume and my filesystem together?
  • I have an lvm device and have expanded my Volume Group but my filesystem is the same size. How do I grow my Logical Volume and filesystem?
  • I have extended a logical volume using lvextend which shows the extension in volume group vgdisplay but df isn't reflecting the size, am I missing anything?
  • How do I grow an ext3/ext4/XFS filesystem on LVM?
  • How do I increase my filesystem on the fly, without unmounting it ?
  • We are using LVM for mounting the filesystem, how can we use the lvextend command to extend the volume group and increase the filesystem size?
  • What are the steps to extend a filesystem after a LUN capacity has been extended?
  • What is the procedure to increase the size of an LVM2 logical volume and resize its filesystem?
  • I need to expand a filesystem created on LVM partition, does the filesystem need to be unmounted when expanding it or can I resize it online?
  • How to grow an ext filesystem with pvcreate, vgextend, lvextend and resize2fs commands
  • How to grow an XFS filesystem with pvcreate, vgextend, lvextend and xfs_growfs commands
  • I have extended the logical volume size with lvextend command but the size of the file system its not reflecting this change
  • The system needs more inodes
  • How to increase the amount of available inodes

Environment

  • Red Hat Enterprise Linux (RHEL) 5, 6, 7, 8 and 9
  • Logical Volume Manager (LVM) 2

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