File crm-fence-peer-pacemaker2-issue2.patch of Package drbd-utils.19355
error msg when using fence-handler:
sed: -e expression #1, char 28: unknown command: `\'
WARNING drbd-fencing could not determine the master id of drbd resource xxx
Either replace the '\\' to '\' or change back to the original "xxx"'
quotation could fix the error.
diff -Naur drbd-utils-9.13.0.orig/scripts/crm-fence-peer.9.sh drbd-utils-9.13.0/scripts/crm-fence-peer.9.sh
--- drbd-utils-9.13.0.orig/scripts/crm-fence-peer.9.sh 2020-09-04 15:47:07.865987423 +0800
+++ drbd-utils-9.13.0/scripts/crm-fence-peer.9.sh 2020-09-04 15:47:25.086005572 +0800
@@ -214,7 +214,7 @@
# or double check that it is in fact a promotable="true" clone...
# But in the real world, this is good enough.
: ${master_id=$(set +x; echo "$cib_xml" |
- sed -ne '/<\(clone\|master\) /,/<\\/\(clone\|master\)>/ {
+ sed -ne '/<\(clone\|master\) /,/<\/\(clone\|master\)>/ {
/<\(clone\|master\) / h;
/<primitive/,/<\/primitive/ {
/<instance_attributes/,/<\/instance_attributes/ {
diff -Naur drbd-utils-9.13.0.orig/scripts/crm-fence-peer.sh drbd-utils-9.13.0/scripts/crm-fence-peer.sh
--- drbd-utils-9.13.0.orig/scripts/crm-fence-peer.sh 2020-09-04 15:47:07.865987423 +0800
+++ drbd-utils-9.13.0/scripts/crm-fence-peer.sh 2020-09-04 15:47:37.046018153 +0800
@@ -87,7 +87,7 @@
# or double check that it is in fact a promotable="true" clone...
# But in the real world, this is good enough.
: ${master_id=$(set +x; echo "$cib_xml" |
- sed -ne '/<\(clone\|master\) /,/<\\/\(clone\|master\)>/ {
+ sed -ne '/<\(clone\|master\) /,/<\/\(clone\|master\)>/ {
/<\(clone\|master\) / h;
/<primitive/,/<\/primitive/ {
/<instance_attributes/,/<\/instance_attributes/ {