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

Siva Kumar shiv609 at gmail.com
Tue Mar 18 08:05:22 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.


Hi Arnold,

I followed the procedure given by this document:
http://wiki.postgresql.org/images/0/07/Ha_postgres.pdf

I dont think i have missed any of the script you mentioned. Every time, i
will create partition (with or without LVM), install DRBD, pacemaker and
corosync, create/up/start drbd service. Finally i end with the same
problem: DRBD resource agent startup problem / not configured.

Today i followed the procedure given by this document:
https://wiki.ubuntu.com/ClusterStack/Natty

With this ubuntu approach, it is working. Difference is, now i installed
pacemaker/corosync first and then DRBD.

drbd/pacemaker developer has to tell us, whether there are any files they
maintain in common and have conflict in version.



On Mon, Mar 17, 2014 at 9:18 AM, Siva Kumar <shiv609 at gmail.com> 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.
> 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
> 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* 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*
>
>
> bash -x result as follows:
> # export OCF_ROOT=/usr/lib/ocf
> # export OCF_RESKEY_drbd_resource="pg"
> # bash -x /usr/lib/ocf/resource.d/linbit/drbd start
>           .................
> *+ set --*
> *+ local a=0 b=0 c=0*
> *+ ((  a > 3  ))*
> *+ ((  a == 3 && b > 0  ))*
> *+ ((  a == 3 && b == 0 && c > 0  ))*
> *+ ocf_log warn 'You may be disappointed: This RA is intended for
> pacemaker 1.0 or better!'*
> */usr/lib/ocf/resource.d/linbit/drbd: line 883: ocf_log: command not found*
> *+ meta_expect clone-max -le 2*
> *+ local what=clone-max whatvar=OCF_RESKEY_CRM_meta_clone_max op=-le
> expect=2*
> *+ local val=*
> *+ [[ -n '' ]]*
> *+ ocf_log err 'meta parameter misconfigured, expected clone-max -le 2,
> but found unset.'*
> */usr/lib/ocf/resource.d/linbit/drbd: line 866: ocf_log: command not found*
> *+ exit*
> *root at umonitor1:~#*
> *root at umonitor1:~# ocf-tester -n drbd_pg  -o drbd_resource="pg" -o
> meta_clone-max=1 /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 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*
> */usr/sbin/ocf-tester: 268: export: OCF_RESKEY_meta_clone-max: bad
> variable name*
> *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 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*
> ** 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*
>
>
> 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 *
>
> pg.res file
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *resource pg {        device /dev/drbd0;        disk /dev/sda6;
> syncer {                rate 150M;                verify-alg md5;
> }        on umonitor1 {                address 192.168.1.33:7788
> <http://192.168.1.33:7788>;                meta-disk internal;
> }        on umonitor2 {                address 192.168.1.44:7788
> <http://192.168.1.44:7788>;                 meta-disk internal;        }}*
>
>
> I am completely new to this linux HA cluster. I have been trying to solve
> this problem for a past couple of days.
> Kindly help me solving this problem.
>
>
>


-- 
You are failed only when you giveup your trying.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20140318/a64b4ee7/attachment.htm>


More information about the drbd-user mailing list