Free Inodes and Free Blocks Incorrect After Online resize2fs on ext3 Filesystem

Solution Verified - Updated -

Issue

  • After an online resize of an ext3 filesystem, fsck reports that the free blocks and free inode values are incorrect.
# lvextend -L +1G /dev/vg01/lv_root
  Extending logical volume lv_root to 28.00 GB
  Logical volume lv_root successfully resized
# tune2fs -l /dev/vg01/lv_root  | grep Free
Free blocks:              2826568
Free inodes:              6994151
# resize2fs /dev/vg01/lv_root
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/vg01/lv_root is mounted on /; on-line resizing required
Performing an on-line resize of /dev/vg01/lv_root to 7340032 (4k) blocks.
The filesystem on /dev/vg01/lv_root is now 7340032 blocks long.
# tune2fs -l /dev/vg01/lv_root  | grep Free
Free blocks:              2826568
Free inodes:              6994151
# df -i /dev/vg01/lv_root
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
-                     505466     369  505097    1% /

Environment

  • Red Hat Enterprise Linux, version 5
  • ext3 filesystem

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