[DRBD-user] RE: drbdmeta /dev/drbd0 v08 /dev/sda2 internal create-md'

Gokak, Arun Madhukar Arun.Gokak at in.unisys.com
Mon Mar 24 08:46:00 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.

Hello Gabriel,
	I think this problem can be solved, if you run 'drbddadm
create-md <resource name>' command before creating a file system on the
device being used (/dev/sda2).


Date: Thu, 20 Mar 2008 12:46:13 -0400
From: Gabriel Rosca <missnebun at gmail.com>
Subject: [DRBD-user] drbdmeta /dev/drbd0 v08 /dev/sda2 internal
	create-md' terminated with exit code 40
To: "drbd-user at lists.linbit.com" <drbd-user at lists.linbit.com>
Message-ID: <C4080D15.7AF%missnebun at gmail.com>
Content-Type: text/plain; charset="us-ascii"

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'
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 /


# 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
to choose a secret for auth !
  syncer { rate 10M; }
  on Demo2GenX.GenX.local {
    device /dev/drbd0;
    disk /dev/sda2;
    meta-disk internal;
  on DemoGenX.GenX.local {
    device /dev/drbd0;
    disk /dev/sdb;
    meta-disk internal;

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

Thank you 

-------------- next part --------------
An HTML attachment was scrubbed...


More information about the drbd-user mailing list