[lustre-discuss] lfs setstripe resets all values to default
Anna Fuchs
anna.fuchs at informatik.uni-hamburg.de
Mon Jul 3 08:05:13 PDT 2017
Indeed, sorry, I have missed it in jira. In my 2.9.0 it was not
yet fixed.
Thank you for answering.
Anna
On Mon, 2017-07-03 at 14:58 +0000, Cory Spitz wrote:
> Anna,
>
> What version of Lustre are you using?
>
> I believe your issue was reported as https://jira.hpdd.intel.com/brow
> se/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.u
> ni-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