Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-11181

df -i and lfs df -i show incorrect inode count

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • Lustre 2.10.3
    • None
    • 2
    • 9223372036854775807

    Description

      lfs df -i and df -i doen't report correct inode counts.

      On a newly created filesystem we have 2 MDTs. Here is the info on the MDTs.

      nbp10-srv1 ~ # tune2fs -l /dev/mapper/nbp10_1-MDT0
      tune2fs 1.42.13.wc6 (05-Feb-2017)
      device /dev/dm-1 mounted by lustre
      Filesystem volume name:   nbp10-MDT0000
      Last mounted on:          /
      Filesystem UUID:          bc01a76f-c04d-4f35-966b-e3e655a12528
      Filesystem magic number:  0xEF53
      Filesystem revision #:    1 (dynamic)
      Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery mmp flex_bg dirdata sparse_super large_file huge_file uninit_bg dir_nlink extra_isize quota
      Filesystem flags:         signed_directory_hash 
      Default mount options:    user_xattr acl
      Filesystem state:         clean
      Errors behavior:          Continue
      Filesystem OS type:       Linux
      Inode count:              4241293312
      Block count:              3106406400
      Reserved block count:     0
      Free blocks:              2044739588
      Free inodes:              4241293299
      First block:              0
      Block size:               4096
      Fragment size:            4096
      Reserved GDT blocks:      387
      Blocks per group:         24000
      Fragments per group:      24000
      Inodes per group:         32768
      Inode blocks per group:   8192
      Flex block group size:    16
      Filesystem created:       Wed Jul 25 21:43:46 2018
      Last mount time:          Wed Jul 25 21:46:39 2018
      Last write time:          Wed Jul 25 21:46:45 2018
      Mount count:              3
      Maximum mount count:      -1
      Last checked:             Wed Jul 25 21:43:46 2018
      Check interval:           0 (<none>)
      Lifetime writes:          196 MB
      Reserved blocks uid:      0 (user root)
      Reserved blocks gid:      0 (group root)
      First inode:              11
      Inode size:               1024
      Required extra isize:     32
      Desired extra isize:      32
      Journal inode:            8
      Default directory hash:   half_md4
      Directory Hash Seed:      9b03f637-f156-4f57-aeff-e6872c65eb67
      Journal backup:           inode blocks
      MMP block number:         17822
      MMP update interval:      5
      User quota inode:         3
      Group quota inode:        4
      
      
      nbp10-srv3 ~ # tune2fs -l /dev/mapper/nbp10_2-MDT1
      tune2fs 1.42.13.wc6 (05-Feb-2017)
      device /dev/dm-0 mounted by lustre
      Filesystem volume name:   nbp10-MDT0001
      Last mounted on:          /
      Filesystem UUID:          eb11a0e3-772a-4e83-9177-08d41210c8b7
      Filesystem magic number:  0xEF53
      Filesystem revision #:    1 (dynamic)
      Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery mmp flex_bg dirdata sparse_super large_file huge_file uninit_bg dir_nlink extra_isize quota
      Filesystem flags:         signed_directory_hash 
      Default mount options:    user_xattr acl
      Filesystem state:         clean
      Errors behavior:          Continue
      Filesystem OS type:       Linux
      Inode count:              4241293312
      Block count:              3106406400
      Reserved block count:     0
      Free blocks:              2044739588
      Free inodes:              4241293299
      First block:              0
      Block size:               4096
      Fragment size:            4096
      Reserved GDT blocks:      387
      Blocks per group:         24000
      Fragments per group:      24000
      Inodes per group:         32768
      Inode blocks per group:   8192
      Flex block group size:    16
      Filesystem created:       Wed Jul 25 21:43:48 2018
      Last mount time:          Wed Jul 25 21:46:39 2018
      Last write time:          Wed Jul 25 21:46:45 2018
      Mount count:              3
      Maximum mount count:      -1
      Last checked:             Wed Jul 25 21:43:48 2018
      Check interval:           0 (<none>)
      Lifetime writes:          196 MB
      Reserved blocks uid:      0 (user root)
      Reserved blocks gid:      0 (group root)
      First inode:              11
      Inode size:               1024
      Required extra isize:     32
      Desired extra isize:      32
      Journal inode:            8
      Default directory hash:   half_md4
      Directory Hash Seed:      76bf0136-01da-4bd1-b383-21d9ec90ee17
      Journal backup:           inode blocks
      MMP block number:         17822
      MMP update interval:      5
      User quota inode:         3
      Group quota inode:        4
      
       

      $ lfs df -i |grep nobackupp10 |grep -e summary -e MDT
      nbp10-MDT0000_UUID 4241293312 351 4241292961 0% /nobackupp10[MDT:0]
      nbp10-MDT0001_UUID 4241293312 337 4241292975 0% /nobackupp10[MDT:1]
      filesystem_summary: 429501508 688 429500820 0% /nobackupp10

      $ df -i /nobackupp10
      Filesystem Inodes IUsed IFree IUse% Mounted on
      10.151.26.159@o2ib:10.151.26.160@o2ib:/nbp10 429501508 688 429500820 1% /nobackupp10

      Attachments

        Issue Links

          Activity

            People

              adilger Andreas Dilger
              mhanafi Mahmoud Hanafi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: