After extending the Logical volume changed size are not get reflected

Solution Verified - Updated -

Issue

  • After extending the Logical volume changed size are not get reflected.
  • Below are the steps done:

1) Increased size of hard disk from 50GB to 100 GB.

2) Resized the physical volume:

# pvresize --setphysicalvolumesize 100G /dev/sdb

3) lvdisplay shows logical volume is 100 GB

# lvdisplay /dev/datavg/data_lv
  --- Logical volume ---
  LV Name                /dev/datavg/data_lv
  VG Name                datavg
  LV UUID                pJUy0t-ch4P-mIG2-4PEb-HP39-r0Ur-bbCbcB
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                100.00 GiB
  Current LE             25599
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

4) But mounted file system is still 50 GB

/dev/mapper/datavg-data_lv  50G  4.7G   43G  10% /data

Environment

  • Red Hat Enterprise Linux(RHEL)

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