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

setstripe for specific osts are broken

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.12.0
    • Lustre 2.7.0, Lustre 2.10.5
    • 3
    • 9223372036854775807

    Description

      [root@s17 lustre]# mkdir X
      [root@s17 lustre]# lfs getstripe X
      X
      stripe_count: 1 stripe_size: 1048576 stripe_offset: -1
      [root@s17 lustre]#
      [root@s17 lustre]# lfs setstripe -o 1 X
      error on ioctl 0x4008669a for 'X' (3): Invalid argument
      error: setstripe: create stripe file 'X' failed

      Attachments

        Issue Links

          Activity

            [LU-11146] setstripe for specific osts are broken
            pjones Peter Jones added a comment -

            Landed for 2.12

            pjones Peter Jones added a comment - Landed for 2.12

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32814/
            Subject: LU-11146 lustre: fix setstripe for specific osts upon dir
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 083d62ee6de5ac6cee95c1d2f86b62b75034093b

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32814/ Subject: LU-11146 lustre: fix setstripe for specific osts upon dir Project: fs/lustre-release Branch: master Current Patch Set: Commit: 083d62ee6de5ac6cee95c1d2f86b62b75034093b
            bobijam Zhenyu Xu added a comment -

            Setting ost list on directory is not doable before commit 7da1d93e2320bd7e6db8062350a90a651a00f84b, since there is no place to save the ost list info. PFL's late instantiation needs to instantiate component with customized ost list during writing phase, lod_layout_component::llc_ostlist is added in that commit to make it possible. And this llc_ostlist also makes customized ost list setting upon directory possible.

            bobijam Zhenyu Xu added a comment - Setting ost list on directory is not doable before commit 7da1d93e2320bd7e6db8062350a90a651a00f84b, since there is no place to save the ost list info. PFL's late instantiation needs to instantiate component with customized ost list during writing phase, lod_layout_component::llc_ostlist is added in that commit to make it possible. And this llc_ostlist also makes customized ost list setting upon directory possible.

            Andreas, looks the problem have been existing for a long time, unfortunate there is no test
            in sanity.sh to verify 'lfs setstripe -o' option, and I did not track which specific commit break this,
            or it was broken even when adding first time.

            The problem at least existed at ES3.x which is 2.7 series and also ES4.x which is 2.10 series.
            As well as master community branch too.

            wangshilong Wang Shilong (Inactive) added a comment - Andreas, looks the problem have been existing for a long time, unfortunate there is no test in sanity.sh to verify 'lfs setstripe -o' option, and I did not track which specific commit break this, or it was broken even when adding first time. The problem at least existed at ES3.x which is 2.7 series and also ES4.x which is 2.10 series. As well as master community branch too.

            Please add the affected version and the patch and link to the LU ticket that broke it.

            adilger Andreas Dilger added a comment - Please add the affected version and the patch and link to the LU ticket that broke it.

            Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/32814
            Subject: LU-11146 lustre: fix setstripe for specific osts
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 29c5147584008c2a32fe7277ae549a192a5f7361

            gerrit Gerrit Updater added a comment - Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/32814 Subject: LU-11146 lustre: fix setstripe for specific osts Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 29c5147584008c2a32fe7277ae549a192a5f7361

            People

              wshilong Wang Shilong (Inactive)
              wangshilong Wang Shilong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: