From cd2ac8d01ff81dcfd9cd2df058aec0a860fde76d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= Date: Mon, 12 Jan 2026 15:38:09 +0100 Subject: [PATCH] fix recreation of multi-disk volume groups in migration mode Resolves: RHEL-23887 --- rear-fix-VG-recreation-RHEL-23887.patch | 26 +++++++++++++++++++++++++ rear.spec | 4 ++++ 2 files changed, 30 insertions(+) create mode 100644 rear-fix-VG-recreation-RHEL-23887.patch diff --git a/rear-fix-VG-recreation-RHEL-23887.patch b/rear-fix-VG-recreation-RHEL-23887.patch new file mode 100644 index 0000000..7d4f078 --- /dev/null +++ b/rear-fix-VG-recreation-RHEL-23887.patch @@ -0,0 +1,26 @@ +From 70acf6fa39b3d133c0a632e3496e5a273dc9ef27 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Renaud=20M=C3=A9trich?= +Date: Fri, 5 Feb 2021 13:50:42 +0100 +Subject: [PATCH] Update 110_include_lvm_code.sh + +Make sure we delete the volume group before re-creating it. +The issue happens in Migration mode when ReaR is not trying to use vgcfgrestore. + +(cherry picked from commit 70acf6fa39b3d133c0a632e3496e5a273dc9ef27) +--- + usr/share/rear/layout/prepare/GNU/Linux/110_include_lvm_code.sh | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/usr/share/rear/layout/prepare/GNU/Linux/110_include_lvm_code.sh b/usr/share/rear/layout/prepare/GNU/Linux/110_include_lvm_code.sh +index 7cfdfcf28c..1d75990849 100644 +--- a/usr/share/rear/layout/prepare/GNU/Linux/110_include_lvm_code.sh ++++ b/usr/share/rear/layout/prepare/GNU/Linux/110_include_lvm_code.sh +@@ -140,6 +140,7 @@ EOF + cat >> "$LAYOUT_CODE" <&2 || true + if [ -e "$vgrp" ] ; then + rm -rf "$vgrp" + fi + diff --git a/rear.spec b/rear.spec index b22ef77..bf00d6b 100644 --- a/rear.spec +++ b/rear.spec @@ -135,6 +135,10 @@ Patch132: rear-dbus-broker-RHEL-31749.patch # https://github.com/rear/rear/commit/c4a7729242455cdef69f5ac3982f8d76ccc183c3 Patch133: rear-abort-source-on-syntax-error-RHEL-104289.patch +# fix recreation of multi-disk volume groups in migration mode +# https://github.com/rear/rear/commit/acb19846599a5fc411fd8c288776e1af2d79c920 +Patch134: rear-fix-VG-recreation-RHEL-23887.patch + ###################### # downstream patches # ######################