[DRBD-user] drbd attach failure - (104) Can not open backing device

Mateusz Kalisiak mk.spare999 at gmail.com
Sun Mar 27 20:56:28 CEST 2011

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


Hello DRBD Users,

I have a problem configuring DRBD. According the manual I use the following
commands:
*
[root at app1 drbd.d]# drbdadm create-md r0*
md_offset 8480256000
al_offset 8480223232
bm_offset 8479961088

Found LVM2 physical volume signature
     8257536 kB data area apparently used
     8281212 kB left usable by current configuration

Even though it looks like this would place the new meta data into
unused space, you still need to confirm, as this is only a guess.

Do you want to proceed?
[need to type 'yes' to confirm] yes

Writing meta data...
initializing activity log
NOT initialized bitmap
New drbd meta data block successfully created.

*[root at app1 drbd.d]# drbdadm attach r0*
0: Failure: (104) Can not open backing device.
Command 'drbdsetup 0 disk /dev/sda2 /dev/sda2 internal --set-defaults
--create-device' terminated with exit code 10

As you can see I get this error: "*0: Failure: (104) Can not open backing
device.*" and can't figure out what is going on. This is a brand new
installation.

My configuration is:
*DRBD*
-------------------------------------------------------
# drbd.conf
include "drbd.d/global_common.conf";
include "drbd.d/*.res";
-------------------------------------------------------
-------------------------------------------------------
# r0.res
global {
        usage-count yes;
}
common {
        protocol C;
}
resource r0 {
        on app1 {
                device      /dev/drbd0;
                disk        /dev/sda2;
                address     192.168.1.106:7789;
                meta-disk   internal;
        }
        on app2 {
                device      /dev/drbd0;
                disk        /dev/sda2;
                address     192.168.1.107:7789;
                meta-disk   internal;
        }
}
----------------------------------------------------------------------
*SYSTEM*
RHEL5.6
Linux app1 2.6.18-238.el5xen #1 SMP Sun Dec 19 15:01:34 EST 2010 i686 i686
i386 GNU/Linux

*[root at app1 drbd.d]# fdisk -l*

Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        1044     8281507+  8e  Linux LVM

*[root at app1 drbd.d]# ls -la /dev/drbd0*
brw-r----- 1 root disk 147, 0 Mar 27 20:38 /dev/drbd0

-------------------------------------------------------------------------------------

I'm really stuck here. Any help would be appreciated.

Best Regards,
Mati
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20110327/6d15bd5d/attachment.htm>


More information about the drbd-user mailing list