[ClusterLabs] DRBD resouce does not start by Pacemaker

Mevo Govo govomevo at gmail.com
Thu May 16 18:18:13 EDT 2019


Hi,
I would use drbd9 and Pacemaker, but when I add a DRBD resource to
Pacemaker, it shows this error. Could You help me?
Thanks: Laszlo

# pcs resource create DrbdDB ocf:linbit:drbd drbd_resource=drbd_db op
monitor interval=60s meta notify=true
# pcs resource master DrbdDBClone DrbdDB master-max=1 master-node-max=1
clone-node-max=1 notify=true
# pcs constraint location DrbdDBClone prefers node1=INFINITY
# pcs cluster stop --all; pcs cluster start --all; pcs status

Failed Actions:
* DrbdDB_start_0 on node1 'unknown error' (1): call=7, status=complete,
exitreason='',
    last-rc-change='Thu May 16 21:44:47 2019', queued=0ms, exec=52ms
* DrbdDB_start_0 on node3 'unknown error' (1): call=7, status=complete,
exitreason='',
    last-rc-change='Thu May 16 21:44:47 2019', queued=0ms, exec=67ms
* DrbdDB_start_0 on node2 'unknown error' (1): call=7, status=complete,
exitreason='',
    last-rc-change='Thu May 16 21:44:47 2019', queued=0ms, exec=58ms

I see this in the corosync.log

May 16 21:15:18  drbd(DrbdDB)[11792]:    ERROR: drbd_db: Called drbdadm -c
/etc/drbd.conf new-resource drbd_db
May 16 21:15:18  drbd(DrbdDB)[11792]:    ERROR: drbd_db: Exit code 20
May 16 21:15:18  drbd(DrbdDB)[11792]:    ERROR: drbd_db: Command output:
May 16 21:15:18 [11739] node1       lrmd:   notice: operation_finished:
DrbdDB_start_0:11792:stderr [ <1>error creating netlink socket ]
May 16 21:15:18 [11739] node1       lrmd:   notice: operation_finished:
DrbdDB_start_0:11792:stderr [ Could not connect to 'drbd' generic netlink
family ]
May 16 21:15:18 [11739] node1       lrmd:   notice: operation_finished:
DrbdDB_start_0:11792:stderr [ Command 'drbdsetup new-resource drbd_db 1
--auto-promote=no --quorum=majority --on-no-quorum=io-error' terminated
with exit code 20 ]


When I use debug-start, it works fine

# drbdadm status
No currently configured DRBD found.
# pcs resource debug-start DrbdDBMaster
Error: unable to debug-start a master, try the master's resource: DrbdDB
# pcs resource debug-start DrbdDB #on each node
Operation start for DrbdDB:0 (ocf:linbit:drbd) returned: 'ok' (0)
# drbdadm status
it shows drbd_db is UpToDate on each node

The drbd_db resource starts fine by DRBD:

# modprobe drbd #on each node
# drbdadm up drbd_db #on each node
# drbdadm primary drbd_db
# drbdadm status
it shows drbd_db is UpToDate on each node
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20190517/deb4d973/attachment.html>


More information about the Users mailing list