<div dir="ltr"><div><div>Hi,</div><div><br></div><div>I am trying to get Proxmox plugin working with Lisntor+zfs. Linstor works fine until it tried to create resources. It choked on drbdadm commands and syntax. Any thoughts?</div><div><br></div><div>Error #1</div><div><span class="gmail-gr_ gmail-gr_179 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_run_anim gmail-ContextualSpelling" id="gmail-179" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat">drbdadm</span> -<span class="gmail-gr_ gmail-gr_180 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_run_anim gmail-ContextualSpelling" id="gmail-180" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat">vvv</span> --max-peers 7 -- --force create-<span class="gmail-gr_ gmail-gr_178 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_run_anim gmail-ContextualSpelling gmail-ins-del gmail-multiReplace" id="gmail-178" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat">md</span> r03/0<br><span class="gmail-gr_ gmail-gr_181 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_disable_anim_appear gmail-ContextualSpelling" id="gmail-181" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat">drbdadm</span>: unrecognized option &#39;--max-peers&#39;<br></div><div><div>Error #2</div><div><div>/var/lib/drbd.d/r03.res:5: Parse error: &#39;protocol | on | disk | net | syncer | startup | handlers | ignore-on | stacked-on-top-of&#39; expected,</div><div>        but got &#39;template-file&#39; (TK 282)</div></div><br class="gmail-Apple-interchange-newline"></div><div>---</div><div><div># drbdadm --version</div><div>DRBDADM_BUILDTAG=GIT-hash:\ ee126652638328b55dc6bff47d07d6161ab768db\ build\ by\ @buildsystem.linbit\,\ 2018-06-26\ 13:01:24</div><div>DRBDADM_API_VERSION=1</div><div>DRBD_KERNEL_VERSION_CODE=0x08040a</div><div>DRBDADM_VERSION_CODE=0x090500</div><div>DRBDADM_VERSION=9.5.0</div></div><div>---</div><div>Error #1 - Full</div><div><div>============================================================</div><div><br></div><div>Application:                        LINBIT® LINSTOR</div><div>Module:                             Satellite</div><div>Version:                            0.2.3</div><div>Build ID:                           4add04405ff1db47f51a156445197b69f5ab38aa</div><div>Build time:                         2018-06-22T07:30:16+00:00</div><div>Error time:                         2018-08-21 11:48:50</div><div><br></div><div>============================================================</div><div><br></div><div>Reported error:</div><div>===============</div><div><br></div><div>Description:</div><div>    Operations on resource &#39;r03&#39; were aborted</div><div>Cause:</div><div>    Meta data creation failed because the execution of an external command failed</div><div>Correction:</div><div>    - Check whether the required software is installed</div><div>    - Check whether the application&#39;s search path includes the location</div><div>      of the external software</div><div>    - Check whether the application has execute permission for the external command</div><div><br></div><div>Category:                           LinStorException</div><div>Class name:                         ResourceException</div><div>Class canonical name:               com.linbit.linstor.core.DrbdDeviceHandler.ResourceException</div><div>Generated at:                       Method &#39;createResourceMetaData&#39;, Source file &#39;DrbdDeviceHandler.java&#39;, Line #1254</div><div><br></div><div>Error message:                      Meta data creation for resource &#39;r03&#39; volume 0 failed</div><div><br></div><div>Error context:</div><div>    Meta data creation for resource &#39;r03&#39; volume 0 failed</div><div><br></div><div>Call backtrace:</div><div><br></div><div>    Method                                   Native Class:Line number</div><div>    createResourceMetaData                   N      com.linbit.linstor.core.DrbdDeviceHandler:1254</div><div>    createResource                           N      com.linbit.linstor.core.DrbdDeviceHandler:983</div><div>    dispatchResource                         N      com.linbit.linstor.core.DrbdDeviceHandler:278</div><div>    run                                      N      com.linbit.linstor.core.DeviceManagerImpl$DeviceHandlerInvocation:1197</div><div>    run                                      N      com.linbit.WorkerPool$WorkerThread:179</div><div><br></div><div>Caused by:</div><div>==========</div></div><div><div>Description:</div><div>    Execution of the external command &#39;drbdadm&#39; failed.</div><div>Cause:</div><div>    The external command exited with error code 1.</div><div>Correction:</div><div>    - Check whether the external program is operating properly.</div><div>    - Check whether the command line is correct.</div><div>      Contact a system administrator or a developer if the command line is no longer valid</div><div>      for the installed version of the external program.</div><div>Additional information:</div><div>    The full command line executed was:</div><div>    drbdadm -vvv --max-peers 7 -- --force create-md r03/0</div><div><br></div><div>    The external command sent the following output data:</div><div><br></div><div><br></div><div>    The external command sent the follwing error information:</div><div>    drbdadm: unrecognized option &#39;--max-peers&#39;</div><div>    try &#39;drbdadm help&#39;</div><div><br></div><div><br></div><div>Category:                           LinStorException</div><div>Class name:                         ExtCmdFailedException</div><div>Class canonical name:               com.linbit.extproc.ExtCmdFailedException</div><div>Generated at:                       Method &#39;execute&#39;, Source file &#39;DrbdAdm.java&#39;, Line #445</div><div><br></div><div>Error message:                      The external command &#39;drbdadm&#39; exited with error code 1</div><div><br></div><div><br></div><div>Call backtrace:</div><div><br></div><div>    Method                                   Native Class:Line number</div><div>    execute                                  N      com.linbit.drbd.DrbdAdm:445</div><div>    simpleAdmCommand                         N      com.linbit.drbd.DrbdAdm:396</div><div>    createMd                                 N      com.linbit.drbd.DrbdAdm:217</div><div>    createVolumeMetaData                     N      com.linbit.linstor.core.DrbdDeviceHandler:966</div><div>    createResourceMetaData                   N      com.linbit.linstor.core.DrbdDeviceHandler:1246</div><div>    createResource                           N      com.linbit.linstor.core.DrbdDeviceHandler:983</div><div>    dispatchResource                         N      com.linbit.linstor.core.DrbdDeviceHandler:278</div><div>    run                                      N      com.linbit.linstor.core.DeviceManagerImpl$DeviceHandlerInvocation:1197</div><div>    run                                      N      com.linbit.WorkerPool$WorkerThread:179</div><div><br></div><div><br></div><div>END OF ERROR REPORT.</div></div><div>--- </div></div><div># Error #2</div><div><div># drbdadm connect r01</div><div>/var/lib/drbd.d/r03.res:5: Parse error: &#39;protocol | on | disk | net | syncer | startup | handlers | ignore-on | stacked-on-top-of&#39; expected,</div><div>        but got &#39;template-file&#39; (TK 282)</div></div><div><br></div><div># cat /var/lib/drbd.d/r03.res </div><div># This file was generated by linstor(0.2.3), do not edit manually.</div><div><br></div><div>resource r03</div><div>{</div><div>    template-file &quot;linstor_common.conf&quot;;</div><div>    net</div><div>    {</div><div>        cram-hmac-alg     sha1;</div><div>        shared-secret     &quot;2TMXUHZz/OYnMJD1D0KM&quot;;</div><div>    }</div><div>    on eth0-pve3-bos1</div><div>    {</div><div>        volume 0</div><div>        {</div><div>            disk        /dev/zvol/datastore/r03_00000;</div><div>            meta-disk   internal;</div><div>            device      minor 1002;</div><div>        }</div><div>        address    ipv4 <a href="http://192.168.20.13:7002">192.168.20.13:7002</a>;</div><div>        node-id    1;</div><div>    }</div><div>    </div><div>    on eth0-pve1-bos1</div><div>    {</div><div>        volume 0</div><div>        {</div><div>            disk        /dev/drbd/this/is/not/used;</div><div>            meta-disk   internal;</div><div>            device      minor 1002;</div><div>        }</div><div>        address    ipv4 <a href="http://192.168.20.11:7002">192.168.20.11:7002</a>;</div><div>        node-id    0;</div><div>    }</div><div>    connection</div><div>    {</div><div>        host eth0-pve3-bos1;</div><div>        host eth0-pve1-bos1;</div><div>    }</div><div>}</div><div><br></div></div>