Blame SOURCES/bz2029706-1-db2-crm_attribute-use-forever.patch

cc5161
From 925180da2f41feddc5aac3c249563eb179b34029 Mon Sep 17 00:00:00 2001
cc5161
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
cc5161
Date: Mon, 22 Nov 2021 16:44:48 +0100
cc5161
Subject: [PATCH] db2: use -l forever instead of -t nodes -l reboot, as they
cc5161
 conflict with eachother
cc5161
cc5161
---
cc5161
 heartbeat/db2 | 4 ++--
cc5161
 1 file changed, 2 insertions(+), 2 deletions(-)
cc5161
cc5161
diff --git a/heartbeat/db2 b/heartbeat/db2
cc5161
index 03146a957..fa2a45a5d 100755
cc5161
--- a/heartbeat/db2
cc5161
+++ b/heartbeat/db2
cc5161
@@ -274,7 +274,7 @@ db2_fal_attrib() {
cc5161
         while read id node member
cc5161
         do
cc5161
             [ "$member" = member -a "$node" != "$me" ] || continue
cc5161
-            crm_attribute -t nodes -l reboot --node=$node -n $attr -v "$3"
cc5161
+            crm_attribute -l forever --node=$node -n $attr -v "$3"
cc5161
             rc=$?
cc5161
             ocf_log info "DB2 instance $instance($db2node/$db: setting attrib for FAL to $FIRST_ACTIVE_LOG @ $node"
cc5161
             [ $rc != 0 ] && break
cc5161
@@ -282,7 +282,7 @@ db2_fal_attrib() {
cc5161
         ;;
cc5161
 
cc5161
         get)
cc5161
-        crm_attribute -t nodes -l reboot -n $attr -G --quiet 2>&1
cc5161
+        crm_attribute -l forever -n $attr -G --quiet 2>&1
cc5161
         rc=$?
cc5161
         if [ $rc != 0 ]
cc5161
         then