Discussion:
[DRBD-user] DRBD9 + PROXMOX 5.2 - can't initialise drbd with drbdmanage
Sebastien CHATEAU-DUTIER
2018-11-09 21:33:03 UTC
Permalink
Dear all,

On fresh install of proxmox 5.2 (2 nodes up to date with installation of
drbdmanage-proxmox with the offical documentation)

I have one VG drbdpool created on nodes but I can't initialise drbd, I
have this error :

***@pve1:~# drbdmanage init 192.168.72.100

You are going to initialize a new drbdmanage cluster.
CAUTION! Note that:
  * Any previous drbdmanage cluster information may be removed
  * Any remaining resources managed by a previous drbdmanage installation
    that still exist on this system will no longer be managed by drbdmanage

Confirm:

  yes/no: yes
Error: External command failed:
drbdsetup new-resource .drbdctrl 0
Command output:
  (stdout)
Command exited with exit_code 20

Initialization failed


As anyone have an idea of what is the reel error ?

Thanks in advance

Best regards.

Sebastien
Yannis Milios
2018-11-10 12:27:34 UTC
Permalink
drbdmanage is end of life, please use linstor instead (see drbd
documentation on how to configure it on proxmox).



On Sat, 10 Nov 2018 at 12:18, Sebastien CHATEAU-DUTIER <
Post by Sebastien CHATEAU-DUTIER
Dear all,
On fresh install of proxmox 5.2 (2 nodes up to date with installation of
drbdmanage-proxmox with the offical documentation)
I have one VG drbdpool created on nodes but I can't initialise drbd, I
You are going to initialize a new drbdmanage cluster.
* Any previous drbdmanage cluster information may be removed
* Any remaining resources managed by a previous drbdmanage installation
that still exist on this system will no longer be managed by
drbdmanage
yes/no: yes
drbdsetup new-resource .drbdctrl 0
(stdout)
Command exited with exit_code 20
Initialization failed
As anyone have an idea of what is the reel error ?
Thanks in advance
Best regards.
Sebastien
_______________________________________________
drbd-user mailing list
http://lists.linbit.com/mailman/listinfo/drbd-user
--
Sent from Gmail Mobile
Sebastien CHATEAU-DUTIER
2018-11-10 12:32:05 UTC
Permalink
Dear Milios,

Thanks for your help, I will make test with linstor but it's for
production use in little time, is it OK to use linstor for production ?

Regards
Post by Yannis Milios
drbdmanage is end of life, please use linstor instead (see drbd
documentation on how to configure it on proxmox).
On Sat, 10 Nov 2018 at 12:18, Sebastien CHATEAU-DUTIER
Dear all,
On fresh install of proxmox 5.2 (2 nodes up to date with
installation of
drbdmanage-proxmox with the offical documentation)
I have one VG drbdpool created on nodes but I can't initialise drbd, I
You are going to initialize a new drbdmanage cluster.
   * Any previous drbdmanage cluster information may be removed
   * Any remaining resources managed by a previous drbdmanage
installation
     that still exist on this system will no longer be managed by
drbdmanage
   yes/no: yes
drbdsetup new-resource .drbdctrl 0
   (stdout)
Command exited with exit_code 20
Initialization failed
As anyone have an idea of what is the reel error ?
Thanks in advance
Best regards.
Sebastien
_______________________________________________
drbd-user mailing list
http://lists.linbit.com/mailman/listinfo/drbd-user
--
Sent from Gmail Mobile
Yannis Milios
2018-11-10 13:23:18 UTC
Permalink
It’s definitely in a much better state than drbdmanage is and AFAIK people
are already using it in production.



On Sat, 10 Nov 2018 at 12:32, Sebastien CHATEAU-DUTIER <
Post by Sebastien CHATEAU-DUTIER
Dear Milios,
Thanks for your help, I will make test with linstor but it's for
production use in little time, is it OK to use linstor for production ?
Regards
drbdmanage is end of life, please use linstor instead (see drbd
documentation on how to configure it on proxmox).
On Sat, 10 Nov 2018 at 12:18, Sebastien CHATEAU-DUTIER <
Post by Sebastien CHATEAU-DUTIER
Dear all,
On fresh install of proxmox 5.2 (2 nodes up to date with installation of
drbdmanage-proxmox with the offical documentation)
I have one VG drbdpool created on nodes but I can't initialise drbd, I
You are going to initialize a new drbdmanage cluster.
* Any previous drbdmanage cluster information may be removed
* Any remaining resources managed by a previous drbdmanage installation
that still exist on this system will no longer be managed by
drbdmanage
yes/no: yes
drbdsetup new-resource .drbdctrl 0
(stdout)
Command exited with exit_code 20
Initialization failed
As anyone have an idea of what is the reel error ?
Thanks in advance
Best regards.
Sebastien
_______________________________________________
drbd-user mailing list
http://lists.linbit.com/mailman/listinfo/drbd-user
--
Sent from Gmail Mobile
_______________________________________________
drbd-user mailing list
http://lists.linbit.com/mailman/listinfo/drbd-user
--
Sent from Gmail Mobile
Sebastien CHATEAU-DUTIER
2018-11-11 21:24:29 UTC
Permalink
It’s definitely in a much better state than drbdmanage is and AFAIK
people are already using it in production.
Dear all,

I have tested to create my DRBD on Proxmox with Linstor, but I have a
problem and I don't know how resolv it...

I init my cluster as it :

Install linstor-satellite on two nodes, linstor-controller on one node,
vg_pool is my volume group for drbd.

# linstor node create pve1 192.168.72.1 --node-type Combined
# linstor node create pve2 192.168.72.2 --node-type Combined
# linstor storage-pool create lvm pve1 drbdpool vg_drbd
# linstor storage-pool create lvm pve2 drbdpool vg_drbd
# linstor resource-definition create res_drbd
# linstor volume-definition create res_drbd 100G

At this point all are fine.

# linstor resource create pve1 res_drbd --storage-pool drbdpool

At this point all are bad, linstor use drbdadm with an 'unkow' option
(--config-to-exclude) on my system 'proxmox 5.2' up to date ; look at
the end of this mail you have the tty and log file about this error

Anyone kwon how I can resolv the error ?

Thanks in advance and best regards.

Seb


----------------- TTY -----------------
***@pve1:~# linstor resource create pve1 res_drbd --storage-pool drbdpool
SUCCESS:
Description:
    New resource 'res_drbd' on node 'pve1' registered.
Details:
    Resource 'res_drbd' on node 'pve1' UUID is:
5fae9671-a8d7-4044-b23a-5a9030aeec90
SUCCESS:
Description:
    Volume with number '0' on resource 'res_drbd' on node 'pve1'
successfully registered
Details:
    Volume UUID is: 829b9826-51cf-4c34-a535-ca18b2cfc234
ERROR:
Description:
    (Node: 'pve1') Generated resource file for resource 'res_drbd' is
invalid.
Cause:
    Verification of resource file failed
Details:
    The error reported by the runtime environment or operating system is:
    The external command 'drbdadm' exited with error code 1


----------------- LOG -----------------
ERROR REPORT 5BE890FC-8A94D-000001

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

Application:                        LINBIT® LINSTOR
Module:                             Satellite
Version:                            0.7.1
Build ID: 226b9485d39793398018542054ae855c8a0f9426
Build time:                         2018-11-06T09:05:20+00:00
Error time:                         2018-11-11 21:57:40
Node:                               pve1

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

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

Description:
    Operations on resource 'res_drbd' were aborted
Cause:
    Verification of resource file failed
Additional information:
    The error reported by the runtime environment or operating system is:
    The external command 'drbdadm' exited with error code 1

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

Error message:                      Generated resource file for resource
'res_drbd' is invalid.

Error context:
    Generated resource file for resource 'res_drbd' is invalid.

Call backtrace:

    Method                                   Native Class:Line number
    createResourceConfiguration              N
com.linbit.linstor.core.DrbdDeviceHandler:1411
    createResource                           N
com.linbit.linstor.core.DrbdDeviceHandler:1109
    dispatchResource                         N
com.linbit.linstor.core.DrbdDeviceHandler:316
    run                                      N
com.linbit.linstor.core.DeviceManagerImpl$DeviceHandlerInvocation:1262
    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 --config-to-test /var/lib/linstor.d/res_drbd.res_tmp
--config-to-exclude /var/lib/linstor.d/res_drbd.res sh-nop

    The external command sent the following output data:


    The external command sent the follwing error information:
    drbdadm: unrecognized option '--config-to-exclude'
    try 'drbdadm help'


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

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


Call backtrace:

    Method                                   Native Class:Line number
    execute                                  N com.linbit.drbd.DrbdAdm:437
    execute                                  N com.linbit.drbd.DrbdAdm:423
    checkResFile                             N com.linbit.drbd.DrbdAdm:326
    createResourceConfiguration              N
com.linbit.linstor.core.DrbdDeviceHandler:1404
    createResource                           N
com.linbit.linstor.core.DrbdDeviceHandler:1109
    dispatchResource                         N
com.linbit.linstor.core.DrbdDeviceHandler:316
    run                                      N
com.linbit.linstor.core.DeviceManagerImpl$DeviceHandlerInvocation:1262
    run                                      N
com.linbit.WorkerPool$WorkerThread:179


END OF ERROR REPORT.
Sebastien CHATEAU-DUTIER
2018-11-11 22:42:33 UTC
Permalink
Dear all

I found my error, The resources must be created by proxmox. All work
fine for VM.

Thanks, regards

Seb
Post by Sebastien CHATEAU-DUTIER
It’s definitely in a much better state than drbdmanage is and AFAIK
people are already using it in production.
Dear all,
I have tested to create my DRBD on Proxmox with Linstor, but I have a
problem and I don't know how resolv it...
Install linstor-satellite on two nodes, linstor-controller on one
node, vg_pool is my volume group for drbd.
# linstor node create pve1 192.168.72.1 --node-type Combined
# linstor node create pve2 192.168.72.2 --node-type Combined
# linstor storage-pool create lvm pve1 drbdpool vg_drbd
# linstor storage-pool create lvm pve2 drbdpool vg_drbd
# linstor resource-definition create res_drbd
# linstor volume-definition create res_drbd 100G
At this point all are fine.
# linstor resource create pve1 res_drbd --storage-pool drbdpool
At this point all are bad, linstor use drbdadm with an 'unkow' option
(--config-to-exclude) on my system 'proxmox 5.2' up to date ; look at
the end of this mail you have the tty and log file about this error
Anyone kwon how I can resolv the error ?
Thanks in advance and best regards.
Seb
----------------- TTY -----------------
    New resource 'res_drbd' on node 'pve1' registered.
5fae9671-a8d7-4044-b23a-5a9030aeec90
    Volume with number '0' on resource 'res_drbd' on node 'pve1'
successfully registered
    Volume UUID is: 829b9826-51cf-4c34-a535-ca18b2cfc234
    (Node: 'pve1') Generated resource file for resource 'res_drbd' is
invalid.
    Verification of resource file failed
    The external command 'drbdadm' exited with error code 1
----------------- LOG -----------------
ERROR REPORT 5BE890FC-8A94D-000001
============================================================
Application:                        LINBIT® LINSTOR
Module:                             Satellite
Version:                            0.7.1
Build ID: 226b9485d39793398018542054ae855c8a0f9426
Build time:                         2018-11-06T09:05:20+00:00
Error time:                         2018-11-11 21:57:40
Node:                               pve1
============================================================
===============
    Operations on resource 'res_drbd' were aborted
    Verification of resource file failed
    The external command 'drbdadm' exited with error code 1
Category:                           LinStorException
Class name:                         ResourceException
com.linbit.linstor.core.DrbdDeviceHandler.ResourceException
Generated at:                       Method
'createResourceConfiguration', Source file 'DrbdDeviceHandler.java',
Line #1411
Error message:                      Generated resource file for
resource 'res_drbd' is invalid.
    Generated resource file for resource 'res_drbd' is invalid.
    Method                                   Native Class:Line number
    createResourceConfiguration              N
com.linbit.linstor.core.DrbdDeviceHandler:1411
    createResource                           N
com.linbit.linstor.core.DrbdDeviceHandler:1109
    dispatchResource                         N
com.linbit.linstor.core.DrbdDeviceHandler:316
    run                                      N
com.linbit.linstor.core.DeviceManagerImpl$DeviceHandlerInvocation:1262
    run                                      N
com.linbit.WorkerPool$WorkerThread:179
==========
    Execution of the external command 'drbdadm' failed.
    The external command exited with error code 1.
    - 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.
    drbdadm --config-to-test /var/lib/linstor.d/res_drbd.res_tmp
--config-to-exclude /var/lib/linstor.d/res_drbd.res sh-nop
    drbdadm: unrecognized option '--config-to-exclude'
    try 'drbdadm help'
Category:                           LinStorException
Class name:                         ExtCmdFailedException
Class canonical name: com.linbit.extproc.ExtCmdFailedException
Generated at:                       Method 'execute', Source file
'DrbdAdm.java', Line #437
Error message:                      The external command 'drbdadm'
exited with error code 1
    Method                                   Native Class:Line number
    execute                                  N
com.linbit.drbd.DrbdAdm:437
    execute                                  N
com.linbit.drbd.DrbdAdm:423
    checkResFile                             N
com.linbit.drbd.DrbdAdm:326
    createResourceConfiguration              N
com.linbit.linstor.core.DrbdDeviceHandler:1404
    createResource                           N
com.linbit.linstor.core.DrbdDeviceHandler:1109
    dispatchResource                         N
com.linbit.linstor.core.DrbdDeviceHandler:316
    run                                      N
com.linbit.linstor.core.DeviceManagerImpl$DeviceHandlerInvocation:1262
    run                                      N
com.linbit.WorkerPool$WorkerThread:179
END OF ERROR REPORT.
_______________________________________________
drbd-user mailing list
http://lists.linbit.com/mailman/listinfo/drbd-user
Loading...