[DRBD-user] Preinstalling single host for later primary-primary setup

Tobias Crefeld tc at cataneo.eu
Mon Dec 19 18:23:49 CET 2011

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


I just started playing around with drbd, so sorry if I'm still not
familiar with concepts and tools of drbd.

After installation of the first pair of servers in primary-primary-mode
it worked immediately without problems. I now want to set up another pair of
servers. OS is Debian-Lenny (Proxmox).

But there two differences:
 - local storage for drbd-device is md (= Linux soft-RAID) with RAID-0
 - Initially there is only one server available; the other should be
added if the first one is running.


Meanwhile there is a device /dev/drbd1 and "drbdadm up r1" can be run
without error messages, but the device isn't available for tools like
parted or pvcreate:

pve-153:~# parted /dev/drbd1
Error: Error opening /dev/drbd1: Falscher Medien-Typ
 ( = incorrect media type ?)

pve-153:~# pvcreate /dev/drbd1
  Device /dev/drbd1 not found (or ignored by filtering).

drbd-version is 8.3.10

/etc/drbd.conf:

global { usage-count no; }
common { syncer { rate 30M; } }
resource r1 {
        protocol C;
        startup {
                wfc-timeout  15;
                degr-wfc-timeout 60;
                become-primary-on both;
        }
        net {
                cram-hmac-alg sha1;
                shared-secret "XYZ";
                allow-two-primaries;
                after-sb-0pri discard-zero-changes;
                after-sb-1pri discard-secondary;
                after-sb-2pri disconnect;
        }
        on pve-153 {
                device /dev/drbd1;
                disk /dev/md2;
                meta-disk internal;
                address 192.168.31.10:7788;
        }
        on pve-154 {
                device /dev/drbd1;
                disk /dev/md2;
                meta-disk internal;
                address 192.168.31.9:7788;
        }
}
# fini

pve-153:~# cat /proc/drbd
version: 8.3.10 (api:88/proto:86-96)
GIT-hash: 5c0b0469666682443d4785d90a2c603378f9017b build by phil at fat-tyre, 2011-01-28 12:17:35

 1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----s
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:405990004


TIA,
 Tobias.



More information about the drbd-user mailing list