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

lfs mkdir -c can cause repeated MDT indexes

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • Lustre 2.13.0, Lustre 2.12.3
    • 3
    • 9223372036854775807

    Description

      For a large (e.g. 5) number of MDTs, doing the following:

      lfs mkdir -c 5 dir/

      Can yield an MDT distribution of: 4, 0, 4, 1, 2 or other distributions with repeated and missing mdt indexes.

      Manually specifying mdts via -i works as expected.

      I believe this is due to the "auto_distributed" logic in lustre/utils/lfs.c::lfs_setdirstripe()

      Attachments

        Issue Links

          Activity

            [LU-12926] lfs mkdir -c can cause repeated MDT indexes

            I haven't seen any reports of this lately, and no reproducer available. Please re-open if this is hit again.

            adilger Andreas Dilger added a comment - I haven't seen any reports of this lately, and no reproducer available. Please re-open if this is hit again.

            We should add basic sanity checking on the MDS to avoid this. It should limit the stripe count to the number of available MDTs rather than return an error.

            adilger Andreas Dilger added a comment - We should add basic sanity checking on the MDS to avoid this. It should limit the stripe count to the number of available MDTs rather than return an error.

            It shouldn't be possible to do this with "-c", only when the metadata overstripingpatch adds the "-C" option.

            adilger Andreas Dilger added a comment - It shouldn't be possible to do this with "-c", only when the metadata overstripingpatch adds the "-C" option.

            People

              laisiyao Lai Siyao
              utopiabound Nathaniel Clark
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: