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

wrong integer type used for inode number in LargeEA patch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • Lustre 2.8.0
    • Lustre 2.7.0, Lustre 2.8.0, Lustre 2.5.4
    • None
    • MDT with inode count > 2G
    • 3
    • 9223372036854775807

    Description

      Hitting "LDISKFS-fs error (device md66): ldiskfs_xattr_inode_iget: error while reading EA inode -2147483347" on large MDT volumes with large_xattr feature enabled.

      Recreation:

      1. MDS should have more than 2G inodes
      2. mdt fs should be created with large_xattr flag.
      3. set inode_goal to get higher inode number allocated.
      # echo 2147483947 > /sys/fs/ldiskfs/md66/inode_goal
      3. create a file
      4. start adding hard links to that file

      eventually LdiskFS fails with:

      [16767.564754] LDISKFS-fs (md66): mounted filesystem with ordered data mode. quota=on. Opts: 
      [16773.660132] Lustre: 25226:0:(client.c:1934:ptlrpc_expire_one_request()) @@@ Request sent has timed out for slow reply: [sent 1445001285/real 1445001285]  req@ffff8810232b3080 x1515193580388392/
      t0(0) o8->pinkfs-OST0001-osc-MDT0000@172.18.56.133@o2ib:28/4 lens 400/544 e 0 to 1 dl 1445001290 ref 1 fl Rpc:XN/0/ffffffff rc 0/-1
      [17278.157672] LDISKFS-fs error (device md66): ldiskfs_xattr_inode_iget: error while reading EA inode -2147483446
      [17278.169053] Aborting journal on device md66-8.
      [17278.187860] LDISKFS-fs (md66): Remounting filesystem read-only
      [17278.203840] LustreError: 28195:0:(osd_io.c:1690:osd_ldiskfs_write_record()) journal_get_write_access() returned error -30
      [17278.216264] LustreError: 28195:0:(osd_handler.c:1105:osd_trans_stop()) Failure in transaction hook: -30
      [17278.226941] LustreError: 28195:0:(osd_handler.c:1114:osd_trans_stop()) Failure to stop transaction: -30
      [17278.227001] LustreError: 28024:0:(osd_handler.c:914:osd_trans_commit_cb()) transaction @0xffff8807d0b97d80 commit error: 2
      [17280.394367] LDISKFS-fs warning (device md66): kmmpd: kmmpd being stopped since filesystem has been remounted as readonly.
      

      Attachments

        Issue Links

          Activity

            People

              adilger Andreas Dilger
              zam Alexander Zarochentsev
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: