|
|
0d72d6 |
From e651576c1b5c1ffbe0fd1b78f209be9a3f9764e7 Mon Sep 17 00:00:00 2001
|
|
|
0d72d6 |
From: XingWei-Liu <liuxingwei@uniontech.com>
|
|
|
0d72d6 |
Date: Thu, 10 Mar 2022 10:38:11 +0800
|
|
|
0d72d6 |
Subject: [PATCH 1/4] change lvm_status return value from ocf_not_running to
|
|
|
0d72d6 |
ocf_err_generic
|
|
|
0d72d6 |
|
|
|
0d72d6 |
---
|
|
|
0d72d6 |
heartbeat/LVM-activate | 2 +-
|
|
|
0d72d6 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
0d72d6 |
|
|
|
0d72d6 |
diff --git a/heartbeat/LVM-activate b/heartbeat/LVM-activate
|
|
|
0d72d6 |
index aed672ea3..0aef76706 100755
|
|
|
0d72d6 |
--- a/heartbeat/LVM-activate
|
|
|
0d72d6 |
+++ b/heartbeat/LVM-activate
|
|
|
0d72d6 |
@@ -790,7 +790,7 @@ lvm_status() {
|
|
|
0d72d6 |
fi
|
|
|
0d72d6 |
|
|
|
0d72d6 |
if [ $dm_count -eq 0 ]; then
|
|
|
0d72d6 |
- return $OCF_NOT_RUNNING
|
|
|
0d72d6 |
+ return $OCF_ERR_GENERIC
|
|
|
0d72d6 |
fi
|
|
|
0d72d6 |
|
|
|
0d72d6 |
case "$OCF_CHECK_LEVEL" in
|
|
|
0d72d6 |
|
|
|
0d72d6 |
From 540ae56436a4f9547bb17aa206fe0e8c7a7fea87 Mon Sep 17 00:00:00 2001
|
|
|
0d72d6 |
From: XingWei-Liu <liuxingwei@uniontech.com>
|
|
|
0d72d6 |
Date: Thu, 10 Mar 2022 16:44:25 +0800
|
|
|
0d72d6 |
Subject: [PATCH 2/4] add if ocf_is_probe in monitor func
|
|
|
0d72d6 |
|
|
|
0d72d6 |
---
|
|
|
0d72d6 |
heartbeat/LVM-activate | 6 +++++-
|
|
|
0d72d6 |
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
0d72d6 |
|
|
|
0d72d6 |
diff --git a/heartbeat/LVM-activate b/heartbeat/LVM-activate
|
|
|
0d72d6 |
index 0aef76706..c86606637 100755
|
|
|
0d72d6 |
--- a/heartbeat/LVM-activate
|
|
|
0d72d6 |
+++ b/heartbeat/LVM-activate
|
|
|
0d72d6 |
@@ -790,7 +790,11 @@ lvm_status() {
|
|
|
0d72d6 |
fi
|
|
|
0d72d6 |
|
|
|
0d72d6 |
if [ $dm_count -eq 0 ]; then
|
|
|
0d72d6 |
- return $OCF_ERR_GENERIC
|
|
|
0d72d6 |
+ if ocf_is_probe ;then
|
|
|
0d72d6 |
+ return $OCF_NOT_RUNNING
|
|
|
0d72d6 |
+ else
|
|
|
0d72d6 |
+ return $OCF_ERR_GENERIC
|
|
|
0d72d6 |
+ fi
|
|
|
0d72d6 |
fi
|
|
|
0d72d6 |
|
|
|
0d72d6 |
case "$OCF_CHECK_LEVEL" in
|
|
|
0d72d6 |
|
|
|
0d72d6 |
From ae3f35d4f671f3288034a257c6dd8eff9a83447a Mon Sep 17 00:00:00 2001
|
|
|
0d72d6 |
From: XingWei-Liu <liuxingwei@uniontech.com>
|
|
|
0d72d6 |
Date: Thu, 10 Mar 2022 16:50:04 +0800
|
|
|
0d72d6 |
Subject: [PATCH 3/4] add if ocf_is_probe in monitor func
|
|
|
0d72d6 |
|
|
|
0d72d6 |
---
|
|
|
0d72d6 |
heartbeat/LVM-activate | 4 ++--
|
|
|
0d72d6 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
0d72d6 |
|
|
|
0d72d6 |
diff --git a/heartbeat/LVM-activate b/heartbeat/LVM-activate
|
|
|
0d72d6 |
index c86606637..f345f73a9 100755
|
|
|
0d72d6 |
--- a/heartbeat/LVM-activate
|
|
|
0d72d6 |
+++ b/heartbeat/LVM-activate
|
|
|
0d72d6 |
@@ -791,9 +791,9 @@ lvm_status() {
|
|
|
0d72d6 |
|
|
|
0d72d6 |
if [ $dm_count -eq 0 ]; then
|
|
|
0d72d6 |
if ocf_is_probe ;then
|
|
|
0d72d6 |
- return $OCF_NOT_RUNNING
|
|
|
0d72d6 |
- else
|
|
|
0d72d6 |
return $OCF_ERR_GENERIC
|
|
|
0d72d6 |
+ else
|
|
|
0d72d6 |
+ return $OCF_NOT_RUNNING
|
|
|
0d72d6 |
fi
|
|
|
0d72d6 |
fi
|
|
|
0d72d6 |
|
|
|
0d72d6 |
|
|
|
0d72d6 |
From 1072c0490ef936a1a7dfd8411da434dce1569457 Mon Sep 17 00:00:00 2001
|
|
|
0d72d6 |
From: XingWei-Liu <liuxingwei@uniontech.com>
|
|
|
0d72d6 |
Date: Thu, 10 Mar 2022 18:10:21 +0800
|
|
|
0d72d6 |
Subject: [PATCH 4/4] reverse return value in monitor func
|
|
|
0d72d6 |
|
|
|
0d72d6 |
---
|
|
|
0d72d6 |
heartbeat/LVM-activate | 4 ++--
|
|
|
0d72d6 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
0d72d6 |
|
|
|
0d72d6 |
diff --git a/heartbeat/LVM-activate b/heartbeat/LVM-activate
|
|
|
0d72d6 |
index f345f73a9..c86606637 100755
|
|
|
0d72d6 |
--- a/heartbeat/LVM-activate
|
|
|
0d72d6 |
+++ b/heartbeat/LVM-activate
|
|
|
0d72d6 |
@@ -791,9 +791,9 @@ lvm_status() {
|
|
|
0d72d6 |
|
|
|
0d72d6 |
if [ $dm_count -eq 0 ]; then
|
|
|
0d72d6 |
if ocf_is_probe ;then
|
|
|
0d72d6 |
- return $OCF_ERR_GENERIC
|
|
|
0d72d6 |
- else
|
|
|
0d72d6 |
return $OCF_NOT_RUNNING
|
|
|
0d72d6 |
+ else
|
|
|
0d72d6 |
+ return $OCF_ERR_GENERIC
|
|
|
0d72d6 |
fi
|
|
|
0d72d6 |
fi
|
|
|
0d72d6 |
|