[DRBD-user] drbd dual primary in rgmanager

Digimer lists at alteeve.ca
Thu Nov 14 02:03:49 CET 2013

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


Hi all. I've been struggling to use the drbd resource agent to get
dual-primary working in DRBD. I tried;

<service in a restricted domain with just node 1>
	<drbd name="drbd_n01_r0" resource="r0"/>
	<drbd name="drbd_n01_r1" resource="r1"/>
</service>
<service in a restricted domain with just node 2>
	<drbd name="drbd_n02_r0" resource="r0"/>
	<drbd name="drbd_n02_r1" resource="r1"/>
</service>

But on start, it fails with:

====
Nov 13 19:34:40 an-c05n01 rgmanager[28669]: I am node #1
Nov 13 19:34:40 an-c05n01 rgmanager[28669]: Resource Group Manager Starting
Nov 13 19:34:42 an-c05n01 rgmanager[28669]: Unique attribute collision.
type=drbd attr=resource value=r0
Nov 13 19:34:42 an-c05n01 rgmanager[28669]: Unique attribute collision.
type=drbd attr=resource value=r1
Nov 13 19:34:43 an-c05n01 rgmanager[28669]: Starting stopped service
service:storage_n01
Nov 13 19:34:43 an-c05n01 rgmanager[28669]: start on drbd "drbd_n01_r0"
returned 1 (generic error)
Nov 13 19:34:43 an-c05n01 rgmanager[28669]: #68: Failed to start
service:storage_n01; return value: 1
Nov 13 19:34:43 an-c05n01 rgmanager[28669]: Stopping service
service:storage_n01
Nov 13 19:34:43 an-c05n01 rgmanager[28669]: Starting stopped service
service:libvirtd_n01
Nov 13 19:34:43 an-c05n01 rgmanager[28669]: Service service:storage_n01
is recovering
Nov 13 19:34:43 an-c05n01 rgmanager[28669]: #71: Relocating failed
service service:storage_n01
Nov 13 19:34:43 an-c05n01 rgmanager[28669]: Service service:libvirtd_n01
started
Nov 13 19:34:43 an-c05n01 rgmanager[28669]: #70: Failed to relocate
service:storage_n01; restarting locally
Nov 13 19:34:43 an-c05n01 rgmanager[28669]: Recovering failed service
service:storage_n01
Nov 13 19:34:44 an-c05n01 rgmanager[28669]: start on drbd "drbd_n01_r0"
returned 1 (generic error)
Nov 13 19:34:44 an-c05n01 rgmanager[28669]: #68: Failed to start
service:storage_n01; return value: 1
====

Can someone share an example cluster.conf setup with DRBD in dial-primary?

Thanks!

-- 
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without
access to education?



More information about the drbd-user mailing list