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

OST recreated objects gets badness mark from e2fsck

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      e2fsck spends 72 hours to check ~113T OST. Most time in phase 2.

      Profiler shows that most expensive path is:

      e2fsck_run -> e2fsck_pass2 ->  check_dir_block -> e2fsck_process_bad_inode -> e2fsck_read_inode
      

      After adding -d option we get millions of such messages:

      e2fsck_pass1:1543: increase inode 12485987 badness 0 to 2
      

      Which correspond to this piece of code:

      else if (EXT4_XTIME_ANCIENT(ctx, sb, inode->i_ctime,
                                                  ctx->time_fudge))
                              e2fsck_mark_inode_bad(ctx, ino, BADNESS_HIGH);
      

      Code check if ctime is too old. But Lustre FS adds precreated object with zeroed time. So every such object assumed as bad by e2fsck. By some reasons (this is other issue topic) we get millions of precreated files and e2fsck spends a lot of time to process this file during phase 2.

      After removing check above e2fsck completes its work after 20 minutes.

      Two possible solutions are suggested: 1) remove this check, because having zeroed chime is possible situation for Lustre FS 2) remove inode badness patches. Does it give enough advantages for such overhead.

      Attachments

        Issue Links

          Activity

            [LU-11882] OST recreated objects gets badness mark from e2fsck

            Change has been successfully cherry-picked as c478288dddf485459115e14c57470c4466740e8d

            artem_blagodarenko Artem Blagodarenko (Inactive) added a comment - Change has been successfully cherry-picked as c478288dddf485459115e14c57470c4466740e8d

            Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/34113/
            Subject: LU-11882 e2fsck: zero date is not inode badness
            Project: tools/e2fsprogs
            Branch: master-lustre
            Current Patch Set:
            Commit: c478288dddf485459115e14c57470c4466740e8d

            gerrit Gerrit Updater added a comment - Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/34113/ Subject: LU-11882 e2fsck: zero date is not inode badness Project: tools/e2fsprogs Branch: master-lustre Current Patch Set: Commit: c478288dddf485459115e14c57470c4466740e8d

            Artem Blagodarenko (c17828@cray.com) uploaded a new patch: https://review.whamcloud.com/34113
            Subject: LU-11882 e2fsck: zero date is not inode badness
            Project: tools/e2fsprogs
            Branch: master-lustre
            Current Patch Set: 1
            Commit: b15477ef0bd382c9c349a94e089c696fa59c5acf

            gerrit Gerrit Updater added a comment - Artem Blagodarenko (c17828@cray.com) uploaded a new patch: https://review.whamcloud.com/34113 Subject: LU-11882 e2fsck: zero date is not inode badness Project: tools/e2fsprogs Branch: master-lustre Current Patch Set: 1 Commit: b15477ef0bd382c9c349a94e089c696fa59c5acf

            Note that "badness = 2" is not enough for e2fsck to consider the inode corrupt, just one part of the possibility that there is something wrong with it. It needs "badness > 7" to be considered corrupt.

            adilger Andreas Dilger added a comment - Note that "badness = 2" is not enough for e2fsck to consider the inode corrupt, just one part of the possibility that there is something wrong with it. It needs "badness > 7" to be considered corrupt.

            The other question is why you have millions of precreated objects? I guess they are stripes for files that were never used?

            In any case, rather than disable this case completely, it would be trivial to make a special case for ctime == 0 if SUID/SGID are also set. That would catch the specific case of Lustre precreated objects without disabling the inode badness completely.

            adilger Andreas Dilger added a comment - The other question is why you have millions of precreated objects? I guess they are stripes for files that were never used? In any case, rather than disable this case completely, it would be trivial to make a special case for ctime == 0 if SUID/SGID are also set. That would catch the specific case of Lustre precreated objects without disabling the inode badness completely.

            People

              artem_blagodarenko Artem Blagodarenko (Inactive)
              artem_blagodarenko Artem Blagodarenko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: