ClusterLabs/pcs

How to add DRBD with pcs resource? "umaildata_monitor_0 on node2 'not installed' (5): ..."

Closed this issue · 2 comments

Hi! I am getting the below error when I use Pacemaker to configure DRBD primary/standby high availability. I just want to use Pacemaker to manage the DRBD service.
Here is my configuration.

centos7
3.10.0-1062.12.1.el7.x86_64
pcs == 0.9.169
pacemaker == 1.1
corosync == 2.4.5

[root@node2 opt]#
[root@node2 opt]# pcs cluster cib add_drbd
[root@node2 opt]#
[root@node2 opt]# drbdadm status r1
r1 role:Secondary
  disk:UpToDate
  node1 role:Primary
    peer-disk:UpToDate

[root@node2 opt]# pcs -f add_drbd resource create umaildata ocf:linbit:drbd drbd_resource=r1 op monitor interval=60s --force
Warning: Agent 'ocf:linbit:drbd' is not installed or does not provide valid metadata: Metadata query for ocf:linbit:drbd failed: Input/output error
Warning: 'monitor' is not a valid operation name value, use
[root@node2 opt]#
[root@node2 opt]# pcs -f add_drbd resource show
 vip    (ocf::heartbeat:IPaddr2):       Started node1
 umaildata      (ocf::linbit:drbd):     Stopped
[root@node2 opt]# pcs -f add_drbd resource master umaildata_sync umaildata master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true
[root@node2 opt]# pcs -f add_drbd resource show
 vip    (ocf::heartbeat:IPaddr2):       Started node1
 Master/Slave Set: umaildata_sync [umaildata]
     Stopped: [ node1 node2 ]
[root@node2 opt]#
[root@node2 opt]# pcs cluster cib-push add_drbd
CIB updated
[root@node2 opt]#
[root@node2 opt]# pcs status
Cluster name: cl
Stack: corosync
Current DC: node2 (version 1.1.23-1.el7_9.1-9acf116022) - partition with quorum
Last updated: Wed Mar 29 15:20:00 2023
Last change: Wed Mar 29 15:19:55 2023 by root via cibadmin on node2

2 nodes configured
3 resource instances configured

Online: [ node1 node2 ]

Full list of resources:

 vip    (ocf::heartbeat:IPaddr2):       Started node1
 Master/Slave Set: umaildata_sync [umaildata]
     Stopped: [ node1 node2 ]

Failed Resource Actions:
* umaildata_monitor_0 on node2 'not installed' (5): call=50, status=Not installed, exitreason='',
    last-rc-change='Wed Mar 29 15:19:57 2023', queued=0ms, exec=1ms
* umaildata_monitor_0 on node1 'not installed' (5): call=54, status=Not installed, exitreason='',
    last-rc-change='Wed Mar 29 15:20:19 2023', queued=0ms, exec=0ms

Daemon Status:
  corosync: active/enabled
  pacemaker: active/enabled
  pcsd: active/enabled
[root@node2 opt]#

Please provide some help for solving this problem.

Best Regards,
zl.

Hi,

Based on the error messages "Agent 'ocf:linbit:drbd' is not installed or does not provide valid metadata" and "status=Not installed", it looks like you are missing the DRBD resource agent and you need to install it.

Regards,
Tomas

Thank you so much for your assistance Tomas!
When I try to search DRBD resource agent I found this instruction yum install -y drbd-pacemaker .
Again thanks for your help.

Best Regards,
zl.