[DRBD-user] Linbit drbd Failed status not configured problem

Lars Ellenberg lars.ellenberg at linbit.com
Tue Mar 18 17:34:45 CET 2014

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On Mon, Mar 17, 2014 at 09:18:30AM +0530, Siva Kumar wrote:
> I am trying to add replication support for my software.
> I installed drbd, pacemaker and corosoft. OS used: Ubuntu 12.04.4 server
> edition.
> DRBD: 8.4.4 installed from source.

"You did something wrong" ?

> Pacemaker, corosoft installed using apt-get
> 
> I tried to add the drbd resource agent to the crm configure command:
> crm configure primitive drbd_pg ocf:linbit:drbd params drbd_resource="pg"
> op monitor interval="29s" role="Master" op monitor interval="31s"
> role="Slave"
> crm configure ms ms_drbd_pg drbd_pg meta master-max="1" master-node-max="1"
> clone-max="2" clone-node-max="1" notify="true"
> 
> The crm_mon shows the following status:
> *Last updated: Mon Mar 17 09:02:17 2014*
> *Last change: Sun Mar 16 20:40:04 2014 via cibadmin on umonitor1*
> *Stack: openais*
> *Current DC: umonitor1 - partition with quorum*
> *Version: 1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c*
> *2 Nodes configured, 2 expected votes*
> *2 Resources configured.*
> *============*
> 
> *Online: [ umonitor1 umonitor2 ]*
> 
> * Master/Slave Set: ms_drbd_pg [drbd_pg]*
> *     drbd_pg:0  (ocf::linbit:drbd):     Slave umonitor1 (unmanaged) FAILED*
> *     drbd_pg:1  (ocf::linbit:drbd):     Slave umonitor2 (unmanaged) FAILED*
> 
> *Failed actions:*
> *    drbd_pg_monitor_0 (node=umonitor1, call=2, rc=6, status=complete): not
> configured*
> *    drbd_pg:0_stop_0 (node=umonitor1, call=8, rc=-2, status=Timed Out):
> unknown exec error*
> *    drbd_pg_monitor_0 (node=umonitor2, call=2, rc=6, status=complete): not
> configured*
> *    drbd_pg:1_stop_0 (node=umonitor2, call=19, rc=-2, status=Timed Out):
> unknown exec error*
> 
> 
> OCF tester gives the following results:
> root at umonitor1:~# ocf-tester -n drbd_pg  -o drbd_resource="pg"
> /usr/lib/ocf/resource.d/linbit/drbd start
> 
> 
> 
> 
> 
> 
> 
> 
> *Beginning tests for
> /usr/lib/ocf/resource.d/linbit/drbd.../usr/lib/ocf/resource.d/linbit/drbd:
> 117: /usr/lib/ocf/resource.d/linbit/drbd: [[: not

You are using "dash" to drive a bash script,
which does heavily use bashisms.
Don't.

> found/usr/lib/ocf/resource.d/linbit/drbd: 1079:
> /usr/lib/ocf/resource.d/linbit/drbd: Syntax error: end of file unexpected
> (expecting "}")* rc=2:


> Your agent has too restrictive permissions: should be 755

There...
How about a chmod +x ??

> * rc=6: Validation failed.  Did you supply enough options with -o
> ?drbd[21719]: WARNING: You may be disappointed: This RA is intended for
> pacemaker 1.0 or better!drbd[21719]: ERROR: meta parameter misconfigured,
> expected clone-max -le 2, but found unset.Aborting tests*

Yep. That's not the way to use ocf-tester with the DRBD RA.
But rest assured that the DRBD RA is not your problem.

> DRBD status
> # cat /proc/drbd
> 
> 
> 
> 
> *version: 8.4.4 (api:1/proto:86-101)GIT-hash:
> 74402fecf24da8e5438171ee8c19e28627e1c98a build by root at umonitor1,
> 2014-03-16 19:43:58 0: cs:Connected ro:Primary/Secondary
> ds:UpToDate/UpToDate C r-----    ns:192936 nr:0 dw:0 dr:193600 al:0 bm:23
> lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0*


All good.

	Lars


-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
__
please don't Cc me, but send to list   --   I'm subscribed



More information about the drbd-user mailing list