<div>Just set wfc-timeout and possibly degr-wfc-timeout parameters in drbd.conf to some reasonable numbers.</div>
<div> </div>
<div>Tino<br><br></div>
<div class="gmail_quote">2009/6/13 Wilson Kwok <span dir="ltr"><<a href="mailto:leiw324@yahoo.com.hk">leiw324@yahoo.com.hk</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top">
<div>Hello,</div>
<div> </div>
<div>I'm trying to test DRBD failover, so I poweroff node2 first and then node1. But I only can start up node2 DRBD service after bootup, what is that happen ?</div>
<div> </div>
<div>[root@node1 ~]# service drbd start<br>Starting DRBD resources: [ n(resource0) ].<br>..........<br>***************************************************************<br> DRBD's startup script waits for the peer node(s) to appear.<br>
- In case this node was already a degraded cluster before the<br> reboot the timeout is 0 seconds. [degr-wfc-timeout]<br> - If the peer was available before the reboot the timeout will<br> expire after 0 seconds. [wfc-timeout]<br>
(These values are for resource 'resource0'; 0 sec -> wait forever)<br> To abort waiting enter 'yes' [ 15]:<br></div>
<div>-----------------------------------------------------------------------------------------------------------------------</div>
<div>/var/log/message</div>
<div> </div>
<div>Jun 13 20:31:09 node1 kernel: drbd0: conn( WFConnection -> Disconnecting )<br>Jun 13 20:31:09 node1 kernel: drbd0: Discarding network configuration.<br>Jun 13 20:31:09 node1 kernel: drbd0: tl_clear()<br>Jun 13 20:31:09 node1 kernel: drbd0: Connection closed<br>
Jun 13 20:31:09 node1 kernel: drbd0: conn( Disconnecting -> StandAlone )<br>Jun 13 20:31:09 node1 kernel: drbd0: receiver terminated<br>Jun 13 20:31:09 node1 kernel: drbd0: Terminating receiver thread<br>Jun 13 20:31:09 node1 kernel: drbd0: disk( UpToDate -> Diskless )<br>
Jun 13 20:31:09 node1 kernel: drbd0: drbd_bm_resize called with capacity == 0<br>Jun 13 20:31:09 node1 kernel: drbd0: worker terminated<br>Jun 13 20:31:09 node1 kernel: drbd0: Terminating worker thread<br>Jun 13 20:31:09 node1 kernel: drbd: module cleanup done.<br>
Jun 13 20:31:11 node1 kernel: drbd: initialised. Version: 8.0.13 (api:86/proto:86)<br>Jun 13 20:31:11 node1 kernel: drbd: GIT-hash: ee3ad77563d2e87171a3da17cc002ddfd1677dbe build by <a href="mailto:buildsvn@c5-i386-build" target="_blank">buildsvn@c5-i386-build</a>, 2008-10-02 13:31:44<br>
Jun 13 20:31:11 node1 kernel: drbd: registered as block device major 147<br>Jun 13 20:31:11 node1 kernel: drbd: minor_table @ 0xc7374a40<br>Jun 13 20:31:12 node1 kernel: drbd0: disk( Diskless -> Attaching )<br>Jun 13 20:31:12 node1 kernel: drbd0: Starting worker thread (from cqueue/0 [176])<br>
Jun 13 20:31:12 node1 kernel: drbd0: Found 4 transactions (49 active extents) in activity log.<br>Jun 13 20:31:12 node1 kernel: drbd0: max_segment_size ( = BIO size ) = 32768<br>Jun 13 20:31:12 node1 kernel: drbd0: drbd_bm_resize called with capacity == 995856<br>
Jun 13 20:31:12 node1 kernel: drbd0: resync bitmap: bits=124482 words=3892<br>Jun 13 20:31:12 node1 kernel: drbd0: size = 486 MB (497928 KB)<br>Jun 13 20:31:12 node1 kernel: drbd0: reading of bitmap took 0 jiffies<br>Jun 13 20:31:12 node1 kernel: drbd0: recounting of set bits took additional 0 jiffies<br>
Jun 13 20:31:12 node1 kernel: drbd0: 28 KB (7 bits) marked out-of-sync by on disk bit-map.<br>Jun 13 20:31:12 node1 kernel: drbd0: disk( Attaching -> UpToDate )<br>Jun 13 20:31:12 node1 kernel: drbd0: Writing meta data super block now.<br>
Jun 13 20:31:12 node1 kernel: klogd 1.4.1, ---------- state change ----------<br>Jun 13 20:31:12 node1 kernel: drbd0: conn( StandAlone -> Unconnected )<br>Jun 13 20:31:12 node1 kernel: drbd0: Starting receiver thread (from drbd0_worker [5274])<br>
Jun 13 20:31:12 node1 kernel: drbd0: receiver (re)started<br>Jun 13 20:31:12 node1 kernel: drbd0: conn( Unconnected -> WFConnection )<br></div>
<div> </div>
<div>Thanks</div></td></tr></tbody></table><br>
<div class="hm">
<hr size="1">
Yahoo!香港提供網上安全攻略,教你如何防範黑客!<a href="http://hk.promo.yahoo.com/security/" target="_blank"><b>了解更多</b></a></div><br>_______________________________________________<br>drbd-user mailing list<br><a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br><br></blockquote></div><br>