2022-06-13 21:15:49 +00:00
|
|
|
From 9c9bf13186d387d807f279c112745768c8b32513 Mon Sep 17 00:00:00 2001
|
|
|
|
From: David Teigland <teigland@redhat.com>
|
|
|
|
Date: Tue, 16 Nov 2021 14:21:07 -0600
|
2022-08-02 08:13:55 +00:00
|
|
|
Subject: [PATCH 12/54] tests pv-ext-flags: work with devices file
|
2022-06-13 21:15:49 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
test/shell/pv-ext-flags.sh | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/test/shell/pv-ext-flags.sh b/test/shell/pv-ext-flags.sh
|
|
|
|
index 3e6bcff76..ae4d6b7ff 100644
|
|
|
|
--- a/test/shell/pv-ext-flags.sh
|
|
|
|
+++ b/test/shell/pv-ext-flags.sh
|
|
|
|
@@ -57,9 +57,11 @@ dd if="$dev1" of=dev1_backup bs=1M
|
|
|
|
|
|
|
|
# pvcreate and pvremove can be forced even if the PV is marked as used
|
|
|
|
pvremove -ff -y "$dev1"
|
|
|
|
+lvmdevices --deldev "$dev1" || true
|
|
|
|
dd if=dev1_backup of="$dev1" bs=1M
|
|
|
|
pvcreate -ff -y "$dev1"
|
|
|
|
dd if=dev1_backup of="$dev1" bs=1M
|
|
|
|
+lvmdevices --adddev "$dev1" || true
|
|
|
|
|
|
|
|
# prepare a VG with $dev1 and $dev both having 1 MDA
|
|
|
|
aux enable_dev "$dev2"
|
|
|
|
@@ -116,9 +118,11 @@ dd if="$dev1" of=dev1_backup bs=1M
|
|
|
|
|
|
|
|
# pvcreate and pvremove can be forced even if the PV is marked as used
|
|
|
|
pvremove -ff -y "$dev1"
|
|
|
|
+lvmdevices --deldev "$dev1" || true
|
|
|
|
dd if=dev1_backup of="$dev1" bs=1M
|
|
|
|
pvcreate -ff -y "$dev1"
|
|
|
|
dd if=dev1_backup of="$dev1" bs=1M
|
|
|
|
+lvmdevices --adddev "$dev1" || true
|
|
|
|
|
|
|
|
# prepare a VG with $dev1 and $dev both having 1 MDA
|
|
|
|
aux enable_dev "$dev2"
|
|
|
|
--
|
2022-08-02 08:13:55 +00:00
|
|
|
2.34.3
|
2022-06-13 21:15:49 +00:00
|
|
|
|