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