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

lfs setstripe without -p pool_name doesn't inherit pool from parent/ROOT directory

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.11.0, Lustre 2.10.4
    • Lustre 2.9.0, Lustre 2.10.1, Lustre 2.10.4
    • 3
    • 9223372036854775807

    Description

      Actually exactly sure of if this is bug, as a doubt filing this bug. Please adviced. Here is use case or more details about it.

      Say I have 4 osts on my setup and created pool with 2 osts assign to it

      lctl pool_new lustre.pool ;
      lctl pool_add lustre.pool lustre-OST0000 lustre-OST0001 ; 
      mkdir /mnt/lustre/test_pool
      lfs setstripe -c -1 -p lustre.pool /mnt/lustre/test_pool 
      

      Now I can create file in that by following two ways

       case1: lfs setstripe -c 3 -p lustre.pool /mnt/lustre/test_pool/test1
       case2: lfs setstripe -c 3  /mnt/lustre/test_pool/test2 
      

      Here in case 1 we trim the strip count to 2 as pool has 2 osts
      But in case 2 we allow stripe count 3
      So question is case2 is expected behaviour or bug (as test_pool is assigned to pool) ?

      Following text taken from admin guide.

      Several lfs commands can be run with OST pools. Use the lfs setstripe command to associate a directory with an OST pool. This causes all new regular files and directories in the directory to be created in the pool. The lfs command can be used to list pools in a file system and OSTs in a named pool.
      

      Attachments

        Issue Links

          Activity

            [LU-8264] lfs setstripe without -p pool_name doesn't inherit pool from parent/ROOT directory

            John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/31401/
            Subject: LU-8264 lod: lfs setstripe fix for pool.
            Project: fs/lustre-release
            Branch: b2_10
            Current Patch Set:
            Commit: 585643bfe764ee236bd761ba1f824962c7940644

            gerrit Gerrit Updater added a comment - John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/31401/ Subject: LU-8264 lod: lfs setstripe fix for pool. Project: fs/lustre-release Branch: b2_10 Current Patch Set: Commit: 585643bfe764ee236bd761ba1f824962c7940644

            James Nunez (james.a.nunez@intel.com) uploaded a new patch: https://review.whamcloud.com/31401
            Subject: LU-8264 lod: lfs setstripe fix for pool.
            Project: fs/lustre-release
            Branch: b2_10
            Current Patch Set: 1
            Commit: 4820faa50e857f8a1b209673093500244cc6e4a2

            gerrit Gerrit Updater added a comment - James Nunez (james.a.nunez@intel.com) uploaded a new patch: https://review.whamcloud.com/31401 Subject: LU-8264 lod: lfs setstripe fix for pool. Project: fs/lustre-release Branch: b2_10 Current Patch Set: 1 Commit: 4820faa50e857f8a1b209673093500244cc6e4a2
            pjones Peter Jones added a comment -

            Landed for 2.11

            pjones Peter Jones added a comment - Landed for 2.11

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/20849/
            Subject: LU-8264 lod: lfs setstripe fix for pool.
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: c62ba699c51237ae1a04b59dd23201d8fe852a67

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/20849/ Subject: LU-8264 lod: lfs setstripe fix for pool. Project: fs/lustre-release Branch: master Current Patch Set: Commit: c62ba699c51237ae1a04b59dd23201d8fe852a67

            the patch https://review.whamcloud.com/#/c/20849/ has been updated.

            hongchao.zhang Hongchao Zhang added a comment - the patch https://review.whamcloud.com/#/c/20849/ has been updated.
            pjones Peter Jones added a comment -

            Hongchao

            Can you please complete this work?

            Thanks

            Peter

            pjones Peter Jones added a comment - Hongchao Can you please complete this work? Thanks Peter

            It looks like this is still a problem with at least 2.10.1 client+MDS, per LU-10369.

            adilger Andreas Dilger added a comment - It looks like this is still a problem with at least 2.10.1 client+MDS, per LU-10369 .

            Patch http://review.whamcloud.com/20859 "LU-8264 tests: setstripe striping parameters not inherited" looks like it has the test case for this change, it just needs to be updated and landed.

            adilger Andreas Dilger added a comment - Patch http://review.whamcloud.com/20859 " LU-8264 tests: setstripe striping parameters not inherited" looks like it has the test case for this change, it just needs to be updated and landed.
            laisiyao Lai Siyao added a comment -

            sure, I'll add a specific test case later.

            laisiyao Lai Siyao added a comment - sure, I'll add a specific test case later.

            Since 20849 is landed for 2.9, can you please convert "IMO" to a test case to verify this is working correctly so this bug can be closed.

            adilger Andreas Dilger added a comment - Since 20849 is landed for 2.9, can you please convert "IMO" to a test case to verify this is working correctly so this bug can be closed.

            People

              hongchao.zhang Hongchao Zhang
              520557 Rahul Deshmukh (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: