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

Unable to create file without a pool with a pool define on the parent or on the fs root.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.16.0, Lustre 2.15.4
    • None
    • None
    • 2.12.8 LTS/ 2.15
    • 3
    • 9223372036854775807

    Description

      The user need to have a way to force file creation without a pool to select specific OSTs (lfs setstripe --ost) or to use all the OST for the stripe's selections.
      The patch https://review.whamcloud.com/41815 remove the pool from the layout when a ostlist is supplied (lfs setstripe --ost) , but this behavior will be changed with LU-15658.

      Reproducer:

      # lfs setstripe -p ost0 testdir/
      # lfs setstripe -p ''  testdir/testfile              
      # lfs setstripe -p none  testdir/testfile2           
      # lfs setstripe -c2  testdir/testfile3
      # lfs getstripe -p testdir/* 
      ost0                                             
                                                       
      ost0                                             
                                                       
      ost0                                             
      
      

      On 2.12.8:

      # lfs setstripe -p ost0 testdir/
      # lfs setstripe --ost 1,0  testdir/testfile1              
      lfs setstripe: setstripe error for 'testdir/testfile1': Invalid argument
      # lfs setstripe --ost 0,1  testdir/testfile2  
      # lfs getstripe -p testdir/testfile2
      ost0            
                                       
      

      EINVAL is returned because MDT only check if the first OST index is in the pool (see the LU-14480).

      Attachments

        Issue Links

          Activity

            People

              eaujames Etienne Aujames
              eaujames Etienne Aujames
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: