[DRBD-user] need discribtion and help

Mahmoud Alshinhab mahmoud.alshinhab at gmail.com
Wed May 23 17:12:04 CEST 2012

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


Dears Kindly help as I Can’t create the drbd device because of this
error message


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


global {
                usage-count yes;
}
Common {
                Syncer {
                rate 10M;
}
}
resource r0 {
                protocol C;
                on master {
                                device   /dev/drbd1;
                                disk        /dev/sdb1;
                                address 192.168.1.1;7789;
                                meta-disk internal;
}
                on slave{
                                device   /dev/drbd1;
                                disk        /dev/sdb1;
                                address 192.168.1.2;7789;
                                meta-disk internal;
}

}

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          38      305203+  83  Linux
/dev/sda2              39        2349    18563107+  83  Linux
/dev/sda3            2350        2610     2096482+  82  Linux swap / Solaris

Disk /dev/sdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         652     5237158+  83  Linux


[root at master ~]# drbdadm create-md r0
v08 Magic number not found
md_offset 5362843648
al_offset 5362810880
bm_offset 5362647040

Found ext3 filesystem which uses 5237156 kB
current configuration leaves usable 5236960 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/drbd1 v08 /dev/sdb1 internal create-md'
terminated with exit code 40
drbdadm aborting


-- 
Eng. Mahmoud Alshinhab
NOC System Engineer
RHCT -RedHat Certified Technician-
Fedora Ambassador
Wiki : https://fedoraproject.org/wiki/User:Tuxawy
mahmoud.alshinhab at gmail.com
tuxawy at fedoraproject.org



More information about the drbd-user mailing list