yeah the default units are directly from drbdsetup. We'll try to improve the specifying of units and drbd-options for the next version.
Best regards, Rene On Wed, Jul 25, 2018 at 9:35 AM kvaps <[email protected]> wrote: > I will answer myself, I found information about units on drbdsetup man > page: > > --c-plan-ahead plan_time > ... > The default values of these parameters are: c-plan-ahead = 20 (in > units of 0.1 seconds), c-fill-target = 0 (in units of sectors), > c-delay-target = 1 (in units of 0.1 seconds), and c-max-rate = 102400 > (in units of KiB/s). > > --c-min-rate min_rate > ... > The default value of c-min-rate is 4096, in units of KiB/s. > > So presume the next options will be equivalent: > > linstor c drbd-options --c-plan-ahead=10 --c-min-rate=$((20*1024)) > --c-max-rate=$((720*1024)) --c-fill-target=$((10*1024)) > > to this config: > > disk { > c-fill-target 10M; > c-max-rate 720M; > c-plan-ahead 10; > c-min-rate 20M; > } > > Cheers and Thank You. > - kvaps > > > On Wed, Jul 25, 2018 at 9:15 AM, kvaps <[email protected]> wrote: > > Great, network options are fine. > > But what about those options and their units: > > > > disk { > > c-fill-target 10M; > > c-max-rate 720M; > > c-plan-ahead 10; > > c-min-rate 20M; > > } > > > > I didn't found any information about units used here in linstor, so I > > presume bytes? > > If so, then linstor reports that my value is out of range: > > > > # linstor c drbd-options --c-max-rate=$((720*1024*1024)) > > ... > > linstor controller drbd-options: error: argument --c-max-rate: Range: > > [250, 4194304] > > > > > > - kvaps > > - kvaps > > > > > > On Wed, Jul 25, 2018 at 8:57 AM, Rene Peinthor <[email protected]> > wrote: > >> Currently you have to disable user security (as there is currently no > way to > >> authenticate) for global controller options, see: > >> > https://github.com/LINBIT/linbit-documentation/blob/master/UG9/en/administration-linstor.adoc#disable-user-security > >> > >> Setting those options globally for linstor resources should work with > the > >> `linstor controller drbd-options`, we have already > >> an internal ticket to improve setting of drbd options as right now this > is > >> more a straight port from drbdmanage. > >> > >> --max-buffers MAX_BUFFERS > >> Range: [32, 131072]; Default: 2048 > >> --sndbuf-size SNDBUF_SIZE > >> Range: [0, 10485760]; Default: 0; Unit: bytes > >> --rcvbuf-size RCVBUF_SIZE > >> Range: [0, 10485760]; Default: 0; Unit: bytes > >> > >> Cheers, > >> Rene > >> > >> On Wed, Jul 25, 2018 at 8:37 AM kvaps <[email protected]> wrote: > >>> > >>> Hi Rene, thanks for answer. > >>> Unfortunately I recieve the next error, when I try to set values: > >>> > >>> # linstor c drbd-options --c-plan-ahead=10 > >>> ERROR: > >>> Identity 'PUBLIC' using role: 'PUBLIC' is not authorized to > >>> set a controller config property. > >>> > >>> Also If I understand it well, there is no way for setup > >>> drbd-peer-options globally, like: > >>> > >>> net { > >>> max-buffers 36k; > >>> sndbuf-size 1024k; > >>> rcvbuf-size 2048k; > >>> } > >>> > >>> Am, I right? > >>> - kvaps > >>> > >>> > >>> On Wed, Jul 25, 2018 at 7:24 AM, Rene Peinthor < > [email protected]> > >>> wrote: > >>> > Hi! > >>> > > >>> > Yes, use the `linstor controller drbd-options` command. > >>> > `linstor controller drbd-options -h` will list you all possible > >>> > arguments. > >>> > > >>> > Cheers, > >>> > Rene > >>> > > >>> > On Wed, Jul 25, 2018 at 7:20 AM kvaps <[email protected]> wrote: > >>> >> > >>> >> Hi, is there any way for set global options via linstor? > >>> >> > >>> >> I mean which are can be set inside this file: > >>> >> /var/lib/drbd.d/linstor_common.conf > >>> >> > >>> >> Thanks! > >>> >> _______________________________________________ > >>> >> drbd-user mailing list > >>> >> [email protected] > >>> >> http://lists.linbit.com/mailman/listinfo/drbd-user > >>> > > >>> > > >>> > > >>> > -- > >>> > René Peinthor - Software Developer > >>> > +43-1-817-82-92 x54 > >>> > [email protected] > >>> > > >>> > LINBIT | Keeping the Digital World Running > >>> > DRBD HA - Disaster Recovery - Software-defined Storage > >>> > t / f / in / y / g+ > >>> > > >>> > DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
_______________________________________________ drbd-user mailing list [email protected] http://lists.linbit.com/mailman/listinfo/drbd-user
