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

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