On every reboot "df" reports wrong filesystem size.

Solution Unverified - Updated -

Issue

  • On every reboot df reports wrong filesystem size.
# df -P /apps/mysql/db
Filesystem         1024-blocks      Used Available Capacity Mounted on
/dev/mapper/vg02-lvol5   1032088     55528    924132       6% /apps/mysql/db
  • Actual size of logical volume is 20GB.
lvdisplay /dev/mapper/vg02-lvol5
  --- Logical volume ---
  LV Path                /dev/vg02/lvol5
  LV Name                lvol5
  VG Name                vg02
  LV UUID                psh3Iu-hSE1-wdrC-y2ZO-e7P4-M96F-0hcU34
  LV Write Access        read/write
  LV Creation host, time newhost, 2013-12-12 16:07:46 +0100
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:9
  • After umount and remount df reports correct filesystem size.

Environment

  • Red Hat Enterprise Linux 5,6

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.