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

lfs setstripe --stripe-count 0 --stripe-size 0 cannot change the pfl file/dir to use default attribute

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      I am not sure if this is a problem or suppose to work this way, but I found if use
      "lfs setstripe --stripe-count 0" or "--stripe-size 0" won't change the PFL layout to default stripe count or size, but the --stripe-index 0 can do.

      This related to the sanity 204a/204e failure in LU-16904 patch:
      https://testing.whamcloud.com/test_sets/dc893d55-0536-47b7-a21d-5e88d8fd584f

      [root@trevis-88vm4 lustre]# mkdir tdir
      [root@trevis-88vm4 lustre]# lfs getstripe tdir/
      tdir/
        lcm_layout_gen:    0
        lcm_mirror_count:  1
        lcm_entry_count:   2
          lcme_id:             N/A
          lcme_mirror_id:      N/A
          lcme_flags:          0
          lcme_extent.e_start: 0
          lcme_extent.e_end:   65536
            stripe_count:  1       stripe_size:   4194304       pattern:       raid0       stripe_offset: -1
      
          lcme_id:             N/A
          lcme_mirror_id:      N/A
          lcme_flags:          0
          lcme_extent.e_start: 65536
          lcme_extent.e_end:   EOF
            stripe_count:  2       stripe_size:   1048576       pattern:       raid0       stripe_offset: -1
      
      [root@trevis-88vm4 lustre]# lfs setstripe --stripe-size 0 /mnt/lustre/tdir/
      [root@trevis-88vm4 lustre]# lfs getstripe tdir/
      tdir/
        lcm_layout_gen:    0
        lcm_mirror_count:  1
        lcm_entry_count:   2
          lcme_id:             N/A
          lcme_mirror_id:      N/A
          lcme_flags:          0
          lcme_extent.e_start: 0
          lcme_extent.e_end:   65536
            stripe_count:  1       stripe_size:   4194304       pattern:       raid0       stripe_offset: -1
      
          lcme_id:             N/A
          lcme_mirror_id:      N/A
          lcme_flags:          0
          lcme_extent.e_start: 65536
          lcme_extent.e_end:   EOF
            stripe_count:  2       stripe_size:   1048576       pattern:       raid0       stripe_offset: -1
      
      [root@trevis-88vm4 lustre]# lfs setstripe --stripe-count 0 /mnt/lustre/tdir/
      [root@trevis-88vm4 lustre]# lfs getstripe tdir/
      tdir/
        lcm_layout_gen:    0
        lcm_mirror_count:  1
        lcm_entry_count:   2
          lcme_id:             N/A
          lcme_mirror_id:      N/A
          lcme_flags:          0
          lcme_extent.e_start: 0
          lcme_extent.e_end:   65536
            stripe_count:  1       stripe_size:   4194304       pattern:       raid0       stripe_offset: -1
      
          lcme_id:             N/A
          lcme_mirror_id:      N/A
          lcme_flags:          0
          lcme_extent.e_start: 65536
          lcme_extent.e_end:   EOF
            stripe_count:  2       stripe_size:   1048576       pattern:       raid0       stripe_offset: -1
      
      [root@trevis-88vm4 lustre]# lfs setstripe --stripe-index 0 /mnt/lustre/tdir/
      [root@trevis-88vm4 lustre]# lfs getstripe tdir/
      tdir/
      stripe_count:  1 stripe_size:   4194304 pattern:       raid0 stripe_offset: 0
      
      [root@trevis-88vm4 lustre]# 
      [root@trevis-88vm4 lustre]# lctl get_param -n lov.lustre-clilov-\*.stripesize
      4194304
      [root@trevis-88vm4 lustre]# lctl get_param -n lov.lustre-clilov-\*.stripecount
      1
      
      

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              sarah Sarah Liu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: