[DRBD-user] problem with patch (drbd: switch configuration interface from connector to genetlin) on rhel6 platform

Lars Ellenberg lars.ellenberg at linbit.com
Fri Sep 9 09:44:17 CEST 2011


On Thu, Sep 08, 2011 at 03:05:30PM -0700, Brian Chrisman wrote:
> this is 8.4.0... when I run 8.3.11, no problem.  I noticed the kernel
> response: 'required attribute missing' was added in this patch on
> 9/1/2011 https://lkml.org/lkml/2011/9/1/152
> 
> my execution and resource file
> http://pastebin.com/C6g9NxaF
> 
> If there's a bug tracker where I should report this, would be glad to.

Best to report these things on drbd-user at lists.linbit.com.

I inline your paste here, so I can comment it.
There is a simple workaround:
specify at least one net-option explicitly,
see below.

> [root at test07 ~]# drbdadm -- --force create-md r0
> md_offset 1024454656
> al_offset 1024421888
> bm_offset 1024389120
>  
> Found some data
>  
>  ==> This might destroy existing data! <==
>  
> Do you want to proceed?
> *** confirmation forced via --force option ***
> You want me to create a v08 style flexible-size internal meta data block.
> There appears to be a v08 flexible-size internal meta data block
> already in place on /dev/sda3 at byte offset 1024454656
> Do you really want to overwrite the existing v08 meta-data?
> *** confirmation forced via --force option ***
> Writing meta data...
> initializing activity log
> NOT initializing bitmap
> New drbd meta data block successfully created.
> [root at test07 ~]# modprobe drbd
> [root at test07 ~]# drbdadm up r0
> r0: Failure: (126) UnknownMandatoryTag
> additional info from kernel:
> required attribute missing
> Command 'drbdsetup connect r0 ipv4:192.168.98.107:7789
> ipv4:192.168.98.108:7789' terminated with exit code 10
> [root at test07 ~]# cat /proc/drbd
> version: 8.4.0 (api:1/proto:86-100)
> GIT-hash: 28753f559ab51b549d16bcf487fe625d5919c49c build by
> build at buildvm-84c91997-2ba9-4d88-98e1-9e12780a0946, 2011-09-08 13:48:13
>  
>  1: cs:StandAlone ro:Secondary/Unknown ds:Inconsistent/DUnknown   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:1000380
> [root at test07 ~]#
>  
>  
> resource r0 {
>   device    /dev/drbd1;
>   disk      /dev/sda3;
>   meta-disk internal;

Just add
	protocol C;

In fact, setting any net option would do.
You can put that in the global section as well.

We fixed it meanwhile to work also without any such options,
but for now, you need this simple workaround.

>   on test07.sm.scalecomputing.com {
>     address   192.168.98.107:7789;
>   }
>   on test08.sm.scalecomputing.com {
>     address   192.168.98.108:7789;
>   }
> }

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.


More information about the drbd-user mailing list