[lvm-devel] [PATCH v1 4/4] tests: Cleanup device mapping for global lock LV

Leo Yan leo.yan at linaro.org
Thu Jun 25 09:15:19 UTC 2020


Cleanup the device mapping for global locking LV before cleanup the
device mapping for GL device, otherwise sometimes it will fail due to
the dependency.

Signed-off-by: Leo Yan <leo.yan at linaro.org>
---
 test/shell/aa-lvmlockd-sanlock-prepare.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/shell/aa-lvmlockd-sanlock-prepare.sh b/test/shell/aa-lvmlockd-sanlock-prepare.sh
index 8a8c4a74b..3a20b4dec 100644
--- a/test/shell/aa-lvmlockd-sanlock-prepare.sh
+++ b/test/shell/aa-lvmlockd-sanlock-prepare.sh
@@ -29,6 +29,7 @@ test_description='Set up things to run tests with sanlock'
 
 GL_DEV="/dev/mapper/GL_DEV"
 GL_FILE="/tmp/gl_file.img"
+dmsetup remove glvg-lvmlock || true
 dmsetup remove GL_DEV || true
 rm -f "$GL_FILE"
 dd if=/dev/zero of="$GL_FILE" bs=$((1024*1024)) count=1024 2> /dev/null
-- 
2.17.1




More information about the lvm-devel mailing list