[DRBD-user] drbdadm exception with Linstor

PG penguin02007 at gmail.com
Tue Aug 21 23:40:40 CEST 2018


Hi,

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?

Error #1
drbdadm -vvv --max-peers 7 -- --force create-md r03/0
drbdadm: unrecognized option '--max-peers'
Error #2
/var/lib/drbd.d/r03.res:5: Parse error: 'protocol | on | disk | net |
syncer | startup | handlers | ignore-on | stacked-on-top-of' expected,
        but got 'template-file' (TK 282)

---
# drbdadm --version
DRBDADM_BUILDTAG=GIT-hash:\ ee126652638328b55dc6bff47d07d6161ab768db\
build\ by\ @buildsystem.linbit\,\ 2018-06-26\ 13:01:24
DRBDADM_API_VERSION=1
DRBD_KERNEL_VERSION_CODE=0x08040a
DRBDADM_VERSION_CODE=0x090500
DRBDADM_VERSION=9.5.0
---
Error #1 - Full
============================================================

Application:                        LINBIT® LINSTOR
Module:                             Satellite
Version:                            0.2.3
Build ID:                           4add04405ff1db47f51a156445197b69f5ab38aa
Build time:                         2018-06-22T07:30:16+00:00
Error time:                         2018-08-21 11:48:50

============================================================

Reported error:
===============

Description:
    Operations on resource 'r03' were aborted
Cause:
    Meta data creation failed because the execution of an external command
failed
Correction:
    - Check whether the required software is installed
    - Check whether the application's search path includes the location
      of the external software
    - Check whether the application has execute permission for the external
command

Category:                           LinStorException
Class name:                         ResourceException
Class canonical name:
 com.linbit.linstor.core.DrbdDeviceHandler.ResourceException
Generated at:                       Method 'createResourceMetaData', Source
file 'DrbdDeviceHandler.java', Line #1254

Error message:                      Meta data creation for resource 'r03'
volume 0 failed

Error context:
    Meta data creation for resource 'r03' volume 0 failed

Call backtrace:

    Method                                   Native Class:Line number
    createResourceMetaData                   N
com.linbit.linstor.core.DrbdDeviceHandler:1254
    createResource                           N
com.linbit.linstor.core.DrbdDeviceHandler:983
    dispatchResource                         N
com.linbit.linstor.core.DrbdDeviceHandler:278
    run                                      N
com.linbit.linstor.core.DeviceManagerImpl$DeviceHandlerInvocation:1197
    run                                      N
com.linbit.WorkerPool$WorkerThread:179

Caused by:
==========
Description:
    Execution of the external command 'drbdadm' failed.
Cause:
    The external command exited with error code 1.
Correction:
    - Check whether the external program is operating properly.
    - Check whether the command line is correct.
      Contact a system administrator or a developer if the command line is
no longer valid
      for the installed version of the external program.
Additional information:
    The full command line executed was:
    drbdadm -vvv --max-peers 7 -- --force create-md r03/0

    The external command sent the following output data:


    The external command sent the follwing error information:
    drbdadm: unrecognized option '--max-peers'
    try 'drbdadm help'


Category:                           LinStorException
Class name:                         ExtCmdFailedException
Class canonical name:               com.linbit.extproc.ExtCmdFailedException
Generated at:                       Method 'execute', Source file
'DrbdAdm.java', Line #445

Error message:                      The external command 'drbdadm' exited
with error code 1


Call backtrace:

    Method                                   Native Class:Line number
    execute                                  N
com.linbit.drbd.DrbdAdm:445
    simpleAdmCommand                         N
com.linbit.drbd.DrbdAdm:396
    createMd                                 N
com.linbit.drbd.DrbdAdm:217
    createVolumeMetaData                     N
com.linbit.linstor.core.DrbdDeviceHandler:966
    createResourceMetaData                   N
com.linbit.linstor.core.DrbdDeviceHandler:1246
    createResource                           N
com.linbit.linstor.core.DrbdDeviceHandler:983
    dispatchResource                         N
com.linbit.linstor.core.DrbdDeviceHandler:278
    run                                      N
com.linbit.linstor.core.DeviceManagerImpl$DeviceHandlerInvocation:1197
    run                                      N
com.linbit.WorkerPool$WorkerThread:179


END OF ERROR REPORT.
---
# Error #2
# drbdadm connect r01
/var/lib/drbd.d/r03.res:5: Parse error: 'protocol | on | disk | net |
syncer | startup | handlers | ignore-on | stacked-on-top-of' expected,
        but got 'template-file' (TK 282)

# cat /var/lib/drbd.d/r03.res
# This file was generated by linstor(0.2.3), do not edit manually.

resource r03
{
    template-file "linstor_common.conf";
    net
    {
        cram-hmac-alg     sha1;
        shared-secret     "2TMXUHZz/OYnMJD1D0KM";
    }
    on eth0-pve3-bos1
    {
        volume 0
        {
            disk        /dev/zvol/datastore/r03_00000;
            meta-disk   internal;
            device      minor 1002;
        }
        address    ipv4 192.168.20.13:7002;
        node-id    1;
    }

    on eth0-pve1-bos1
    {
        volume 0
        {
            disk        /dev/drbd/this/is/not/used;
            meta-disk   internal;
            device      minor 1002;
        }
        address    ipv4 192.168.20.11:7002;
        node-id    0;
    }
    connection
    {
        host eth0-pve3-bos1;
        host eth0-pve1-bos1;
    }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20180821/19e8413c/attachment.htm>


More information about the drbd-user mailing list