<div dir="ltr"><div><div>Hello Lars,</div><div><br></div>I've stopped the cluster, made changes based on your suggestion but I when I manually issue the command "drbdadm up ClusterDisk" on one of the nodes I get the following error :<br><br>drbd.d/ClusterDisk.res:21: Parse error: 'resync-rate | c-plan-ahead | c-delay-target | c-fill-target | c-max-rate | c-min-rate | bitmap' expected,<br> but got 'fencing'<br></div><div><br></div><div>Line 21 is "fencing resource-only;<span class="gmail-">" line</span></div><div><span class="gmail-"><br></span></div><div><span class="gmail-">The global_common.conf is empty</span></div><div><span class="gmail-"><br></span></div>Here is the ClusterDisk.res file<br><br>global {<br> usage-count no;<br>}<br><br>resource ClusterDisk {<br> protocol C;<br> device /dev/drbd0;<br> disk /dev/sdb;<br> meta-disk internal;<br><br> on storage01 {<br> address <a href="http://10.0.20.1:7790">10.0.20.1:7790</a>;<br> }<br><br> on storage02 {<br> address <a href="http://10.0.20.2:7790">10.0.20.2:7790</a>;<br> }<br><br><br> disk {<br> fencing resource-only;<br> al-extents 6007;<br> disk-barrier no;<br> disk-flushes no;<br> md-flushes no;<br> resync-rate 110M;<br> c-max-rate 110M;<br> c-min-rate 10M;<br> c-fill-target 24M;<br><br> on-io-error detach;<br><br> }<br><br> handlers {<br> fence-peer "/usr/lib/drbd/<a href="http://crm-fence-peer.9.sh">crm-fence-peer.9.sh</a>"<br> unfence-peer "/usr/lib/drbd/<a href="http://crm-unfence-peer.9.sh">crm-unfence-peer.9.sh</a>"<br> }<br><br> net {<br> csums-alg md5;<br> verify-alg md5;<br> max-buffers 36k;<br> max-epoch-size 20000;<br> sndbuf-size 1024k;<br> rcvbuf-size 2048k;<br> }<br>}<br><br><div>here is output of drbdadm --version</div><div><br></div><div>DRBDADM_BUILDTAG=GIT-hash:\ 98b6340c328b763a11c6fb63a6dc340722621ac2\ build\ by\ mockbuild@\,\ 2017-06-12\ 12:17:40<br>DRBDADM_API_VERSION=2<br>DRBD_KERNEL_VERSION_CODE=0x090008<br>DRBD_KERNEL_VERSION=9.0.8<br>DRBDADM_VERSION_CODE=0x090000<br>DRBDADM_VERSION=9.0.0</div><div><br></div><div>The path to fence-peer and unfence-peer scripts is valid and the scripts are there.</div><div><br></div><div>Without the fence lines it works.</div><div><br></div><div>Best regards and thank you for info.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 4, 2017 at 3:42 PM, Lars Ellenberg <span dir="ltr"><<a href="mailto:lars.ellenberg@linbit.com" target="_blank">lars.ellenberg@linbit.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Aug 28, 2017 at 08:45:52PM +0300, Octavian Ciobanu wrote:<br>
> Hello all.<br>
><br>
> I've encountered the following issue.<br>
><br>
> I have a DRBD resource that is set as a Master/Slave Resource in a<br>
> Pacemaker cluster and it works as it should. I've added fencing to<br>
> Pacemaker cluster and it works but when I add the fencing parameters to<br>
> DRBD resource config file the DRBD complains that it is not fining the<br>
> resource file in /etc/drbd.conf. If I comment or remove the fence<br>
> parameters from DRBD resource file the resource gets back to working<br>
> condition.<br>
><br>
> In DRBD resource file, located in /etc/drbd.d/, I've added on fencing<br>
> resource-only; to disk directive and fence-peer<br>
> "/usr/lib/drbd/crm-fence-peer.<wbr>sh"; after-resync-target<br>
> "/usr/lib/drbd/crm-unfence-<wbr>peer.sh"; to handlers directive inside resource<br>
> directive. (Followed instructions from DRBD 9 manual).<br>
><br>
> Any info that might help in fixing this is welcome.<br>
<br>
</span>With DRBD 9, you want to use<br>
"fence-peer <a href="http://crm-fence-peer.9.sh" rel="noreferrer" target="_blank">crm-fence-peer.9.sh</a>" and<br>
"unfence-peer <a href="http://crm-unfence-peer.9.sh" rel="noreferrer" target="_blank">crm-unfence-peer.9.sh</a>"<br>
(mind the .9.)<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
: Lars Ellenberg<br>
: LINBIT | Keeping the Digital World Running<br>
: DRBD -- Heartbeat -- Corosync -- Pacemaker<br>
<br>
DRBD® and LINBIT® are registered trademarks of LINBIT<br>
__<br>
please don't Cc me, but send to list -- I'm subscribed<br>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.linbit.com/<wbr>mailman/listinfo/drbd-user</a><br>
</font></span></blockquote></div><br></div>