My logical volume reports a size of X while 'df' reports a smaller size. Why?

Solution Verified - Updated -

Issue

  • Following a logical volume extend using lvresize or lvextend my filesystem size does not match the newly resized logical volume.
 # lvscan -a
  ACTIVE            '/dev/vg_example/lv_root' [6.00 GiB] inherit <------\
  ACTIVE            '/dev/vg_example/lv_swap' [1.00 GiB] inherit        |
                                                                        |
 # df -h                                                                | Different sizes
  Filesystem            Size  Used Avail Use% Mounted on                |
  /dev/mapper/vg_example-lv_root                                        |
                        3.6G  3.5G     0 100% /        <----------------/                 
  tmpfs                 7.8G  100K  7.8G   1% /dev/shm
  /dev/vda1             485M   54M  406M  12% /boot

Environment

  • Red Hat Enterprise Linux

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.