[DRBD-user] How to create WFConnection resource with one DRBD host?

Dan Barker dbarker at visioncomm.net
Sat Apr 7 16:58:41 CEST 2012

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


Thanks!

# drbdadm primary --force r0
# cat /proc/drbd
version: 8.4.1 (api:1/proto:86-100)
GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by root at localhost.localdomain, 2012-04-04 17:07:17
 0: cs:WFConnection ro:Primary/Unknown ds:UpToDate/DUnknown C r----s
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:78148320


-----Original Message-----
From: Florian Haas [mailto:florian at hastexo.com] 
Sent: Saturday, April 07, 2012 8:52 AM
To: Dan Barker
Cc: drbd List
Subject: Re: [DRBD-user] How to create WFConnection resource with one DRBD host?

On Sat, Apr 7, 2012 at 2:43 PM, Dan Barker <dbarker at visioncomm.net> wrote:
> I need to test that DRBD will peacefully cohabit with Oracle VM. I 
> want to build a single-node DRBD array and need my resource in 
> WFConnection Primary/unknown Uptodate/DUnknown.
>
> Otherwise I need two drbds (I can do that, but it's not germane to 
> this test).
>
> I did a create-md (successful) and a drbdadm new-current-uuid  minor-0

Why?

drbdadm primary --force r0 would have done just fine. I also seem to recall that the new-current-uuid trick only works when the peers are connected, but at any rate, that's a moot point here. Just force the single node to be primary, and you should be fine.

> (failed):
>
> [  377.048406] d-con r0: conn( WFConnection -> Disconnecting ) [  
> 377.048416] d-con r0: Discarding network configuration.
> [  377.048559] d-con r0: Connection closed [  377.048561] d-con r0: 
> conn( Disconnecting -> StandAlone ) [  377.048563] d-con r0: receiver 
> terminated [  377.048576] d-con r0: Terminating receiver thread [  
> 377.048594] block drbd0: disk( Inconsistent -> Failed ) [  377.057027] 
> block drbd0: disk( Failed -> Diskless ) [  377.057132] block drbd0: 
> drbd_bm_resize called with capacity == 0 [  377.057229] d-con r0: 
> Terminating worker thread
>
> 8.4.1

Arguably that's not really graceful failure; not sure if that's intended. I don't use 8.4 at this point, so I may have missed something.

Florian

--
Need help with High Availability?
http://www.hastexo.com/now




More information about the drbd-user mailing list