WFConnection /StandAlone Secondary/Unknown


Untuk memcoba di pilot project saya mencoba menginstall 2 guest di virtualbox untuk mensimulasikan heartbeat dan drbd,
ketika saya stop node1 & node2 secara "paksa" maka pada saat di start-up kembali maka kedua node muncul status sbb:
Atau cara untuk membuat agar satusnya seperti diatas adalah:
Stop service heartbeat pada node1 kemudian pada node2 jalankan ifdown eth0 (lakukan dengan cepat via command line)
dan check status masing-masing node. Dari sini bisa kita lihat bahwa node2 belum sempat men-take-over node1 sementara
node2 sudah keburu off (mati) 

[root@node1 ~]# /etc/init.d/drbd status
drbd driver loaded OK; device status:
version: 8.0.16 (api:86/proto:86)
GIT-hash: d30881451c988619e243d6294a899139eed1183d build by mockbuild@v20z-x86-64.home.local, 2009-08-22 13:23:34
m:res     cs          st               ds                 p  mounted  fstype
0:mydrbd  StandAlone  Primary/Unknown  UpToDate/DUnknown  -  /data    ext3

[root@node2 ~]# /etc/init.d/drbd status
drbd driver loaded OK; device status:
version: 8.0.16 (api:86/proto:86)
GIT-hash: d30881451c988619e243d6294a899139eed1183d build by mockbuild@v20z-x86-64.home.local, 2009-08-22 13:23:34
m:res     cs            st                 ds                 p  mounted  fstype
0:mydrbd  WFConnection  Secondary/Unknown  UpToDate/DUnknown  C

Solusinya cukup menjalankan command
[root@node1 ~]# drbdadm connect r0
Tunggu beberapa saat sampai proses syncronisasi complete, gunakan command cat /proc/drbd
check status masing-masing node
[root@node2 sort]# cat /proc/drbd
version: 8.0.16 (api:86/proto:86)
GIT-hash: d30881451c988619e243d6294a899139eed1183d build by mockbuild@v20z-x86-64.home.local, 2009-08-22 13:23:34
 0: cs:SyncTarget st:Secondary/Primary ds:Inconsistent/UpToDate C r---
    ns:0 nr:135936 dw:135936 dr:0 al:0 bm:14 lo:1 pe:487 ua:0 ap:0
        [=================>..] sync'ed: 91.9% (15572/151508)K
        finish: 0:00:07 speed: 1,940 (1,788) K/sec
        resync: used:2/61 hits:8967 misses:16 starving:0 dirty:0 changed:16
        act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0
[root@node2 sort]# cat /proc/drbd
version: 8.0.16 (api:86/proto:86)
GIT-hash: d30881451c988619e243d6294a899139eed1183d build by mockbuild@v20z-x86-64.home.local, 2009-08-22 13:23:34
 0: cs:SyncTarget st:Secondary/Primary ds:Inconsistent/UpToDate C r---
    ns:0 nr:135936 dw:135936 dr:0 al:0 bm:14 lo:1 pe:487 ua:0 ap:0
        [=================>..] sync'ed: 91.9% (15572/151508)K
        finish: 0:00:07 speed: 1,940 (1,788) K/sec
        resync: used:2/61 hits:8967 misses:16 starving:0 dirty:0 changed:16
        act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0

FINISH
[root@node1 ha.d]# /etc/init.d/drbd status
drbd driver loaded OK; device status:
version: 8.0.16 (api:86/proto:86)
GIT-hash: d30881451c988619e243d6294a899139eed1183d build by mockbuild@v20z-x86-64.home.local, 2009-08-22 13:23:34
m:res     cs         st                 ds                 p  mounted  fstype
0:mydrbd  Connected  Secondary/Primary  UpToDate/UpToDate  C
[root@node2 sort]# /etc/init.d/drbd status
drbd driver loaded OK; device status:
version: 8.0.16 (api:86/proto:86)
GIT-hash: d30881451c988619e243d6294a899139eed1183d build by mockbuild@v20z-x86-64.home.local, 2009-08-22 13:23:34
m:res     cs         st                 ds                 p  mounted  fstype
0:mydrbd  Connected  Primary/Secondary  UpToDate/UpToDate  C  /data    ext3
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: