[DRBD-user] 8.0.5: drbdmeta failed but did something?

Leroy van Logchem leroy.vanlogchem at wldelft.nl
Tue Aug 28 16:34:27 CEST 2007

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


Is this expected or is something bad happening?

[root]# drbdmeta /dev/drbd0 v08 /dev/sda3 0 wipe-md
Wiping meta data...
ioctl(,BLKFLSBUF,) failed: Bad address
operation failed

But when I repeat the same command:

[root]# drbdmeta /dev/drbd0 v08 /dev/sda3 0 wipe-md
v08 Magic number not found
There apears to be no drbd meta data to wipe out?

The same thing happens for the create-md:

[root]# drbdadm create-md drbd0
v08 Magic number not found
v07 Magic number not found
About to create a new drbd meta data block
on /dev/sda3.

 ==> This might destroy existing data! <==

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

Creating meta data...
initialising activity log
NOT initialized bitmap (131036 KB)
ioctl(,BLKFLSBUF,) failed: Bad address
operation failed

Then I just repeat the command:

[root]# drbdadm create-md drbd0

Valid meta-data already in place, recreate new?
[need to type 'yes' to confirm]

Operation cancelled.


Details:
- kernel 2.6.18-8.1.8.el5 #1 SMP Tue Jul 10 06:39:17 EDT 2007 x86_64 
x86_64 x86_64 GNU/Linux
- drbd version: 8.0.5 (api:86/proto:86) SVN Revision: 3011
- partition table: sfdisk -l -uM

Disk /dev/sda: 1398086 cylinders, 64 heads, 32 sectors/track
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System
/dev/sda1   *     0+ 19073  19074-  19531760   83  Linux
/dev/sda2     19074  26703   7630    7813120   82  Linux swap / Solaris
/dev/sda3     26704  26895    192     196608   83  Linux
/dev/sda4     26896  1398085  1371190  1404098560   83  Linux

Disk /dev/sdb: 509261 cylinders, 64 heads, 32 sectors/track
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System
/dev/sdb1         0+   191    192-    196592   83  Linux
/dev/sdb2       192  509260  509069  521286656   83  Linux
/dev/sdb3         0      -      0          0    0  Empty
/dev/sdb4         0      -      0          0    0  Empty


Resource configured like this:
  device           /dev/drbd0;
  disk             /dev/sda4;
  meta-disk    /dev/sda3 [0];


-- 
Leroy




More information about the drbd-user mailing list