Hi Robert
Thanks for the explanation
I have now follow your recommendation
But get the following error:
[root@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@san-a ~]# uname -n
san-a.energy.dk
[root@san-a ~]# hostname
san-a.energy.dk
[root@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@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@san-a ~]# drbdadm create-md r1001.res 'r1001.res' not defined in your
config (for this host).
[root@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:
[email protected]<mailto:[email protected]>
<[email protected]<mailto:[email protected]>>
På vegne af Robert Altnoeder
Sendt: 8. maj 2018 13:29
Til: [email protected]<mailto:[email protected]>
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
[email protected]<mailto:[email protected]>
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
[email protected]<mailto:[email protected]>
http://lists.linbit.com/mailman/listinfo/drbd-user
_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user