Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
drbd-utils.2199
fence-after-pacemaker-down.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fence-after-pacemaker-down.patch of Package drbd-utils.2199
diff -Naur drbd-utils-8.9.2.orig/scripts/crm-fence-peer.sh drbd-utils-8.9.2/scripts/crm-fence-peer.sh --- drbd-utils-8.9.2.orig/scripts/crm-fence-peer.sh 2016-03-11 16:17:44.827759339 +0800 +++ drbd-utils-8.9.2/scripts/crm-fence-peer.sh 2016-03-11 16:51:34.875622341 +0800 @@ -502,6 +502,25 @@ [[ $crmd = "banned" ]] && will_fence=true if [[ ${expected-down} = "down" && $in_ccm = "false" && $crmd != "online" ]]; then : "pacemaker considers this as clean down" + elif [[ $crmd/$join/$expected = "offline/down/down" ]] ; then + # Check if pacemaker is simply shutdown, but membership/quorum is + # possibly still established (corosync2/cman) + # 1.1.11 will set expected="down" on a clean shutdown too + # Look for "shutdown" transient node attribute + local node_attributes=$(set +x; echo "$cib_xml" | + awk "/<node_state [^\n]*uname=\"$DRBD_PEER\"/,/<\/instance_attributes>/"| + grep -F -e "<nvpair ") + if [ -n "${node_attributes}" ] ; then + local shut_down=$(set +x; echo "$node_attributes" | + awk '/ name="shutdown"/ {if (match($0,/value=\"([[:digit:]]+)\"/, values)) {print values[1]} }') + if [ -n "${shut_down}" ] ; then + : "pacemaker considers this as clean down" + else + will_fence=true + fi + else + will_fence=true + fi elif [[ $in_ccm = false ]] || [[ $crmd != "online" ]]; then will_fence=true fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor