[DRBD-user] drbd resource fencing - 2nd try with more information

Rasto Levrinc rasto.levrinc at linbit.com
Wed Dec 5 17:32:58 CET 2007

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


Am Wednesday 05 December 2007 schrieb Dominik Klein:
> > It would be nice to know how to build dopd and the drbd-peer-outdater
> > from a certain drbd version with a recent heartbeat version. The
> > instructions in the README file (in the drbd tools/ subdirectory) bring
> > up the errors I posted earlier.
> >
> > dopd.c from Andrews recent code (2.1.*2*-24) is different from
> > drbd-8.0.7's code and both are different from linux-ha.org's 2.1.2
> > release. So these questions come up:
> > Are dopd and drbd-peer-outdater maintained in heartbeat or in drbd?

drbd peer outedater is maintained in the heartbeat repository by us. That 
means - use the dopd and drbd-peer-outdater that comes with heartbeat, if 
you have some problem ask us.
We will remove it from the drbd source to avoid confusion.

From the logs below it seems that dopd on one node did not talk to dopd on 
the second node. Is actually dopd running on both nodes?

Rasto

>
> Here's the log from the Primary node:
> Dec  5 14:42:11 dktest1debian kernel: drbd2: PingAck did not arrive in
> time. Dec  5 14:42:11 dktest1debian kernel: drbd2: peer( Secondary ->
> Unknown ) conn( Connected -> NetworkFailure ) pdsk( UpToDate -> DUnknown
> ) Dec  5 14:42:11 dktest1debian kernel: drbd2: Creating new current UUID
> Dec  5 14:42:11 dktest1debian kernel: drbd2: asender terminated
> Dec  5 14:42:11 dktest1debian kernel: drbd2: short read expecting header
> on sock: r=-512
> Dec  5 14:42:11 dktest1debian kernel: drbd2: tl_clear()
> Dec  5 14:42:11 dktest1debian kernel: drbd2: Connection closed
> Dec  5 14:42:11 dktest1debian kernel: drbd2: Writing meta data super
> block now.
> Dec  5 14:42:11 dktest1debian kernel: drbd2: helper command:
> /sbin/drbdadm outdate-peer
> Dec  5 14:42:11 dktest1debian drbd-peer-outdater: [13656]: debug: drbd
> peer: dktest2debian
> Dec  5 14:42:11 dktest1debian drbd-peer-outdater: [13656]: debug: drbd
> resource: drbd2
> Dec  5 14:42:11 dktest1debian kernel: drbd2: State change failed:
> Refusing to be Primary without at least one UpToDate disk
> Dec  5 14:42:11 dktest1debian kernel: drbd2:   state = {
> cs:NetworkFailure st:Primary/Unknown ds:UpToDate/DUnknown r--- }
> Dec  5 14:42:11 dktest1debian kernel: drbd2:  wanted = {
> cs:NetworkFailure st:Primary/Unknown ds:Outdated/DUnknown r--- }
> Dec  5 14:42:11 dktest1debian kernel: drbd2: outdate-peer helper broken,
> returned 255
> Dec  5 14:42:11 dktest1debian kernel: drbd2: Forcing state change from
> bad state. Error would be: 'Refusing to be Primary while peer is not
> outdated'
> Dec  5 14:42:11 dktest1debian kernel: drbd2:  old = { cs:NetworkFailure
> st:Primary/Unknown ds:UpToDate/DUnknown r--- }
> Dec  5 14:42:11 dktest1debian kernel: drbd2:  new = { cs:Unconnected
> st:Primary/Unknown ds:UpToDate/DUnknown r--- }
> Dec  5 14:42:11 dktest1debian kernel: drbd2: conn( NetworkFailure ->
> Unconnected )
> Dec  5 14:42:11 dktest1debian kernel: drbd2: receiver terminated
> Dec  5 14:42:11 dktest1debian kernel: drbd2: receiver (re)started
> Dec  5 14:42:11 dktest1debian /usr/lib/heartbeat/dopd: [13640]: debug:
> Connecting channel
> Dec  5 14:42:11 dktest1debian /usr/lib/heartbeat/dopd: [13640]: debug:
> Client outdater (0x80508e0) connected
> Dec  5 14:42:11 dktest1debian /usr/lib/heartbeat/dopd: [13640]: debug:
> invoked: outdater
> Dec  5 14:42:11 dktest1debian kernel: drbd2: Forcing state change from
> bad state. Error would be: 'Refusing to be Primary while peer is not
> outdated'
> Dec  5 14:42:11 dktest1debian kernel: drbd2:  old = { cs:Unconnected
> st:Primary/Unknown ds:UpToDate/DUnknown r--- }
> Dec  5 14:42:11 dktest1debian kernel: drbd2:  new = { cs:WFConnection
> st:Primary/Unknown ds:UpToDate/DUnknown r--- }
> Dec  5 14:42:11 dktest1debian kernel: drbd2: conn( Unconnected ->
> WFConnection )
> Dec  5 14:42:11 dktest1debian /usr/lib/heartbeat/dopd: [13640]: debug:
> Processed 0 messages
> Dec  5 14:42:11 dktest1debian /usr/lib/heartbeat/dopd: [13640]: debug:
> Deleting outdater (0x80508e0) from mainloop
> Dec  5 14:42:11 dktest1debian /usr/lib/heartbeat/dopd: [13640]: debug:
> connection from client closed
>
> The secondary does not say anything  but:
> Dec  5 14:42:11 dktest2debian kernel: drbd2: PingAck did not arrive in
> time. Dec  5 14:42:11 dktest2debian kernel: drbd2: peer( Primary ->
> Unknown ) conn( Connected -> NetworkFailure ) pdsk( UpToDate -> DUnknown
> ) Dec  5 14:42:11 dktest2debian kernel: drbd2: asender terminated
> Dec  5 14:42:11 dktest2debian kernel: drbd2: short read expecting header
> on sock: r=-512
> Dec  5 14:42:11 dktest2debian kernel: drbd2: tl_clear()
> Dec  5 14:42:11 dktest2debian kernel: drbd2: Connection closed
> Dec  5 14:42:11 dktest2debian kernel: drbd2: Writing meta data super
> block now.
> Dec  5 14:42:11 dktest2debian kernel: drbd2: conn( NetworkFailure ->
> Unconnected )
> Dec  5 14:42:11 dktest2debian kernel: drbd2: receiver terminated
> Dec  5 14:42:11 dktest2debian kernel: drbd2: receiver (re)started
> Dec  5 14:42:11 dktest2debian kernel: drbd2: conn( Unconnected ->
> WFConnection )
>
> Regards
> Dominik
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user



-- 

: Rasto Levrinc                                   Tel +43-1-8178292-58 :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Vivenotgasse 48, 1120 Vienna, Austria           http://www.linbit.com :




More information about the drbd-user mailing list