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

Updated 2015-06-18T08:13:05+00:00

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?
  • 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 something?
  • How do I grow an ext3/ext4 filesystem on lvm?
  • How do I increase my filesystem on fly, without unmounting the filesystem ?
  • We are using LVM for mounting the filesystem, how can we use the lvextend to extend the volume group and resize the filesystem?
  • 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, is 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

Environment

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

Subscriber content preview. For full access to the Red Hat Knowledgebase, please log in.

Not a subscriber? Learn more about the benefits of Red Hat Subscriptions.