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

running "lfs setstripe -c3 /mnt/lustre/pooldir/newfile" doesn't inherit pool

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • Lustre 2.10.1
    • None
    • 3
    • 9223372036854775807

    Description

      Testing various scenarios to reproduce LU-10350, I found that running the following test did not work as expected, namely that the file created in pooldir/ did not inherit the pool on the parent directory:

      pool_add $POOL
      pool_add_targets $POOL 0 1 1
      mkdir $tdir/$tdir
      lfs setstripe -p $POOL $DIR/$tdir
      lfs setstripe -c 3 $DIR/$tdir/$tfile-3stripe
      lfs getstripe -p $DIR/$tdir/$tfile-3stripe
      
      lfs setstripe -S 3M $DIR/$tdir/$tfile-3M
      lfs getstripe -p $DIR/$tdir/$tfile-3M
      
      lfs setstripe -E 16M -S 1M -c 1 -E 32G -S 4M -c 4 $DIR/$tdir/pfl
      lfs getstripe -p $DIR/$tdir/$tfile-3M
      

      None of the created files have inherited the pool from the parent directory. Only if a file is created with "touch" does that work. I thought this was fixed in 2.9 with the PFL code, but it doesn't seem to work.

      Also, I notice that sanity.sh and test-framework.sh are using a different set of helper functions for creating pools and adding OSTs (pool_add(), pool_add_targets()) than the ost-pools.sh script (create_pool_fail(), add_pool()). It would be good to remove the duplicate functions and only use one set of pool helpers in all tests.

      Attachments

        Issue Links

          Activity

            People

              laisiyao Lai Siyao
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: