<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Hello,<br><br>I've recently upgraded my Pacemaker + Corosync cluster to Pacemaker 1.1.8 and Corosync 2.1.0. One of the resources I have is a DRBD resource (DRBD 8.3.11). After performing the upgrade, I noticed that crm-fence-peer.sh was returning the following error state (defined here: http://www.drbd.org/users-guide/s-fence-peer.html) when I would disrupt the DRBD replication link, even though the location constraint was being successfully added to the CIB:<br>Connection to the peer node failed, peer could not be reached. (exit code 5)<br><br>I discovered that my CIB XML does not contain the "ha" attribute for the <node_state> tag, which crm-fence-peer.sh uses to determine if the peer node is reachable:<br>if ! echo "$state_lines" | grep -v -F uname=\"$DRBD_PEER\" | grep -q 'ha="active"'; then<br><br>This ha attribute appears to still be used in the latest version of DRBD as well (<span class="Object" id="OBJ_PREFIX_DWT11356_com_zimbra_url"><a target="_blank" href="http://git.linbit.com/gitweb.cgi?p=drbd-8.3.git;a=blob;f=scripts/crm-fence-peer.sh;hb=HEAD">http://git.linbit.com/gitweb.cgi?p=drbd-8.3.git;a=blob;f=scripts/crm-fence-peer.sh;hb=HEAD</a>).</span><br><br>I updated the script to check the status of the crmd parameter instead (repeat this same modification in all of the places where ha="active" is used):<br>if ! echo "$state_lines" | grep -v -F uname=\"$DRBD_PEER\" | grep -q 'crmd="online"'; then<br><br>After making this change, crm-fence-peer.sh returns the expected exit code (4)<br>Peer’s disk state was successfully set to Outdated (or was Outdated to begin with).<br><br>Does crm-fence-peer.sh also run "drbdadm outdate res" on the peer node (it doesn't seem to be working for me), or is that unnecessary in this scenario because the CIB constraint will prevent the DRBD resource from starting elsewhere?<br><br>Thanks,<br><br>Andrew<br></div></body></html>