[DRBD-user] 'resource' not defined in your config (for this host).

Trevor Hemsley themsley at voiceflex.com
Tue Aug 12 13:16:32 CEST 2014

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


On 12/08/14 11:34, Tim Smith wrote:
> Hi,
>
> I'm struggling with the totally incompressible and badly worded error messages in DRBD !
>
> 8.4.4-1ubuntu1 (as bundled with Ubuntu 14.04LTS)
>
> I have tried a million different styles of config file writing and none of them work !  All of them generate the stupid error message above that doesn't tell me anything.
>
> The nearest thing I've found to an answer on Google is a smug post in 2009 from someone who told someone else "Well, "resource" is not defined in your config, but "r0" is. Try that 
> instead :)"  .... well that's a silly answer that doesn't tell me anything either !

Yes, it does. it tells you exactly what the problem is. You have
"resource r0 {" in your config so your resource is called r0. If you
then use "drbdadm create-md resource" it will correctly tell you that
"resource" is not defined. What you really wanted was "drbdadm create-md r0"

>
> So please, could someone tell me what I should be doing to make this work.
>
> And yes, uname -n does return "XXX-vm02-bk01" and "XXX-vm02-bk01".  
>
> Thank you !
>
> Tim
>
>
> $ sudo drbdadm create-md resource
> 'resource' not defined in your config (for this host).
>
> $ cat /etc/drbd.d/global_common.conf
> global {
>         usage-count no;
> }
>
> common {
>         net {
>
>                 protocol C;
>                 cram-hmac-alg "sha512";
>                 shared-secret "none_of_your_business";
>         }
> }
>
>
> $ cat r0.res 
> resource r0 {
>
> device minor 1;
> disk /dev/raidVolgrp/raidLv;
> meta-disk internal;
>
> floating 10.170.177.75:7789;   # Note that I have also tried with these two lines
> floating 10.170.177.77:7789;   # disabled, and the below two stanzas enabled
>
> #on XXX-vm02-bk01 {
> #       address 10.170.177.75:7789;     # Note that I have also tried with
> #        device /dev/drbd1;              # the device, disk and meta disk enabled here
> #        disk /dev/raidVolgrp/raidLv;    # and disabled in the general section at the top
> #        meta-disk internal;
> #}
>
> #on XXX-vm01-bk01 {
> #       address 10.170.177.77:7789;
> #        device /dev/drbd1;
> #        disk /dev/raidVolgrp/raidLv;
> #        meta-disk internal;
> #}
>
> }
>
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
>
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________




More information about the drbd-user mailing list