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

LFSCK 5: Migrate the name entry from one MDT to another MDT if the name hash does not match the striped directory

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • Lustre 2.7.0
    • 3
    • 15472

    Description

      The namespace LFSCK will check whether the name hash for the name entry under the slave of striped directory matches such shard or not. If not, the LFSCK should migrate the name entry from current MDT to the right MDT. This should be done with async commit supported from DNE2 to avoid lost the name entry or duplicate the name entry and some other recovery troubles.

      Attachments

        Issue Links

          Activity

            [LU-5550] LFSCK 5: Migrate the name entry from one MDT to another MDT if the name hash does not match the striped directory
            ofaaland Olaf Faaland added a comment -

            If crash+bug resulted in the situation described, would current lfsck detect and report the issue, even if it cannot yet repair it?

            ofaaland Olaf Faaland added a comment - If crash+bug resulted in the situation described, would current lfsck detect and report the issue, even if it cannot yet repair it?

            This would essentially allow migrating to or from a striped directory, or changing the directory striping arbitrarily, so long as it was clear what the "goal" directory count was, and the directory was marked with LMV_HASH_FLAG_MIGRATION so that clients knew to query all of the directory shards when doing a lookup.

            adilger Andreas Dilger added a comment - This would essentially allow migrating to or from a striped directory, or changing the directory striping arbitrarily, so long as it was clear what the "goal" directory count was, and the directory was marked with LMV_HASH_FLAG_MIGRATION so that clients knew to query all of the directory shards when doing a lookup.

            People

              yong.fan nasf (Inactive)
              yong.fan nasf (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: