<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hey everyone,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I just setup my first DRBD installation yesterday in a lab. I was able to configure it, start it, and perform the initial sync. Everything seemed to be working correctly until I restarted the two DRBD nodes. When they restarted they
dropped into recovery mode because they couldn't mount the disk from fstab. I took the entry out of fstab and restarted, and it's been all downhill from there. The official user guide leaves out a lot of practical info, so I would appreciate some pointers.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Question 1: I set DRBD on each node to start automatically and to mount /dev/drbd1 from fstab. Is that the correct way to do things? This is in a lab instance just to learn about DRBD, I don't want to mess with Pacemaker, Heartbeat, or
anything like that right now. Manual failover is ok for now.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Question 2: Since the failure I have been unable to start DRBD despite everything I've tried. When I try to start it, this is what I get:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Starting DRBD resources: [</p>
<p class="MsoNormal"> create res: drbd0</p>
<p class="MsoNormal"> prepare disk: drbd0</p>
<p class="MsoNormal"> adjust disk: drbd0</p>
<p class="MsoNormal"> adjust net: drbd0:failed(connect:20)</p>
<p class="MsoNormal">]</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Which makes things seem like a network problem. But this same config was working right up to the reboot, and the config files are in sync between the two nodes. Here is /proc/drbd from node 1:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">version: 8.4.1 (api:1/proto:86-100)</p>
<p class="MsoNormal">GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by root@retv3130.na.lzb.hq, 2012-03-07 10:30:49</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">1: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown r----s</p>
<p class="MsoNormal"> ns:0 nr:0 dw:0 dr:672 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:157277468</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">And node 2:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">version: 8.4.1 (api:1/proto:86-100)</p>
<p class="MsoNormal">GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by root@retv3131.na.lzb.hq, 2012-03-07 10:32:07</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">1: cs:StandAlone ro:Secondary/Unknown ds:Inconsistent/DUnknown r----s</p>
<p class="MsoNormal"> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:157277468</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">From /proc/drbd it looks like both are in standalone mode. So I tried several things, all the way up to reinitialization, and it will still not connect. I tried to manually connect, I've tried multiple restarts, I've tried telling it
to outdate the peer from the primary node and got the response that it had to be connected first….. nothing works. Both nodes are on the same network, and are pingable from each other, and there is nothing else listening on the port that DRBD wants. Why
will they not start or connect? </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Here's my configs:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">global {</p>
<p class="MsoNormal"> usage-count no;</p>
<p class="MsoNormal"> # minor-count dialog-refresh disable-ip-verification</p>
<p class="MsoNormal">}</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">common {</p>
<p class="MsoNormal"> handlers {</p>
<p class="MsoNormal"> pri-on-incon-degr "/usr/lib/drbd/notify-pri-on-incon-degr.sh; /usr/lib/drbd/notify-emergency-reboot.sh; echo b > /proc/sysrq-trigger ; reboot -f";</p>
<p class="MsoNormal"> pri-lost-after-sb "/usr/lib/drbd/notify-pri-lost-after-sb.sh; /usr/lib/drbd/notify-emergency-reboot.sh; echo b > /proc/sysrq-trigger ; reboot -f";</p>
<p class="MsoNormal"> local-io-error "/usr/lib/drbd/notify-io-error.sh; /usr/lib/drbd/notify-emergency-shutdown.sh; echo o > /proc/sysrq-trigger ; halt -f";</p>
<p class="MsoNormal"> # fence-peer "/usr/lib/drbd/crm-fence-peer.sh";</p>
<p class="MsoNormal"> split-brain "/usr/lib/drbd/notify-split-brain.sh root";</p>
<p class="MsoNormal"> out-of-sync "/usr/lib/drbd/notify-out-of-sync.sh root";</p>
<p class="MsoNormal"> # before-resync-target "/usr/lib/drbd/snapshot-resync-target-lvm.sh -p 15 -- -c 16k";</p>
<p class="MsoNormal"> # after-resync-target /usr/lib/drbd/unsnapshot-resync-target-lvm.sh;</p>
<p class="MsoNormal"> }</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> startup {</p>
<p class="MsoNormal"> become-primary-on retv3130.na.lzb.hq;</p>
<p class="MsoNormal"> # wfc-timeout degr-wfc-timeout outdated-wfc-timeout wait-after-sb</p>
<p class="MsoNormal"> }</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> options {</p>
<p class="MsoNormal"> # cpu-mask on-no-data-accessible</p>
<p class="MsoNormal"> }</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> disk {</p>
<p class="MsoNormal"> # size max-bio-bvecs on-io-error fencing disk-barrier disk-flushes</p>
<p class="MsoNormal"> # disk-drain md-flushes resync-rate resync-after al-extents</p>
<p class="MsoNormal"> # c-plan-ahead c-delay-target c-fill-target c-max-rate</p>
<p class="MsoNormal"> # c-min-rate disk-timeout</p>
<p class="MsoNormal"> }</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> net {</p>
<p class="MsoNormal"> protocol B;</p>
<p class="MsoNormal"> after-sb-0pri discard-younger-primary;</p>
<p class="MsoNormal"> after-sb-1pri discard-secondary;</p>
<p class="MsoNormal"> after-sb-2pri discard-younger-primary;</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> # protocol timeout max-epoch-size max-buffers unplug-watermark</p>
<p class="MsoNormal"> # connect-int ping-int sndbuf-size rcvbuf-size ko-count</p>
<p class="MsoNormal"> # allow-two-primaries cram-hmac-alg shared-secret after-sb-0pri</p>
<p class="MsoNormal"> # after-sb-1pri after-sb-2pri always-asbp rr-conflict</p>
<p class="MsoNormal"> # ping-timeout data-integrity-alg tcp-cork on-congestion</p>
<p class="MsoNormal"> # congestion-fill congestion-extents csums-alg verify-alg</p>
<p class="MsoNormal"> # use-rle</p>
<p class="MsoNormal"> }</p>
<p class="MsoNormal">}</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">resource drbd0 {</p>
<p class="MsoNormal"> on retv3130.na.lzb.hq {</p>
<p class="MsoNormal"> device /dev/drbd1;</p>
<p class="MsoNormal"> disk /dev/mapper/vg_linuxtemplate-NFS;</p>
<p class="MsoNormal"> address 10.170.1.221:7789;</p>
<p class="MsoNormal"> meta-disk internal;</p>
<p class="MsoNormal"> }</p>
<p class="MsoNormal"> on retv3131.na.lzb.hq {</p>
<p class="MsoNormal"> device /dev/drbd1;</p>
<p class="MsoNormal"> disk /dev/mapper/vg_linuxtemplate-NFS;</p>
<p class="MsoNormal"> address 10.170.1.222:7789;</p>
<p class="MsoNormal"> meta-disk internal;</p>
<p class="MsoNormal"> }</p>
<p class="MsoNormal">}</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks for the help. </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Scot Kreienkamp</span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">skreien@la-z-boy.com</span></p>
<p class="MsoNormal"> </p>
</div>
<br>
<br>
<br>
This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly
prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number.
Thank you.
</body>
</html>