Bug 194209 - GFS_tool reports incorrect inode amount
Summary: GFS_tool reports incorrect inode amount
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Cluster Suite
Classification: Retired
Component: gfs
Version: 4
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Abhijith Das
QA Contact: GFS Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-06-06 08:10 UTC by Chris Verhoef
Modified: 2010-01-12 03:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-06-07 16:55:24 UTC
Embargoed:


Attachments (Terms of Use)

Description Chris Verhoef 2006-06-06 08:10:12 UTC
Description of problem:
gfs_tool df reports the used inodes also as the total available inodes

Version-Release number of selected component (if applicable):
GFS-kernel-2.6.9-49.1.1
GFS-kernel-smp-2.6.9-49.1.1
GFS-6.1.5-0


How reproducible:
gfs_tool fd <mountpoint of a GFS filesystem)

Steps to Reproduce:
1.
2.
3.
  
Actual results:
  Type           Total          Used           Free           use%
  ------------------------------------------------------------------------
  inodes         114092         114092         0              100%
  metadata       447757         285678         162079         64%
  data           142735731      141006426      1729305        99%



Expected results:
df -i /data/climexp
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/sdc1            2005476  114092 1891384    6% /data/climexp


Additional info:

Comment 1 Abhijith Das 2006-06-07 16:55:24 UTC
The inode usage information shown by 'gfs_tool df <mountpoint>' is correct, but
not terribly useful. For related discussion, see
https://www.redhat.com/archives/linux-cluster/2006-January/thread.html#00131

inodes are created from metadata and data blocks. When inodes are destroyed,
those blocks are reclaimed by the metadata and data block pools. That's why the
free inode blocks is zero most of the time.

Also, if you compare the output of 'df -i' with 'gfs_tool df', the free blocks
(IFree) is basically the sum of free data and metadata blocks. IUsed is the
number of inodes in use.

We're looking to address this issue in future versions of gfs to present this
information in a more useful manner.


Note You need to log in before you can comment on or make changes to this bug.