[DRBD-user] Linstor global drbd-options

Rene Peinthor rene.peinthor at linbit.com
Wed Jul 25 14:08:58 CEST 2018


This probably a bug or at least something that should be looked at.
You can write a bug report, thanks!

Rene

On Wed, Jul 25, 2018 at 12:01 PM kvaps <kvapss at gmail.com> wrote:

> Hi Rene,
>
> I just found out that those options are not working globally.
> I can set them via linstor, but they not appears in my
> `linstor_common.conf` file.
>
> max-buffers, protocol, rcvbuf-size, sndbuf-size - is working fine
> c-fill-target, c-max-rate, c-plan-ahead, c-min-rate - set via cli are
> ok, but nothing happens afterwards
>
>
> Is that bug? Should I write bug report?
> - kvaps
>
>
> On Wed, Jul 25, 2018 at 9:35 AM, kvaps <kvapss at gmail.com> 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 <kvapss at gmail.com> 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 <
> rene.peinthor at linbit.com> 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 <kvapss at gmail.com> 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 <
> rene.peinthor at linbit.com>
> >>>> 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 <kvapss at gmail.com> 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
> >>>> >> drbd-user at lists.linbit.com
> >>>> >> http://lists.linbit.com/mailman/listinfo/drbd-user
> >>>> >
> >>>> >
> >>>> >
> >>>> > --
> >>>> > René Peinthor - Software Developer
> >>>> > +43-1-817-82-92 x54
> >>>> > rene.peinthor at linbit.com
> >>>> >
> >>>> > 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20180725/ece8af4e/attachment.htm>


More information about the drbd-user mailing list