Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi list,
I have troubling configuring Pacemake to correctly manage a DRBD
resource. The basic problem is that resource does not start, emitting
the following error:
ERROR: meta parameter misconfigured, expected clone-max -le 2, but found
unset
So it seems the OCF script I can found in
/usr/lib/ocf/resource.d/linbit/drbd does not find metadata it expects in
the resource definition. However, metadata *are* specified in the
resource file.
Any suggestions on how to fix the problem?
System info:
- CentOS 7.4 x86_64
- DRBD package kmod-drbd84-8.4.10-1_2.el7_4.elrepo.x86_64
- DRBD utils drbd84-utils-9.1.0-1.el7.elrepo.x86_64
Command line used to create the resource (I also tried with PCSD WebUI,
with no difference at all):
[root at blackhole cluster]# pcs resource create drbd_vol1 ocf:linbit:drbd
drbd_resource=vol1 op monitor interval=5s timeout=30s role="Slave"
monitor interval=15s timeout=30s role="Master"
[root at blackhole cluster]# pcs resource master drbd_vol1 master-max=1
master-node-max=1 clone-max=2 clone-node-max=1
Cluster and resource definition file /var/lib/pacemaker/cib/cib.xml
(trimmed):
...
<master id="drbd_vol1-master">
<primitive class="ocf" id="drbd_vol1" provider="linbit"
type="drbd">
<instance_attributes id="drbd_vol1-instance_attributes">
<nvpair id="drbd_vol1-instance_attributes-drbd_resource"
name="drbd_resource" value="vol1"/>
</instance_attributes>
<operations>
<op id="drbd_vol1-demote-interval-0s" interval="0s"
name="demote" timeout="90"/>
<op id="drbd_vol1-monitor-interval-5s" interval="5s"
name="monitor" role="Slave" timeout="30s"/>
<op id="drbd_vol1-monitor-interval-15s" interval="15s"
name="monitor" role="Master" timeout="30s"/>
<op id="drbd_vol1-promote-interval-0s" interval="0s"
name="promote" timeout="90"/>
<op id="drbd_vol1-start-interval-0s" interval="0s"
name="start" timeout="240"/>
<op id="drbd_vol1-stop-interval-0s" interval="0s"
name="stop" timeout="100"/>
</operations>
</primitive>
<meta_attributes id="drbd_vol1-master-meta_attributes">
<nvpair id="drbd_vol1-master-meta_attributes-master-node-max"
name="master-node-max" value="1"/>
<nvpair id="drbd_vol1-master-meta_attributes-clone-max"
name="clone-max" value="2"/>
<nvpair id="drbd_vol1-master-meta_attributes-master-max"
name="master-max" value="1"/>
<nvpair id="drbd_vol1-master-meta_attributes-clone-node-max"
name="clone-node-max" value="1"/>
</meta_attributes>
</master>
...
Thanks you all.
--
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: g.danti at assyoma.it - info at assyoma.it
GPG public key ID: FF5F32A8