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

Gabriel Rosca missnebun at gmail.com
Thu Mar 20 17:46:13 CET 2008

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


Hi guys. I try to configure drbd and I get this error


drbdadm create-md repdata
v08 Magic number not found
md_offset 319165534208
al_offset 319165501440
bm_offset 319155761152

Found ext3 filesystem which uses 311685096 kB
current configuration leaves usable 311675548 kB

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 /dev/drbd0 v08 /dev/sda2 internal create-md' terminated
with exit code 40
drbdadm aborting


 fdisk  -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 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       38816   311685097+  83  Linux
/dev/sda3           38817       38913      779152+  82  Linux swap / Solaris


drbd.conf

#
# please have a a look at the example configuration file in
# /usr/share/doc/drbd/drbd.conf
#
global { usage-count no; }
resource repdata {
  protocol C;
  startup { wfc-timeout 0; degr-wfc-timeout     120; }
  disk { on-io-error detach; } # or panic, ...
  net {  cram-hmac-alg "sha1"; shared-secret "Cent0Sru!3z"; } # don't forget
to choose a secret for auth !
  syncer { rate 10M; }
  on Demo2GenX.GenX.local {
    device /dev/drbd0;
    disk /dev/sda2;
    address 172.16.160.44:7788;
    meta-disk internal;
  }
  on DemoGenX.GenX.local {
    device /dev/drbd0;
    disk /dev/sdb;
    address 172.16.160.24:7788;
    meta-disk internal;
  }
}


I am new with this and I will appreciate a idiot proved  howto or
explication :))



Thank you 

Gabe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20080320/127ec5c4/attachment.htm>


More information about the drbd-user mailing list