Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 24.5.2012 15:23, Florian Haas wrote: > On Thu, May 24, 2012 at 1:25 PM, Tero Mäntyvaara > <termant at gmail.com> wrote: >> I was reading document >> https://help.ubuntu.com/10.04/serverguide/drbd.html. Would the >> following configuration be correct with two disks? >> >> |/etc/drbd.conf|: resource r0 { volume 0 { device /dev/drbd1; >> disk /dev/sdb1; meta-disk internal; } volume 1 { device >> /dev/drbd2; disk /dev/sdb2; meta-disk internal; } >> >> on drbd01 { address 192.168.0.1:7788; } on drbd02 { address >> 192.168.0.2:7788; } } > > That looks fine; take a look at > http://www.drbd.org/users-guide/s-configure-resource.html#s-drbdconf-example > > in the example titled "Multi-volume DRBD resource configuration". > > Do recall, however, that multiple volumes per resource are a DRBD > 8.4 feature. So if you're actually trying to do this on Ubuntu > lucid, you'll have to make sure you install 8.4 before attempting > this. > > Cheers, Florian > So if I don't want to or can't install DRBD 8.4 could I use two resources to get around this multi-volume limitation in 8.3: /etc/drbd.conf|: resource r0 { protocol C; startup { wfc-timeout 15; degr-wfc-timeout 60; } net { cram-hmac-alg sha1; shared-secret "secret"; } on drbd01 { device /dev/drbd0; disk /dev/sdb1; address 192.168.0.1:7788; meta-disk internal; } on drbd02 { device /dev/drbd0; disk /dev/sdb1; address 192.168.0.2:7788; meta-disk internal; } } resource r1 { protocol C; startup { wfc-timeout 15; degr-wfc-timeout 60; } net { cram-hmac-alg sha1; shared-secret "secret"; } on drbd01 { device /dev/drbd1; disk /dev/sdb2; address 192.168.0.1:7788; meta-disk internal; } on drbd02 { device /dev/drbd1; disk /dev/sdb2; address 192.168.0.2:7788; meta-disk internal; } } Greetings, Tero Mäntyvaara -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPvjhjAAoJEHIK6cOQy5X4IH0H/RzZ9Zr0+cCFUcI4u9U+76/6 0mHf8QiS0uR981LL0F+2uDJX4ShMJ3WqNHZMvrgHxyZ+sb4A85TZWuBNR+sWj/Dy JKkmwvMnyl3JWaWqpsca5JX1yDH33HwcbDvJo4mQv/1q5odRzGV5BbGOVzM4zIWE 7MWLu0gT6fWPvBVxX/HLjUgSPY5kZcvLgZ6/qVZUksSrG8C/TWqQIzjeoyxTDQRj MUd1K1v3B1B23mcLZFhYLyErq43NTw2D3to9WZKLhMFmBi4Yne6Gu54ocxkEKgTy juIVd4c0DY3wJ/ZMSk1uTymQCLl610KJRzFoyHq7IVvH0gcXLAobPt9ObvoQV/A= =2T+d -----END PGP SIGNATURE-----