<font size="4"><font face="comic sans ms,sans-serif">Been having some trouble with a system I need now to manage after a contractor moved out of state. Would greatly appreciate any help you can offer this Sunday afternoon.<br>

<br>System:<br>2-bare metal servers with:<br>CentOS 5.5<br>DRBD 8.0.13 (I know it is really old but that is what we are working with today)<br>Heartbeat 2.1.3<br>Zimbra 6.0 on /dev/drbd0 to be mounted as resource, repdata.<br>

<br>Seems that the Secondary after a physical move to a data center never got reconnected. Heartbeat on Secondary was stopped. The Secondary was Inconsistent for more than a month. I was able to --discard-my-data and &#39;connect&#39; once again with the Primary with the expert help from &#39;digimer&#39; on IRC #drbd. She had to step away and suggested checking in with the folks at #linux-ha but to no avail.<br>

<br>On that first full (re)sync, the Secondary showed up as ds:Diskless/UpToDate. Upon several suggestions from others on IRC and forum searches, I resync&#39;d the Secondary again which then showed ds:UpToDate/UpToDate. That was good. It took many hours so this morning seeing that it was good, I restarted Heartbeat.<br>

<br>Now, the resource got unmounted from Primary. I tried to remount the resource &#39;<span style="font-family: times new roman,serif;">mount /dev/drbd0 /repdata</span>&#39; to no avail. Trying &#39;<span style="font-family: times new roman,serif;">drbdadm attach repdata</span>&#39; found the <span style="font-family: times new roman,serif;">drbd.conf</span> file but then terminated with an exit error of <span style="font-family: times new roman,serif;">code 10</span>.</font></font><font size="4"><font face="comic sans ms,sans-serif"> I stopped Heartbeat on Secondary and tried to &#39;drbdadm attach repdata&#39; on Primary to no avail; same error message. Then the Secondary started to sync with Primary so now I am waiting for it to finish before I perform any more commands.<br>

</font></font><font size="4"><font face="comic sans ms,sans-serif">Here is the log file on Heartbeat doing that work unmounting the resource. </font></font><font size="4"><font face="comic sans ms,sans-serif"><a href="http://pastebin.com/Cydiiqwq">http://pastebin.com/Cydiiqwq</a></font></font><br>

<font size="4"><font face="comic sans ms,sans-serif"><br>So, now /dev/drbd0 to be mounted to /repdata is not there and the Secondary is sync&#39;ing as SyncSource with the Primary as SyncTarget. Again, I am waiting for the sync&#39;ing to finish before attempting anything else.<br>

<br>What is going to happen when sync&#39;ing is done?<br>If resource is not mounted again, what should be done to get it mounted again?<br>How can I check the integrity of the data on /dev/drbd0?<br><br>Thank you in advance for any help you may be able to offer.<br>

<br>Here is /etc/drbd.conf (same on both servers/nodes):<br><span style="font-family: times new roman,serif;">global { usage-count no; }</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">resource repdata {</span><br style="font-family: times new roman,serif;">

<span style="font-family: times new roman,serif;">  protocol C;</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">  startup { wfc-timeout 0; degr-wfc-timeout     120; }</span><br style="font-family: times new roman,serif;">

<span style="font-family: times new roman,serif;">  disk { on-io-error detach; }</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">  syncer { rate 40M; }</span><br style="font-family: times new roman,serif;">

<span style="font-family: times new roman,serif;">  on <a href="http://zimbra1.marininstitute.org">zimbra1.marininstitute.org</a> {</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">    device /dev/drbd0;</span><br style="font-family: times new roman,serif;">

<span style="font-family: times new roman,serif;">    disk /dev/VolGroup01/LogVol01;</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">    address <a href="http://192.168.1.1:7788">192.168.1.1:7788</a>;</span><br style="font-family: times new roman,serif;">

<span style="font-family: times new roman,serif;">    meta-disk internal;</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">  }</span><br style="font-family: times new roman,serif;">

<span style="font-family: times new roman,serif;">  on <a href="http://zimbra2.marininstitute.org">zimbra2.marininstitute.org</a> {</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">    device /dev/drbd0;</span><br style="font-family: times new roman,serif;">

<span style="font-family: times new roman,serif;">    disk /dev/VolGroup00/LogVol00;</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">    address <a href="http://192.168.1.2:7788">192.168.1.2:7788</a>;</span><br style="font-family: times new roman,serif;">

<span style="font-family: times new roman,serif;">    meta-disk internal;</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">  }</span><br style="font-family: times new roman,serif;">

<span style="font-family: times new roman,serif;">}</span><br style="font-family: times new roman,serif;"><br>Here are the DRBD particulars on both servers:<br><span style="font-family: times new roman,serif;">@zimbra1 ~]# cat /proc/drbd</span><br style="font-family: times new roman,serif;">

<span style="font-family: times new roman,serif;">version: 8.0.13 (api:86/proto:86)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">GIT-hash: ee3ad77563d2e87171a3da17cc002ddfd1677dbe build by buildsvn@c5-x8664-build, 2008-10-03 10:12:56</span><br style="font-family: times new roman,serif;">

<span style="font-family: times new roman,serif;"> 0: cs:SyncTarget st:Primary/Secondary ds:Inconsistent/UpToDate C r---</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">    ns:0 nr:290633152 dw:290632896 dr:0 al:3239339 bm:3248376 lo:9 pe:1873 ua:8 ap:0</span><br style="font-family: times new roman,serif;">

<span style="font-family: times new roman,serif;">        [===&gt;................] sync&#39;ed: 21.9% (1017771/1301592)M</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">        finish: 9:09:40 speed: 31,232 (74,064) K/sec</span><br style="font-family: times new roman,serif;">

<span style="font-family: times new roman,serif;">        resync: used:5/61 hits:18148694 misses:17743 starving:0 dirty:0 changed:17743</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">        act_log: used:0/127 hits:0 misses:0 starving:0 dirty:0 changed:0<br>

<br>@zimbra2 ~]# cat /proc/drbd<br>version: 8.0.13 (api:86/proto:86)<br>GIT-hash: ee3ad77563d2e87171a3da17cc002ddfd1677dbe build by buildsvn@c5-x8664-build, 2008-10-03 10:12:56<br> 0: cs:SyncSource st:Secondary/Primary ds:UpToDate/Inconsistent C r---<br>

    ns:294035776 nr:0 dw:729578912 dr:294056481 al:34 bm:99729 lo:241 pe:16 ua:240 ap:0<br>        [===&gt;................] sync&#39;ed: 22.1% (1014448/1301592)M<br>        finish: 3:04:46 speed: 93,692 (74,212) K/sec<br>

        resync: used:1/61 hits:18359513 misses:17947 starving:0 dirty:0 changed:17947<br>        act_log: used:0/127 hits:104 misses:16 starving:0 dirty:0 changed:16<br><br style="font-family: times new roman,serif;"></span><br>

</font></font>