Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-9349 PFL known issues tracking ticket
  3. LU-9324

sanity-pfl test 10 needs to reset the file system default layout

Details

    • Technical task
    • Resolution: Fixed
    • Major
    • Lustre 2.11.0
    • Lustre 2.10.0
    • 9223372036854775807

    Description

      sanity-pfl test_10 sets the default layout on $MOUNT and does not return the file system to the original state. For users running the Lustre test suites as a sanity check on their file systems, this is an unexpected side effect. We should return the file system to the state it was in before running sanity-pfl.

      From sanity-pfl, the following code in test 10 sets the default layout:

              $LFS setstripe -d $MOUNT || error "clear root layout"
      
      	# set root composite layout                                             
      	$LFS setstripe -E 2M -c 1 -S 1M -E 16M -c2 -S 2M \
      		-E -1 -c 4 -S 4M $MOUNT ||
                      error "Set root layout failed"
      

      Here's what the file system layout looks like before and after sanity-pfl test 10:

      # lfs getstripe /lustre/scratch
      /lustre/scratch
      stripe_count:  1 stripe_size:   1048576 stripe_offset: -1
      [root@eagle-48vm6 tests]# ./auster -k -v sanity-pfl --only 10
      Started at Wed Apr 12 14:54:34 UTC 2017
      …
      ./auster: completed with rc 0
      [root@eagle-48vm6 tests]# lfs getstripe /lustre/scratch
      /lustre/scratch
        lcm_layout_gen:  0
        lcm_entry_count: 3
          lcme_id:             N/A
          lcme_flags:          0
          lcme_extent.e_start: 0
          lcme_extent.e_end:   2097152
            stripe_count:  1       stripe_size:   1048576       stripe_offset: -1
          lcme_id:             N/A
          lcme_flags:          0
          lcme_extent.e_start: 2097152
          lcme_extent.e_end:   16777216
            stripe_count:  2       stripe_size:   2097152       stripe_offset: -1
          lcme_id:             N/A
          lcme_flags:          0
          lcme_extent.e_start: 16777216
          lcme_extent.e_end:   EOF
            stripe_count:  4       stripe_size:   4194304       stripe_offset: -1
      

      Attachments

        Issue Links

          Activity

            [LU-9324] sanity-pfl test 10 needs to reset the file system default layout

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26859/
            Subject: LU-9324 lnet: move cyaml.h under lnet/include/
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 9b8eb394ab9164066115596d26786bce80f07bd8

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26859/ Subject: LU-9324 lnet: move cyaml.h under lnet/include/ Project: fs/lustre-release Branch: master Current Patch Set: Commit: 9b8eb394ab9164066115596d26786bce80f07bd8

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26708/
            Subject: LU-9324 lfs: output stripe info in YAML format
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 8bbbd4ea4f10a6d907ff0885d6c8334dacd748a6

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26708/ Subject: LU-9324 lfs: output stripe info in YAML format Project: fs/lustre-release Branch: master Current Patch Set: Commit: 8bbbd4ea4f10a6d907ff0885d6c8334dacd748a6

            Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/27066
            Subject: LU-9324 doc: update lfs setstripe man page and usage
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 9dd6ce71fc9f910396b2d437ace87bbe37f860bf

            gerrit Gerrit Updater added a comment - Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/27066 Subject: LU-9324 doc: update lfs setstripe man page and usage Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 9dd6ce71fc9f910396b2d437ace87bbe37f860bf

            Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/26879
            Subject: LU-9324 lfs: add setstripe --copy=lustre_file_or_dir parameter
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: e83e119ece8eacb59fad5b0c33ff4683bf319765

            gerrit Gerrit Updater added a comment - Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/26879 Subject: LU-9324 lfs: add setstripe --copy=lustre_file_or_dir parameter Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: e83e119ece8eacb59fad5b0c33ff4683bf319765

            Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/26860
            Subject: LU-9324 lfs: add setstripe --yaml=template parameter
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: e6a75228d8faf5efd53b3cca41b7a9768fc1f7a1

            gerrit Gerrit Updater added a comment - Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/26860 Subject: LU-9324 lfs: add setstripe --yaml=template parameter Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: e6a75228d8faf5efd53b3cca41b7a9768fc1f7a1

            Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/26859
            Subject: LU-9324 lnet: move cyaml.h under lnet/include/
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: adc09ec2bcb8222072e6ed0d1162f8d932f81fe1

            gerrit Gerrit Updater added a comment - Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/26859 Subject: LU-9324 lnet: move cyaml.h under lnet/include/ Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: adc09ec2bcb8222072e6ed0d1162f8d932f81fe1

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26578/
            Subject: LU-9324 test: get layout parameters
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 183f0a19969ce1fc10b8bf5156beaa1fc29bbd0b

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26578/ Subject: LU-9324 test: get layout parameters Project: fs/lustre-release Branch: master Current Patch Set: Commit: 183f0a19969ce1fc10b8bf5156beaa1fc29bbd0b

            Andreas Dilger (andreas.dilger@intel.com) merged in patch https://review.whamcloud.com/26634/
            Subject: LU-9324 test: get layout parameters
            Project: fs/lustre-release
            Branch: pfl
            Current Patch Set:
            Commit: 261406b2e2f9c52752067cf4040477152faac6f2

            gerrit Gerrit Updater added a comment - Andreas Dilger (andreas.dilger@intel.com) merged in patch https://review.whamcloud.com/26634/ Subject: LU-9324 test: get layout parameters Project: fs/lustre-release Branch: pfl Current Patch Set: Commit: 261406b2e2f9c52752067cf4040477152faac6f2

            Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/26708
            Subject: LU-9324 lfs: output stripe info in YAML format
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: c9e8576dce58837227bc35f468df6c7e2937f7a3

            gerrit Gerrit Updater added a comment - Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/26708 Subject: LU-9324 lfs: output stripe info in YAML format Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: c9e8576dce58837227bc35f468df6c7e2937f7a3

            Sorry, I didn't see comments here.

            I agree that since "lfs getstripe" for composite files already produces YAML output, it would be useful to save this to a file, allow it to be edited, then use it as a template for a new file. There would need to be a new option like "lfs getstripe --yaml" (already default for composite files) that also dumps non-composite files in the same YAML format so that this works with all kinds of files. There would be some work needed for parsing the YAML input into a struct llapi_layout.

            It would still be useful to allow "lfs setstripe --copy=/path/to/template/file [other options] /path/to/new/file" so that there is not a need to store the layout into a temporary file and edit it by the user. This would only get the layout from the existing file, optionally modify it, then use it as the template for the new file while ignoring all per-file details of the instantiated file (FID, object IDs, stripe indices), but keeping the generic parts (component count, stripe counts, stripe sizes, pools).

            adilger Andreas Dilger added a comment - Sorry, I didn't see comments here. I agree that since " lfs getstripe " for composite files already produces YAML output, it would be useful to save this to a file, allow it to be edited, then use it as a template for a new file. There would need to be a new option like " lfs getstripe --yaml " (already default for composite files) that also dumps non-composite files in the same YAML format so that this works with all kinds of files. There would be some work needed for parsing the YAML input into a struct llapi_layout. It would still be useful to allow " lfs setstripe --copy=/path/to/template/file [other options] /path/to/new/file " so that there is not a need to store the layout into a temporary file and edit it by the user. This would only get the layout from the existing file, optionally modify it, then use it as the template for the new file while ignoring all per-file details of the instantiated file (FID, object IDs, stripe indices), but keeping the generic parts (component count, stripe counts, stripe sizes, pools).

            Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/26634
            Subject: LU-9324 test: get layout parameters
            Project: fs/lustre-release
            Branch: pfl
            Current Patch Set: 1
            Commit: 5a1c12fb6f69dd31601fd6f3b1fcd294cf251532

            gerrit Gerrit Updater added a comment - Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/26634 Subject: LU-9324 test: get layout parameters Project: fs/lustre-release Branch: pfl Current Patch Set: 1 Commit: 5a1c12fb6f69dd31601fd6f3b1fcd294cf251532

            People

              bobijam Zhenyu Xu
              jamesanunez James Nunez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: