[lustre-discuss] lfs setstripe resets all values to default

Cory Spitz spitzcor at cray.com
Mon Jul 3 07:58:21 PDT 2017


Anna,

What version of Lustre are you using?

I believe your issue was reported as https://jira.hpdd.intel.com/browse/LUDOC-171, but that was marked resolved.  Andreas D. commented there that “the setstripe will [now] inherit the parameters that are not specified from the directory.”  That behavior was changed in 2.9.0.  Try that or the latest 2.10 RC to see if the behavior better matches your expectations.  Please file new LU/LUDOC tickets if the Ops manual, lfs help, or manpage output isn’t clear.

Thanks,
-Cory

-- 


On 7/3/17, 8:45 AM, "lustre-discuss on behalf of Anna Fuchs" <lustre-discuss-bounces at lists.lustre.org on behalf of anna.fuchs at informatik.uni-hamburg.de> wrote:

    Dear all, 
    
    when you set a single parameter via lfs setstripe, all the other
    parameters will be reset to default values. Is that behavior desired? I
    would expect to overwrite the certain parameter and leave everything
    else as it was. 
    
    $ mkdir /mnt/client0/test
    $ lfs getstripe /mnt/client0/test
    /mnt/client0/test
    stripe_count:   1 stripe_size:    1048576 stripe_offset:  -1
    $ lfs setstripe --stripe-count 2 /mnt/client0/test
    $ lfs getstripe /mnt/client0/test
    /mnt/client0/test
    stripe_count:   2 stripe_size:    1048576 stripe_offset:  -1
    $ lfs setstripe --stripe-size 131072  /mnt/client0/test
    $ lfs getstripe /mnt/client0/test
    /mnt/client0/test
    stripe_count:   1 stripe_size:    131072 stripe_offset:  -1
    
    Reason:
    lustre/utils/lfs.c:974++
    
    	st_size = 0;
    	st_offset = -1;
    	st_count = 0;
    
    
    It is not a big deal, but seems counterintuitive to me and is
    uncomfortable for testing. One could initialize the three variables
    with last used values. What do you think?
    
    Regards,
    Anna
    _______________________________________________
    lustre-discuss mailing list
    lustre-discuss at lists.lustre.org
    http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
    



More information about the lustre-discuss mailing list