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

Robert Altnoeder robert.altnoeder at linbit.com
Tue May 8 13:28:38 CEST 2018


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

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

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


More information about the drbd-user mailing list