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

striped directory doesn't support lookup

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.14.0, Lustre 2.12.6
    • Lustre 2.12.0
    • None
    • 3
    • 9223372036854775807

    Description

      The dt_index_operations::dio_lookup() function is not implemented for striped directory, which will cause subdirectory mount from a striped directory fail.

      # cd /system/
      
      ### Setup test directories
      # lfs mkdir -c 1 -i 0 dir-mdt0-nostripe
      # lfs mkdir -c 1 -i 1 dir-mdt1-nostripe
      # lfs mkdir -c 2 dir-stripe
      # mkdir dir-mdt0-nostripe/mountme
      # mkdir dir-mdt1-nostripe/mountme
      # mkdir dir-stripe/mountme
      
      ### Attempt mounts
      # cd /tmp/lustremnt
      # mkdir mount-dir
      
      ### Successful mounts from the non-striped directories on either MDT
      # mount -t lustre 10.6.254.71@o2ib2:10.6.254.72@o2ib2:10.6.254.76@o2ib2:10.6.254.77@o2ib2:/testsys/dir-mdt0-nostripe/mountme mount-dir
      # umount
      # mount -t lustre 10.6.254.71@o2ib2:10.6.254.72@o2ib2:10.6.254.76@o2ib2:10.6.254.77@o2ib2:/testsys/dir-mdt1-nostripe/mountme mount-dir
      # umount
      
      ### Fails to mount from striped directory
      # mount -t lustre 10.6.254.71@o2ib2:10.6.254.72@o2ib2:10.6.254.76@o2ib2:10.6.254.77@o2ib2:/testsys/dir-stripe/mountme mount-dir
      
      mount.lustre: mount 10.6.254.71@o2ib2:10.6.254.72@o2ib2:10.6.254.76@o2ib2:10.6.254.77@o2ib2:/testsys/dir-stripe/mountme at /mnt/mount-dir failed: No such file or directory
      Is the MGS specification correct?
      Is the filesystem name correct?
      If upgrading, is the copied client log valid? (see upgrade docs)
      

      Attachments

        Issue Links

          Activity

            [LU-13357] striped directory doesn't support lookup

            Do we need to reopen this issue? The b2_12 revert patch has not yet landed, and is also not in b2_12-next so it isn't clear if that is needed.

            adilger Andreas Dilger added a comment - Do we need to reopen this issue? The b2_12 revert patch has not yet landed, and is also not in b2_12-next so it isn't clear if that is needed.

            Oleg Drokin (green@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38924
            Subject: Revert "LU-13357 lod: implement striped directory .dio_lookup"
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set: 1
            Commit: bd2eb100272947433abc6051aa2a7352fa25a08f

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38924 Subject: Revert " LU-13357 lod: implement striped directory .dio_lookup" Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: bd2eb100272947433abc6051aa2a7352fa25a08f

            Oleg Drokin (green@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38923
            Subject: Revert "LU-13357 lod: implement striped directory .dio_lookup"
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 4acca7633f8e6b0a4d0435e50538fa2d4aebfe3c

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38923 Subject: Revert " LU-13357 lod: implement striped directory .dio_lookup" Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 4acca7633f8e6b0a4d0435e50538fa2d4aebfe3c

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/38691/
            Subject: LU-13357 lod: implement striped directory .dio_lookup
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set:
            Commit: 67e992e81fc0bf2df0c17b3e7deb8202c8a25615

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/38691/ Subject: LU-13357 lod: implement striped directory .dio_lookup Project: fs/lustre-release Branch: b2_12 Current Patch Set: Commit: 67e992e81fc0bf2df0c17b3e7deb8202c8a25615

            Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38691
            Subject: LU-13357 lod: implement striped directory .dio_lookup
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set: 1
            Commit: ce65d3ab18df83d96f9edbe7f6ffdc48dacd0d35

            gerrit Gerrit Updater added a comment - Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38691 Subject: LU-13357 lod: implement striped directory .dio_lookup Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: ce65d3ab18df83d96f9edbe7f6ffdc48dacd0d35
            pjones Peter Jones added a comment -

            Landed for 2.14

            pjones Peter Jones added a comment - Landed for 2.14

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37903/
            Subject: LU-13357 lod: implement striped directory .dio_lookup
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 42b0304e2571a80effe5bc4ab6fb58acfabb361d

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37903/ Subject: LU-13357 lod: implement striped directory .dio_lookup Project: fs/lustre-release Branch: master Current Patch Set: Commit: 42b0304e2571a80effe5bc4ab6fb58acfabb361d

            Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37903
            Subject: LU-13357 lod: implement striped directory .dio_lookup
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 3da3fc8c5b5c098ac35eb9148d220704c01acdf2

            gerrit Gerrit Updater added a comment - Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37903 Subject: LU-13357 lod: implement striped directory .dio_lookup Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 3da3fc8c5b5c098ac35eb9148d220704c01acdf2

            People

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

              Dates

                Created:
                Updated:
                Resolved: