[DRBD-user] 'drbdmeta 1 v08 /dev/sdb internal create-md' terminated with exit code 40

AJ NOURI ajn.bin at gmail.com
Tue Aug 4 06:49:06 CEST 2015

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


I am confused between the official docs on
http://drbd.linbit.com/docs/about/  and some drbd tutorials on ubuntu wiki
concerning the step  "Preparing your lower-level storage".

Should we partition the storage and format it? Looks like we shouldn't
format it, to avoid "create-md exit code 40, drbd will take care of that.
Then should we mount it on both devices?

I am suspecting most errors at this stage of preparing the storage.

On node2 (primary) everything works fine (no error messages):

> sudo drbdadm create-md r0
> sudo service drbd start
> sudo drbdadm -- --overwrite-data-of-peer primary all
> sudo drbdadm up r0


and detects itself as the primary node:

ajn at node2:~$
> * cat /proc/drbd*version: 8.4.3 (api:1/proto:86-101)
> srcversion: F97798065516C94BE0F27DC
>  1: cs:Connected ro:Primary/Secondary ds:UpToDate/Diskless C r-----
>     ns:0 nr:0 dw:33504 dr:1637 al:9 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f
> oos:1048508
> ajn at node2:~$



But on node2, I am stuck with "
*sudo drbdadm create-md r0*
*"*

ajn at node1:~$ cat /proc/drbd
> version: 8.4.3 (api:1/proto:86-101)
> srcversion: F97798065516C94BE0F27DC
>  1: cs:Connected ro:Secondary/Primary ds:Diskless/UpToDate C r-----
>     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
> ajn at node1:~$


Though successfully detects itself as secondary:


> *sudo drbdadm create-md r0*[sudo] password for ajn:
> Writing meta data...
> md_offset 1073737728
> al_offset 1073704960
> bm_offset 1073672192
> Found ext3 filesystem
>      1048576 kB data area apparently used
>      1048508 kB left usable by current configuration
> Device size would be truncated, which
> would corrupt data and result in
> 'access beyond end of device' errors.
> You need to either
>    * use external meta data (recommended)
>    * shrink that filesystem first
>    * zero out the device (destroy the filesystem)
> Operation refused.
> Command 'drbdmeta 1 v08 /dev/sdb internal create-md' terminated with exit
> code 40
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20150804/c8d84a15/attachment.htm>


More information about the drbd-user mailing list