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

Dirk Bonenkamp - ProActive dirk at proactive.nl
Tue Aug 12 13:08:05 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.


Hi Tim,

The error message is perfectly clear.

Try  sudo drbdadm create-md r0

You've defined the resource as r0, so tell drdb to create r0...

Dirk


Tim Smith schreef op 12-8-2014 12:34:
> 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 !
>
> 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

-- 
ProActive Software <http://www.proactive.nl>

*T* 	023 - 5422299
*W* 	www.proactive.nl <http://www.proactive.nl>


LinkedIn <https://www.linkedin.com/in/dirkbonenkamp> 	Twitter
<https://twitter.com/ProActive_nl> 	YouTube
<http://www.youtube.com/user/ProActiveSoftware>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20140812/3809100f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: e-mail-signature-test.gif
Type: image/gif
Size: 4405 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20140812/3809100f/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkedin_ico.png
Type: image/png
Size: 53880 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20140812/3809100f/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twitter_ico.png
Type: image/png
Size: 53339 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20140812/3809100f/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: youtube_ico.png
Type: image/png
Size: 55819 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20140812/3809100f/attachment-0002.png>


More information about the drbd-user mailing list