Hello DRBD Users,<br><br>I have a problem configuring DRBD. According the manual I use the following commands:<br><b><br>[root@app1 drbd.d]# drbdadm create-md r0</b><br>md_offset 8480256000<br>al_offset 8480223232<br>bm_offset 8479961088<br>
<br>Found LVM2 physical volume signature<br> 8257536 kB data area apparently used<br> 8281212 kB left usable by current configuration<br><br>Even though it looks like this would place the new meta data into<br>unused space, you still need to confirm, as this is only a guess.<br>
<br>Do you want to proceed?<br>[need to type 'yes' to confirm] yes<br><br>Writing meta data...<br>initializing activity log<br>NOT initialized bitmap<br>New drbd meta data block successfully created.<br><br><b>[root@app1 drbd.d]# drbdadm attach r0</b><br>
0: Failure: (104) Can not open backing device.<br>Command 'drbdsetup 0 disk /dev/sda2 /dev/sda2 internal --set-defaults --create-device' terminated with exit code 10<br><br>As you can see I get this error: "<b>0: Failure: (104) Can not open backing device.</b>" and can't figure out what is going on. This is a brand new installation.<br>
<br>My configuration is:<br><b>DRBD</b><br>-------------------------------------------------------<br># drbd.conf<br>include "drbd.d/global_common.conf";<br>include "drbd.d/*.res";<br>-------------------------------------------------------<br>
-------------------------------------------------------<br># r0.res<br>global {<br> usage-count yes;<br>}<br>common {<br> protocol C;<br>}<br>resource r0 {<br> on app1 {<br> device /dev/drbd0;<br>
disk /dev/sda2;<br> address <a href="http://192.168.1.106:7789">192.168.1.106:7789</a>;<br> meta-disk internal;<br> }<br> on app2 {<br> device /dev/drbd0;<br>
disk /dev/sda2;<br> address <a href="http://192.168.1.107:7789">192.168.1.107:7789</a>;<br> meta-disk internal;<br> }<br>}<br>----------------------------------------------------------------------<br>
<b>SYSTEM</b><br>RHEL5.6<br>Linux app1 2.6.18-238.el5xen #1 SMP Sun Dec 19 15:01:34 EST 2010 i686 i686 i386 GNU/Linux<br><br><b>[root@app1 drbd.d]# fdisk -l</b><br><br>Disk /dev/sda: 8589 MB, 8589934592 bytes<br>255 heads, 63 sectors/track, 1044 cylinders<br>
Units = cylinders of 16065 * 512 = 8225280 bytes<br><br> Device Boot Start End Blocks Id System<br>/dev/sda1 * 1 13 104391 83 Linux<br>/dev/sda2 14 1044 8281507+ 8e Linux LVM<br>
<br><b>[root@app1 drbd.d]# ls -la /dev/drbd0</b><br>brw-r----- 1 root disk 147, 0 Mar 27 20:38 /dev/drbd0<br><br>-------------------------------------------------------------------------------------<br><br>I'm really stuck here. Any help would be appreciated.<br>
<br>Best Regards,<br>Mati<br><br><br><br><br>