Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DRBD: Users

How to create WFConnection resource with one DRBD host?

 

 

DRBD users RSS feed   Index | Next | Previous | View Threaded


dbarker at visioncomm

Apr 7, 2012, 5:43 AM

Post #1 of 3 (454 views)
Permalink
How to create WFConnection resource with one DRBD host?

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
(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

What did I miss?



_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


florian at hastexo

Apr 7, 2012, 5:52 AM

Post #2 of 3 (437 views)
Permalink
Re: How to create WFConnection resource with one DRBD host? [In reply to]

On Sat, Apr 7, 2012 at 2:43 PM, Dan Barker <dbarker [at] visioncomm> 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
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


dbarker at visioncomm

Apr 7, 2012, 7:58 AM

Post #3 of 3 (433 views)
Permalink
Re: How to create WFConnection resource with one DRBD host? [In reply to]

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, 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]
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> 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

_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user

DRBD users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.