<div dir="ltr">Sorry, forgot to include the list in my reply.<br><br><div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Igor Cicimov</b> <span dir="ltr">&lt;<a href="mailto:icicimov@gmail.com">icicimov@gmail.com</a>&gt;</span><br>Date: Mon, Feb 22, 2016 at 9:33 PM<br>Subject: Re: [DRBD-user] DRBD9 drbdadm complains about fencing being in wrong section<br>To: Roland Kammerer &lt;<a href="mailto:roland.kammerer@linbit.com">roland.kammerer@linbit.com</a>&gt;<br><br><br><div dir="ltr">Hi Roland,<br><div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Feb 18, 2016 at 8:03 PM, Roland Kammerer <span dir="ltr">&lt;<a href="mailto:roland.kammerer@linbit.com" target="_blank">roland.kammerer@linbit.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>On Thu, Feb 18, 2016 at 10:37:58AM +1100, Igor Cicimov wrote:<br>
&gt; On Wed, Feb 17, 2016 at 8:18 PM, Roland Kammerer &lt;<a href="mailto:roland.kammerer@linbit.com" target="_blank">roland.kammerer@linbit.com</a><br>
&gt; &gt; wrote:<br>
&gt;<br>
&gt; &gt; On Wed, Feb 17, 2016 at 04:20:12PM +1100, Igor Cicimov wrote:<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I&#39;m testing 9.0.1.1 installed from git and have a resource with fencing<br>
&gt; &gt; in<br>
&gt; &gt; &gt; the disk section:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;     disk {<br>
&gt; &gt; &gt;         on-io-error detach;<br>
&gt; &gt; &gt;         fencing resource-and-stonith;<br>
&gt; &gt; &gt;     }<br>
&gt; &gt;<br>
&gt; &gt; It belongs to net{}, and yes, the man page is outdated, I will fix that.<br>
&gt; &gt;<br>
&gt; &gt;<br>
</span><span>&gt;  Thanks Roland that worked. By the way I&#39;m facing another issue when<br>
&gt; starting the service:<br>
&gt;<br>
&gt; # service drbd start<br>
&gt;  * Starting DRBD<br>
&gt; resources<br>
&gt; [<br>
&gt;      create res: vg1<br>
&gt;    prepare disk: vg1<br>
&gt;     adjust disk: vg1<br>
&gt;     prepare net: vg1<br>
&gt; adjust peer_devices: vg1<br>
&gt; attempt to connect: vg1<br>
&gt; ]<br>
&gt; ...drbdadm: Unknown command &#39;sh-b-pri&#39;<br>
<br>
</span>Too old version of drbd-utils (which provides the init script)?<br></blockquote><div><br></div></div></div><div>Nope, latest install from git as it can be seen in the output of the drbdadm version in my initial post.<br><br>I&#39;m also seeing another discrepancy between the utility and what is in the docs:<br><br># drbdadm status vg1 --verbose --statistics<br>drbdadm: unrecognized option &#39;--statistics&#39;<br>try &#39;drbdadm help&#39;<br><br></div><div>where &#39;--statistics&#39; is suppose to be a valid option according to the docs.<br></div><div><div class="h5"><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
&#39;sh-b-pri&#39; was dropped, see the corresponding comment in the init<br>
script:<br>
# Become primary if configured<br>
# Currently, this is necessary for drbd8<br>
# drbd9 supports automatic promote and removes the<br>
# &quot;sh-b-pri&quot; command.<br>
$DRBDADM sh-b-pri all || true<br>
<span><br>
&gt;<br>
&gt; although drbdadm tells me that all is fine:<br>
&gt;<br>
&gt; # drbdadm status<br>
&gt; vg1 role:Primary<br>
&gt;   disk:UpToDate<br>
&gt;   drbd02 role:Primary<br>
&gt;     peer-disk:UpToDate<br>
<br>
</span>Looks good.<br>
<span><br>
&gt;<br>
&gt; Now this is a problem since I can&#39;t set drbd under pacemaker control:<br>
&gt;<br>
&gt; Failed actions:<br>
&gt;     p_drbd_vg1_start_0 (node=drbd01, call=9, rc=1, status=Timed Out,<br>
&gt; last-rc-change=Thu Feb 18 10:07:43 2016<br>
&gt; , queued=20004ms, exec=1ms<br>
&gt; ): unknown error<br>
&gt;     p_drbd_vg1_start_0 (node=drbd02, call=9, rc=1, status=Timed Out,<br>
&gt; last-rc-change=Thu Feb 18 10:07:43 2016<br>
&gt; , queued=20005ms, exec=0ms<br>
&gt; ): unknown error<br>
&gt;<br>
&gt; I&#39;ve been running this kind of setups with 8.4.4 with no issues. Has<br>
&gt; something changed around drbd management in version 9 or is it just<br>
&gt; something wrong with the initd script?<br>
<br>
</span>AFAIK you should not mix the drbd service with pacemaker anyways. Choose<br>
one, pacemaker. Pacemaker is really not my field of expertise, so<br>
somebody else has to jump in here.<br>
<span><br></span></blockquote><div><br></div></div></div><div>I&#39;m not mixing them drbd is set to not autostart and should be under pacemaker control...eventually.<br> <br></div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>
&gt; Finally thanks for the drbdmanage pointer I&#39;ll do some research about it (I<br>
&gt; think I saw some presentation of yours on the web). I don&#39;t see it<br>
&gt; installed on my system (Ubuntu 14.04.4 LTS) so guess it is not packaged<br>
&gt; with drbd-utils but is a separate toll. I have a question though, since I<br>
&gt; have done the config already manually, is the drbdmanage going to take over<br>
&gt; based on already existing configuration or I will need to reconfigure<br>
&gt; everything all over again?<br>
<br></span></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>
</span>It is a separate package and not part of drbd-utils. AFAIR downstream<br>
Debian/Ubuntu did not pick it up yet. For Ubuntu there is a PPA if you<br>
want to try it:<br>
<br>
<a href="https://launchpad.net/~linbit/+archive/ubuntu/linbit-drbd9-stack" rel="noreferrer" target="_blank">https://launchpad.net/~linbit/+archive/ubuntu/linbit-drbd9-stack</a><br>
<br>
Currently there is no importing of manually crafted res files. To me, it<br>
is actually very low on the feature list I care about. Depending on the<br>
size/time for resync/... it is probably the easiest if you start from<br>
scratch, but then it is really easy:<br>
<br>
node1-n:$ vgcreate drbdpool ...<br>
node1:$ drbdmanage init<br>
node1:$ drbdmange add-node node2 IP<br>
node1:$ drbdmange new-volume foo 10G --deploy 2<br>
<br>
<a href="http://drbd.linbit.com/users-guide-9.0/ch-admin-drbdmanage.html" rel="noreferrer" target="_blank">http://drbd.linbit.com/users-guide-9.0/ch-admin-drbdmanage.html</a><br>
<br>
And you are done, lvm configured, DRBD on top of it.<br>
<div><div><br>
Regards, rck<br>
_______________________________________________<br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com" target="_blank">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" rel="noreferrer" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
</div></div></blockquote></div></div></div><br></div></div></div>
</div><br></div></div>