[DRBD-user] size-problem

Michael Turner michael_turner at web.de
Wed Feb 25 13:20:47 CET 2009

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


Hello, I am new to DRBD and I tried to configure and run DRBD 8.2.7 on my system, but it didn't really work.
When I try to create the metadata: drbdadm create-md drbd-resource-0, i get this error:

-----

md_offset 1028059136
al_offset 1028026368
bm_offset 1027993600

Found ext3 filesystem which uses 22025040 kB
current configuration leaves usable 1003900 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/md1 internal create-md' terminated with exit code 40
drbdadm create-md drbd-resource-0: exited with code 40

-----------------------------

I run openSUSE 11 on both PCs. 

fdisk of /dev/sda:

Disk /dev/sda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa0daa0da

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          13      104391   fd  Linux raid autodetect
/dev/sda2              14         275     2104515   82  Linux swap / Solaris
/dev/sda3             276         400     1004062+  83  Linux
/dev/sda4             668        4998    34788757+   f  W95 Ext'd (LBA)
/dev/sda5             668        2626    15735636   fd  Linux raid autodetect
/dev/sda6            2627        4998    19053058+  fd  Linux raid autodetect

---------------------------------------------

fdisk of /dev/sdb:

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00023fa6

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      104391   fd  Linux raid autodetect
/dev/sdb2              14         275     2104515   82  Linux swap / Solaris
/dev/sdb3             276         400     1004062+  83  Linux
/dev/sdb4             668        4998    34788757+   f  W95 Ext'd (LBA)
/dev/sdb5             668        2626    15735636   fd  Linux raid autodetect
/dev/sdb6            2627        4998    19053058+  fd  Linux raid autodetect

---------------------------------------

/etc/drbd.conf:

resource drbd-resource-0 {

        protocol C;

handlers {
        pri-on-incon-degr "halt -f";
}
        disk {
                on-io-error detach;
        }

#startup {
#       degr-wfc-timeout 120;
#}

#net {
#       timeout 60;
#       connect-int 10;
#       ping-int 10;
#       max-buffers 2048;
#       max-epoch-size 2048;
#}


syncer {
        rate 20M;
#       group 1;
#       al-extents 257
}

on PC1 {
        device /dev/drbd0;
        disk /dev/md1;
        address 10.0.0.210:7789;
        meta-disk internal;
}

on PC2 {
        device /dev/drbd0;
        disk /dev/md1;
        address 10.0.0.211:7789;
        meta-disk internal;
}


-----------------------------------------

I tried different kinds of configurations in the drbd.conf. But everytime I received the same error.
Does anyone know how to fix this problem?


Thanks

Michael
____________________________________________________________________
Psssst! Schon vom neuen WEB.DE MultiMessenger gehört? 
Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123




More information about the drbd-user mailing list