Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Normally if LAST_ID known by MDT and OST shouldn't differ too much, and if the one in lov_objid (on MDT) is OST_MAX_PRECREATE (20000) behind the LAST_ID on OST, it's not handled currently because it's hard to tell which one is corrupt.

      This can be improved in two aspects:
      1. "lfsck -t layout" should update LAST_ID with the known max ID. (it's not updated if it's not less than the known max ID), so after lfsck this LAST_ID is correct.
      2. once lfsck has finished check, trust the LAST_ID on OST, and reply it to MDT on precreate, and MDT will use it instead of its own.

      Attachments

        Issue Links

          Activity

            [LU-17960] LAST_ID mismatch improvement
            laisiyao Lai Siyao added a comment -

            Actually the last created FID on OSP is from OST, and only in deleting orphans phase in the first precreate, it will use the last used FID in 'lovobj_id'. So this improvement is actually for the deleting orphan phase, and for the mismatch issue found on customer site, we can always trust the last created FID on OST, because it's maintained in memory, not just read from disk (which happens in deleting phase). I'll file another ticket for this.

            laisiyao Lai Siyao added a comment - Actually the last created FID on OSP is from OST, and only in deleting orphans phase in the first precreate, it will use the last used FID in 'lovobj_id'. So this improvement is actually for the deleting orphan phase, and for the mismatch issue found on customer site, we can always trust the last created FID on OST, because it's maintained in memory, not just read from disk (which happens in deleting phase). I'll file another ticket for this.

            People

              laisiyao Lai Siyao
              laisiyao Lai Siyao
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: