[DRBD-user] Trying to create my first resource, but

Henning Svane hsv at energy.dk
Wed May 16 18:09:40 CEST 2018


Hi Robert



Thanks for the explanation



I have now follow your recommendation

But get the following error:

[root at esos-b drbd.d]# drbdadm create-md r1001.res 'r1001.res' not defined in your config (for this host).



I have tried to search on the error and it says that hostname should match, but even after I think I have done that, I still get this error, so what do I miss or have misunderstand.



[root at san-a ~]# uname -n

san-a.energy.dk

[root at san-a ~]# hostname

san-a.energy.dk

[root at san-a ~]# nslookup san-a.energy.dk

Server:    192.168.11.11

Address 1: 192.168.11.11 dc1.energy.local



Name:      san-a.energy.dk

Address 1: 192.168.11.211 san-a.energy.dk [root at san-a ~]# nslookup san-b.energy.dk

Server:    192.168.11.11

Address 1: 192.168.11.11 dc1.energy.local



Name:      san-b.energy.dk

Address 1: 192.168.11.212 san-b.energy.dk



[root at san-a ~]# drbdadm create-md r1001.res 'r1001.res' not defined in your config (for this host).

[root at san-a ~]# cat /etc/drbd.d/r1001.res resource r1001 {

  net {

    protocol C;

    allow-two-primaries yes;

  }

  device    /dev/drbd1001;

  disk      /dev/sdbp1;

  meta-disk internal;

  on san-a.energy.dk {

    address   192.168.254.211:7789;

  }

  on san-b.energy.dk {

    address   192.168.254.212:7789;

  }

}



Regards

Henning

-----Oprindelig meddelelse-----

Fra: drbd-user-bounces at lists.linbit.com<mailto:drbd-user-bounces at lists.linbit.com> <drbd-user-bounces at lists.linbit.com<mailto:drbd-user-bounces at lists.linbit.com>> På vegne af Robert Altnoeder

Sendt: 8. maj 2018 13:29

Til: drbd-user at lists.linbit.com<mailto:drbd-user at lists.linbit.com>

Emne: Re: [DRBD-user] Trying to create my first resource, but



On 05/08/2018 11:37 AM, Henning Svane wrote:

>

> Hi

>

> I run this command:

>

> drbdadm create-md r0a

>

> drbdadm attach r0a (I stop the execution after create-md)

>

> drbdadm syncer r0a

>

> drbdadm connect r0a

>



A typical command sequence is:

drbdadm create-md resource

drbdadm adjust resource

drbdadm primary --force resource



> But get this error:

>

> drbd.d/r0a.res:6: no minor given nor device name contains a minor

> number

>

> All 8 resource files are built over the same template only the part in

> read has been changed

>

> I was surprise that "create md" continue with the next resource files

> I thought

>



The text following /dev/drbd must be parsable as a valid minor number, e.g., /dev/drbd1. An alternative is to use "device minor 1;", which will also create /dev/drbd1 when the resource is started.



Valid minor numbers are in the range from 0 to 1048575 (inclusive).



In other words, /dev/drbd205 works, but /dev/drbd205a, /dev/drbda205, /dev/drbd20a5, etc. do not, because the part following /dev/drbd is not parsable as a number.



Best regards,

--

Robert Altnoeder

+43 1 817 82 92 0

robert.altnoeder at linbit.com<mailto:robert.altnoeder at linbit.com>



LINBIT | Keeping The Digital World Running DRBD - Corosync - Pacemaker f / t / in / g+



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

_______________________________________________

drbd-user mailing list

drbd-user at lists.linbit.com<mailto:drbd-user at lists.linbit.com>
http://lists.linbit.com/mailman/listinfo/drbd-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20180516/3351af72/attachment-0001.htm>


More information about the drbd-user mailing list