Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
On 09/29/2011 02:55 AM, Kaloyan Kovachev wrote: > Hi list, > i am about to upgrade DRBD on a RHCM cluster where GFS2 is used (dual > primary mode). Previously i was using the outdate-peer script wodified to > call fence_node in case the peer can not be reached over SSH. In the new > version i can see the outdate-peer handler is replaced by fence-peer and > the script executed is crm-fence-peer, but the problem is, the cluster is > not using peacemaker. So here are the questions: > > 1. when using resource-and-stonith should the script always exit with 7 > or it is OK to keep using the modified outdate-peer and return 7 only if > the peer was fenced, which happens if it can't be contacted via SSH only > i.e. at the end of the script the RV is still 5 and the cluster is quorate, > the node status is Offline or fence_node was executed? > > 2. If any code in addition to 7 is allowed - which codes will lead to > unfreezing the IO and which to keep blocking it, because in case of > Inquorate cluster status or fence failure it is preferable to keep it > blocked. Will returning 6 in this case lead to calling some of the pri-lost > handlers i.e. commit suicide? I don't know about the exit codes, but I use Lon's obliterate-peer.sh script in both DRBD 8.3.9 on EL5 (RHCS stable2) and DRBD 8.3.11 on EL6 (RHCS stable 3) to protect my dual-primary setups. It works great. Here is how I use it. The doc is for an older version but it works the same. If you have the latest version of drbd, just replace 'outdate-peer' with 'fence-peer'. *note* - This link is part of an *incomplete* tutorial. The DRBD section is finished though. https://alteeve.com/w/2-Node_Red_Hat_KVM_Cluster_Tutorial#Configuring_DRBD_Global_and_Common_Options I keep a copy of the obliterate-peer.sh script here; https://alteeve.com/files/an-cluster/sbin/obliterate-peer.sh I install it with; wget -c https://alteeve.com/files/an-cluster/sbin/obliterate-peer.sh -O /sbin/obliterate-peer.sh chmod a+x /sbin/obliterate-peer.sh ls -lah /sbin/obliterate-peer.sh If you want to find the source, do a search for "obliterate-peer.sh Lon Hohberger". Sorry that this doesn't answer your question directly, but hopefully it will help. :) -- Digimer E-Mail: digimer at alteeve.com Freenode handle: digimer Papers and Projects: http://alteeve.com Node Assassin: http://nodeassassin.org "At what point did we forget that the Space Shuttle was, essentially, a program that strapped human beings to an explosion and tried to stab through the sky with fire and math?"