Wojciech Ziniewicz pisze:
Taki mam status po uruchomieniu drbd na dwoch serwerach, czy to jest prawidlowe? Jak uzyskac zeby serwera ha10 byl zawsze tym podstawowym? Narazie samo drbd bez heartbeatW dniu 22 września 2008 15:10 użytkownik Albert <forall@stalowka.info> napisał:Witam Ktoś korzysta z rozwiązania jak w temacie? Jak się to sprawdza w produkcji:)?Wzorowo.
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 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]; } }