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

sanity test 27w failed with “/usr/bin/lfs getstripe -d /mnt/lustre/d27w.sanity failed”

    XMLWordPrintable

Details

    • 3
    • 9223372036854775807

    Description

      Running the sanity test suite with a composite file layout set on the mount point results in sanity test_27w failing with

      sanity test_27w: @@@@@@ FAIL: /usr/bin/lfs getstripe -d /mnt/lustre/d27w.sanity failed
      

      Test 27w gets stripe information for a directory and assumes that there is only one “stripe_count” entry in the output;

      1715 test_27w() { # bug 10997
      1716         test_mkdir -p $DIR/$tdir || error "mkdir failed"
      1717         $SETSTRIPE -S 65536 $DIR/$tdir/f0 || error "setstripe failed"
      1718         [ $($GETSTRIPE -S $DIR/$tdir/f0) -ne 65536 ] &&
      1719                 error "stripe size $size != 65536" || true
      1720         [ $($GETSTRIPE -d $DIR/$tdir | grep -c "stripe_count") -ne 1 ] &&
      1721                 error "$GETSTRIPE -d $DIR/$tdir failed" || true
      1722 }
      

      With PFL, directories can have more than one component. For example, if we use ‘lfs setstripe’ to set the component count on a directory greater than one and get the stripe information with ‘lfs getstripe’, we see there is more than one “stripe_count” entry in the output

      # lfs setstripe -E 2M -S 1M -c 1 -E -1 -c -1 /lustre/scratch
      # lfs getstripe /lustre/scratch/
      /lustre/scratch/
        lcm_layout_gen:  0
        lcm_entry_count: 2
          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:   EOF
            stripe_count:  -1       stripe_size:   1048576       stripe_offset: -1
      # mkdir /lustre/scratch/testdir
      # lfs getstripe -d /lustre/scratch/testdir
        lcm_layout_gen:  0
        lcm_entry_count: 2
          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:   EOF
            stripe_count:  -1       stripe_size:   1048576       stripe_offset: -1
      # lfs getstripe -d /lustre/scratch/testdir | grep -c stripe_count
      2
      

      It looks like this test needs to be modified to not assume that there is only one stripe_count entry for directories.

      Logs for one of these failures is at
      https://testing.hpdd.intel.com/test_sets/f3414818-5bcb-11e7-a749-5254006e85c2

      Attachments

        Issue Links

          Activity

            People

              jamesanunez James Nunez (Inactive)
              jamesanunez James Nunez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: