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

ost-pools test 24 fails when $DIR has stripe_count = -1

    XMLWordPrintable

Details

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

    Description

      ost-pools test_24 fails with

      ost-pools test_24: @@@@@@ FAIL: Stripe count -1 not on /mnt/lustre/d24.ost-pools/dir4/f24.ost-pools0:1 
      

      when $DIR has stripe_count = -1. The issue here is that the test is comparing the output of ‘lfs getstripe –c” for a file and for a directory. For the directory, ‘lfs getstripe –c’ reports -1. For the file, , ‘lfs getstripe –c’ reports the number of OSTs.

      This is easy to reproduce. Create a directory, set the stripe count on the directory to -1, touch a file in the directory and compare the stripe count. For a Lustre file system with six OSTs, we see:

      # mkdir /lustre/scratch/newdir
      # lfs setstripe -c -1 /lustre/scratch/newdir
      # lfs getstripe -c /lustre/scratch/newdir/
      -1
      # touch /lustre/scratch/newdir/tfile
      # lfs getstripe -c /lustre/scratch/newdir/tfile 
      6
      

      or

      # DIR=/lustre/scratch/newdir ONLY=24 ./ost-pools.sh 
      …
      
      == ost-pools test 24: Independence of pool from other setstripe parameters =========================== 16:42:10 (1499445730)
      eagle-48vm1: Pool scratch.testpool created
      eagle-48vm1: OST scratch-OST0000_UUID added to pool scratch.testpool
      eagle-48vm1: OST scratch-OST0001_UUID added to pool scratch.testpool
      eagle-48vm1: OST scratch-OST0002_UUID added to pool scratch.testpool
      eagle-48vm1: OST scratch-OST0003_UUID added to pool scratch.testpool
      eagle-48vm1: OST scratch-OST0004_UUID added to pool scratch.testpool
      eagle-48vm1: OST scratch-OST0005_UUID added to pool scratch.testpool
      total: 10 open/close in 0.04 seconds: 265.98 ops/second
      total: 10 open/close in 0.03 seconds: 337.60 ops/second
      total: 10 open/close in 0.04 seconds: 271.03 ops/second
      total: 10 open/close in 0.04 seconds: 229.43 ops/second
       ost-pools test_24: @@@@@@ FAIL: Stripe count -1 not on /lustre/scratch/newdir/d24.ost-pools/dir4/f24.ost-pools0:6 
      

      Testing the PFL feature brought this issue to light. Logs from ost-pools test 24 failures are at:
      2017-05-10 https://testing.hpdd.intel.com/test_sets/011c9cb8-3560-11e7-8847-5254006e85c2
      2017-05-11 https://testing.hpdd.intel.com/test_sets/68184eae-3677-11e7-b0a8-5254006e85c2
      2017-05-23 https://testing.hpdd.intel.com/test_sets/b36b39a6-3fba-11e7-91f3-5254006e85c2
      2017-05-23 https://testing.hpdd.intel.com/test_sets/157936d2-3fd6-11e7-b3f6-5254006e85c2
      2017-06-28 https://testing.hpdd.intel.com/test_sets/f7025162-5bc7-11e7-9221-5254006e85c2

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              jamesanunez James Nunez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: