- Filesystem: dont kill unrelated processes during stop-action
Resolves: RHEL-69297
This commit is contained in:
parent
334f26a819
commit
1767d4cb1a
22
RHEL-69297-1-Filesystem-dont-kill-unrelated-processes.patch
Normal file
22
RHEL-69297-1-Filesystem-dont-kill-unrelated-processes.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
From 4b09b3e467a7f8076bbf20f5b027efecf16303e7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gianluca Piccolo <gianluca.piccolo@wuerth-phoenix.com>
|
||||||
|
Date: Thu, 6 Jun 2024 17:34:41 +0200
|
||||||
|
Subject: [PATCH] Fix #1944
|
||||||
|
|
||||||
|
---
|
||||||
|
heartbeat/Filesystem | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/heartbeat/Filesystem b/heartbeat/Filesystem
|
||||||
|
index a445349b9..59b6c1b51 100755
|
||||||
|
--- a/heartbeat/Filesystem
|
||||||
|
+++ b/heartbeat/Filesystem
|
||||||
|
@@ -664,7 +664,7 @@ get_pids()
|
||||||
|
if [ "X${HOSTOS}" = "XOpenBSD" ];then
|
||||||
|
fstat | grep $dir | awk '{print $3}'
|
||||||
|
else
|
||||||
|
- $FUSER -m $dir 2>/dev/null
|
||||||
|
+ $FUSER -Mm $dir 2>/dev/null
|
||||||
|
fi
|
||||||
|
elif [ "$FORCE_UNMOUNT" = "safe" ]; then
|
||||||
|
procs=$(find /proc/[0-9]*/ -type l -lname "${dir}/*" -or -lname "${dir}" 2>/dev/null | awk -F/ '{print $3}')
|
26
RHEL-69297-2-Filesystem-update-bsd-logic.patch
Normal file
26
RHEL-69297-2-Filesystem-update-bsd-logic.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From c9ba6ac66ee27a70c69e1156f17aa6beac277bc5 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
|
||||||
|
Date: Fri, 7 Jun 2024 14:23:28 +0200
|
||||||
|
Subject: [PATCH] Filesystem: use fuser -c on FreeBSD, as -m and -M are used
|
||||||
|
for other functionality
|
||||||
|
|
||||||
|
---
|
||||||
|
heartbeat/Filesystem | 4 +++-
|
||||||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/heartbeat/Filesystem b/heartbeat/Filesystem
|
||||||
|
index 59b6c1b51..88fe2e2eb 100755
|
||||||
|
--- a/heartbeat/Filesystem
|
||||||
|
+++ b/heartbeat/Filesystem
|
||||||
|
@@ -661,8 +661,10 @@ get_pids()
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ocf_is_true "$FORCE_UNMOUNT"; then
|
||||||
|
- if [ "X${HOSTOS}" = "XOpenBSD" ];then
|
||||||
|
+ if [ "X${HOSTOS}" = "XOpenBSD" ]; then
|
||||||
|
fstat | grep $dir | awk '{print $3}'
|
||||||
|
+ elif [ "X${HOSTOS}" = "XFreeBSD" ]; then
|
||||||
|
+ $FUSER -c $dir 2>/dev/null
|
||||||
|
else
|
||||||
|
$FUSER -Mm $dir 2>/dev/null
|
||||||
|
fi
|
@ -73,7 +73,7 @@
|
|||||||
Name: resource-agents
|
Name: resource-agents
|
||||||
Summary: Open Source HA Reusable Cluster Resource Scripts
|
Summary: Open Source HA Reusable Cluster Resource Scripts
|
||||||
Version: 4.9.0
|
Version: 4.9.0
|
||||||
Release: 54%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}.5
|
Release: 54%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}.6
|
||||||
License: GPLv2+ and LGPLv2+
|
License: GPLv2+ and LGPLv2+
|
||||||
URL: https://github.com/ClusterLabs/resource-agents
|
URL: https://github.com/ClusterLabs/resource-agents
|
||||||
%if 0%{?fedora} || 0%{?centos_version} || 0%{?rhel}
|
%if 0%{?fedora} || 0%{?centos_version} || 0%{?rhel}
|
||||||
@ -163,6 +163,8 @@ Patch66: RHEL-15305-2-findif.sh-dont-use-table-parameter.patch
|
|||||||
Patch67: RHEL-34137-aws-agents-use-curl_retry.patch
|
Patch67: RHEL-34137-aws-agents-use-curl_retry.patch
|
||||||
Patch68: RHEL-32828-db2-fix-OCF_SUCESS-typo.patch
|
Patch68: RHEL-32828-db2-fix-OCF_SUCESS-typo.patch
|
||||||
Patch69: RHEL-61138-nfsserver-also-stop-rpc-statd-for-nfsv4_only.patch
|
Patch69: RHEL-61138-nfsserver-also-stop-rpc-statd-for-nfsv4_only.patch
|
||||||
|
Patch70: RHEL-69297-1-Filesystem-dont-kill-unrelated-processes.patch
|
||||||
|
Patch71: RHEL-69297-2-Filesystem-update-bsd-logic.patch
|
||||||
|
|
||||||
# bundle patches
|
# bundle patches
|
||||||
Patch1000: 7-gcp-bundled.patch
|
Patch1000: 7-gcp-bundled.patch
|
||||||
@ -416,6 +418,8 @@ exit 1
|
|||||||
%patch -p1 -P 67 -F1
|
%patch -p1 -P 67 -F1
|
||||||
%patch -p1 -P 68
|
%patch -p1 -P 68
|
||||||
%patch -p1 -P 69
|
%patch -p1 -P 69
|
||||||
|
%patch -p1 -P 70
|
||||||
|
%patch -p1 -P 71
|
||||||
|
|
||||||
chmod 755 heartbeat/nova-compute-wait
|
chmod 755 heartbeat/nova-compute-wait
|
||||||
chmod 755 heartbeat/NovaEvacuate
|
chmod 755 heartbeat/NovaEvacuate
|
||||||
@ -1005,6 +1009,11 @@ ccs_update_schema > /dev/null 2>&1 ||:
|
|||||||
%{_usr}/lib/ocf/lib/heartbeat/OCF_*.pm
|
%{_usr}/lib/ocf/lib/heartbeat/OCF_*.pm
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 27 2024 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.9.0-54.6
|
||||||
|
- Filesystem: dont kill unrelated processes during stop-action
|
||||||
|
|
||||||
|
Resolves: RHEL-69297
|
||||||
|
|
||||||
* Tue Oct 1 2024 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.9.0-54.5
|
* Tue Oct 1 2024 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.9.0-54.5
|
||||||
- nfsserver: also stop rpc-statd for nfsv4_only to avoid stop failing
|
- nfsserver: also stop rpc-statd for nfsv4_only to avoid stop failing
|
||||||
in some cases
|
in some cases
|
||||||
|
Loading…
Reference in New Issue
Block a user