[Drbd-dev] drbd-8.4.0-rc2 Pacemaker ocf resource agent script bugfix

Eric Price en at lightwerk.com
Wed Jun 1 14:02:30 CEST 2011

I dunno if you guys already spotted and/or fixed that in git.

The drbd resource agent makes a check in "dual primary configuration"

> drbdadm <resource> -d -v dump

includes a line called

> allow-two-primaries;

however with 8.4.x drbdadmin reports that line as

> allow-two-primaries yes;

(even though drbd still accepts the old syntax in the config file)

Thus the regex grep in the resource agent doesn't find it, and the
resource startup fails.

My fix just checks for an optional [ yes] in front of the ; and the
resource management works again.

Hope that helps.


Eric Price
Linux Solutions / Development

Lightwerk GmbH - www.lightwerk.com
Schulze-Delitzsch-Str. 38, 70565 Stuttgart
E-Mail: en at lightwerk.com

Geschäftsführender Gesellschafter: Veikko Wünsche
Amtsgericht Stuttgart, HRB 22214
Ust.-ID: DE 813315708

-------------- next part --------------
A non-text attachment was scrubbed...
Name: drbd_resource.patch
Type: text/x-patch
Size: 496 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-dev/attachments/20110601/8fbced4b/attachment.bin>

More information about the drbd-dev mailing list