Albert
C.
Admin od wszystkiego
:)
Temat: DRBD
WitamUruchomiłem sobie miedzy dwoma serwerami drbd, ale mam dosc dziwny problem po restarcie serwera lub usługi drbd i ponownym polaczeniu mam:
1: cs:Connected st:Secondary/Secondary ds:UpToDate/UpToDate C r---
ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 oos:0
2: cs:Connected st:Secondary/Secondary ds:UpToDate/UpToDate C r---
ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 oos:0
dopiero jak dam drbdadm primary all to jest Primary/Secondary ale czy nie mozna tego uzyskac bezposrednio po restarcie uslugi lub serwera? ze powiedzmy serwer ha10 jest podstawowym.
Plik konfiguracyjny wyglada tak:
global {
usage-count yes;
}
common {
syncer { rate 100M; }
}
resource xen1 {
protocol C;
startup {
wfc-timeout 120; ## 2 min
degr-wfc-timeout 120; ## 2 minutes.
}
disk {
on-io-error detach;
}
net {
allow-two-primaries;
after-sb-0pri discard-zero-changes;
after-sb-1pri discard-secondary;
timeout 60;
connect-int 10;
ping-int 10;
max-buffers 2048;
max-epoch-size 2048;
}
syncer {
}
on ha10 {
address 10.10.10.10:7789;
device /dev/drbd1;
disk /dev/vol1/xen1-disk;
meta-disk /dev/vol1/meta[0];
#eta-disk internal;
}
on ha20 {
address 10.10.10.20:7789;
device /dev/drbd1;
disk /dev/vol1/xen1-disk;
meta-disk /dev/vol1/meta[0];
#meta-disk internal;
}
}
resource test-swap {
protocol C;
startup {
wfc-timeout 120; ## 2 min
degr-wfc-timeout 120; ## 2 minutes.
}
disk {
on-io-error detach;
}
net {
allow-two-primaries;
after-sb-0pri discard-zero-changes;
after-sb-1pri discard-secondary;
timeout 60;
connect-int 10;
ping-int 10;
max-buffers 2048;
max-epoch-size 2048;
}
syncer {
}
on ha10 {
address 10.10.10.10:7790;
device /dev/drbd2;
disk /dev/vol1/test-swap;
meta-disk /dev/vol1/meta[1];
}
on ha20 {
address 10.10.10.20:7790;
device /dev/drbd2;
disk /dev/vol1/test-swap;
meta-disk /dev/vol1/meta[1];
}
}
AlbertAlbert Czarnecki edytował(a) ten post dnia 19.09.08 o godzinie 22:27