<HTML>
<HEAD>
<TITLE>drbdmeta /dev/drbd0 v08 /dev/sda2 internal create-md' terminated with exit code 40</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi guys. I try to configure drbd and I get this error <BR>
<BR>
<BR>
drbdadm create-md repdata<BR>
v08 Magic number not found<BR>
md_offset 319165534208<BR>
al_offset 319165501440<BR>
bm_offset 319155761152<BR>
<BR>
Found ext3 filesystem which uses 311685096 kB<BR>
current configuration leaves usable 311675548 kB<BR>
<BR>
Device size would be truncated, which<BR>
would corrupt data and result in<BR>
'access beyond end of device' errors.<BR>
You need to either<BR>
* use external meta data (recommended)<BR>
* shrink that filesystem first<BR>
* zero out the device (destroy the filesystem)<BR>
Operation refused.<BR>
<BR>
Command 'drbdmeta /dev/drbd0 v08 /dev/sda2 internal create-md' terminated with exit code 40<BR>
drbdadm aborting<BR>
<BR>
<BR>
fdisk -l<BR>
<BR>
Disk /dev/sda: 320.0 GB, 320072933376 bytes<BR>
255 heads, 63 sectors/track, 38913 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 38816 311685097+ 83 Linux<BR>
/dev/sda3 38817 38913 779152+ 82 Linux swap / Solaris<BR>
<BR>
<BR>
drbd.conf<BR>
<BR>
#<BR>
# please have a a look at the example configuration file in<BR>
# /usr/share/doc/drbd/drbd.conf<BR>
#<BR>
global { usage-count no; }<BR>
resource repdata {<BR>
protocol C;<BR>
startup { wfc-timeout 0; degr-wfc-timeout 120; }<BR>
disk { on-io-error detach; } # or panic, ...<BR>
net { cram-hmac-alg "sha1"; shared-secret "Cent0Sru!3z"; } # don't forget to choose a secret for auth !<BR>
syncer { rate 10M; }<BR>
on Demo2GenX.GenX.local {<BR>
device /dev/drbd0;<BR>
disk /dev/sda2;<BR>
address 172.16.160.44:7788;<BR>
meta-disk internal;<BR>
}<BR>
on DemoGenX.GenX.local {<BR>
device /dev/drbd0;<BR>
disk /dev/sdb;<BR>
address 172.16.160.24:7788;<BR>
meta-disk internal;<BR>
}<BR>
}<BR>
<BR>
<BR>
I am new with this and I will appreciate a idiot proved howto or explication :))<BR>
<BR>
<BR>
<BR>
Thank you <BR>
<BR>
Gabe</SPAN></FONT></FONT>
</BODY>
</HTML>