* master - tests: update cache-single-split
@ 2019-09-23 19:22 David Teigland
0 siblings, 0 replies; 3+ messages in thread
From: David Teigland @ 2019-09-23 19:22 UTC (permalink / raw)
To: lvm-devel
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a353bfdd9f5f612967e514240b8c4cb06d924a19
Commit: a353bfdd9f5f612967e514240b8c4cb06d924a19
Parent: 5191057d9df3e5b92db3f80c412b99aea1074358
Author: David Teigland <teigland@redhat.com>
AuthorDate: Mon Sep 23 14:20:01 2019 -0500
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Mon Sep 23 14:21:09 2019 -0500
tests: update cache-single-split
enable splitting while LV is active which works
again since the cvol suffix was dropped.
---
test/shell/cache-single-split.sh | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/shell/cache-single-split.sh b/test/shell/cache-single-split.sh
index edfa087..90c3ddb 100644
--- a/test/shell/cache-single-split.sh
+++ b/test/shell/cache-single-split.sh
@@ -113,7 +113,7 @@ check lv_field $vg/$lv1 cachemode "writethrough"
mkfs_mount_umount $lv1
-# lvchange -ay $vg/$lv1
+lvchange -ay $vg/$lv1
lvconvert --splitcache $vg/$lv1
lvs -o segtype $vg/$lv1 | grep linear
@@ -135,7 +135,7 @@ lvchange -an $vg/$lv2
mkfs_mount_umount $lv1
-# lvchange -ay $vg/$lv1
+lvchange -ay $vg/$lv1
lvconvert --splitcache $vg/$lv1
lvs -o segtype $vg/$lv1 | grep linear
@@ -160,7 +160,7 @@ lvchange -an $vg/$lv2
mkfs_mount_umount $lv1
-# lvchange -ay $vg/$lv1
+lvchange -ay $vg/$lv1
aux disable_dev "$dev2"
^ permalink raw reply related [flat|nested] 3+ messages in thread
* master - tests: update cache-single-split
@ 2019-09-24 20:56 David Teigland
0 siblings, 0 replies; 3+ messages in thread
From: David Teigland @ 2019-09-24 20:56 UTC (permalink / raw)
To: lvm-devel
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3b36de573ec53a3e616594903ff3ca64ee2dcafa
Commit: 3b36de573ec53a3e616594903ff3ca64ee2dcafa
Parent: f27625f005f5a96a7ed44d2dbc9f71cfcc981c54
Author: David Teigland <teigland@redhat.com>
AuthorDate: Tue Sep 24 13:17:40 2019 -0500
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Tue Sep 24 15:51:05 2019 -0500
tests: update cache-single-split
add some uncache commands
---
test/shell/cache-single-split.sh | 125 +++++++++++++++++++++++++++++++++++++-
1 files changed, 124 insertions(+), 1 deletions(-)
diff --git a/test/shell/cache-single-split.sh b/test/shell/cache-single-split.sh
index 90c3ddb..3224ea1 100644
--- a/test/shell/cache-single-split.sh
+++ b/test/shell/cache-single-split.sh
@@ -289,5 +289,128 @@ lvs $vg
vgchange -an $vg
vgextend --restoremissing $vg "$dev3"
-vgremove -ff $vg
+#
+# uncache when no devs are missing
+# while inactive
+# both cachemodes work the same
+#
+
+lvremove $vg/$lv1
+lvremove $vg/$lv2
+
+lvcreate -n $lv1 -l 16 -an $vg "$dev1" "$dev4"
+lvcreate -n $lv2 -l 4 -an $vg "$dev2"
+
+lvconvert -y --type cache --cachevol $lv2 --cachemode writethrough $vg/$lv1
+
+mkfs_mount_umount $lv1
+
+lvconvert --uncache $vg/$lv1
+lvs -o segtype $vg/$lv1 | grep linear
+
+lvcreate -n $lv2 -l 4 -an $vg "$dev2"
+
+lvconvert -y --type cache --cachevol $lv2 --cachemode writeback $vg/$lv1
+
+mkfs_mount_umount $lv1
+
+lvconvert --uncache $vg/$lv1
+lvs -o segtype $vg/$lv1 | grep linear
+
+mount_umount $lv1
+
+#
+# uncache when no devs are missing
+# while active
+# both cachemodes work the same
+#
+
+lvremove $vg/$lv1
+
+lvcreate -n $lv1 -l 16 -an $vg "$dev1" "$dev4"
+lvcreate -n $lv2 -l 4 -an $vg "$dev2"
+
+lvconvert -y --type cache --cachevol $lv2 --cachemode writethrough $vg/$lv1
+
+mkfs_mount_umount $lv1
+
+lvchange -ay $vg/$lv1
+
+lvconvert --uncache $vg/$lv1
+lvs -o segtype $vg/$lv1 | grep linear
+
+lvcreate -n $lv2 -l 4 -an $vg "$dev2"
+
+lvconvert -y --type cache --cachevol $lv2 --cachemode writeback $vg/$lv1
+
+lvchange -an $vg/$lv1
+
+mkfs_mount_umount $lv1
+
+lvchange -ay $vg/$lv1
+
+lvconvert --uncache $vg/$lv1
+lvs -o segtype $vg/$lv1 | grep linear
+
+mount_umount $lv1
+
+#
+# uncache while cachevol is missing
+# writethrough
+#
+
+lvremove $vg/$lv1
+
+lvcreate -n $lv1 -l 16 -an $vg "$dev1" "$dev4"
+lvcreate -n $lv2 -l 4 -an $vg "$dev2"
+
+lvconvert -y --type cache --cachevol $lv2 --cachemode writethrough $vg/$lv1
+
+mkfs_mount_umount $lv1
+
+aux disable_dev "$dev2"
+
+lvconvert --uncache $vg/$lv1
+
+lvs -o segtype $vg/$lv1 | grep linear
+
+aux enable_dev "$dev2"
+
+not lvs -o segtype $vg/$lv2
+
+vgck --updatemetadata $vg
+lvs $vg
+
+vgchange -an $vg
+
+mount_umount $lv1
+
+#
+# uncache while cachevol is missing
+# writeback
+#
+lvremove $vg/$lv1
+
+lvcreate -n $lv1 -l 16 -an $vg "$dev1" "$dev4"
+lvcreate -n $lv2 -l 4 -an $vg "$dev2"
+
+lvconvert -y --type cache --cachevol $lv2 --cachemode writeback $vg/$lv1
+
+mkfs_mount_umount $lv1
+
+aux disable_dev "$dev2"
+
+not lvconvert --uncache $vg/$lv1
+lvconvert --uncache --force --yes $vg/$lv1
+
+lvs -o segtype $vg/$lv1 | grep linear
+
+aux enable_dev "$dev2"
+
+not lvs -o segtype $vg/$lv2
+
+vgck --updatemetadata $vg
+lvs $vg
+
+vgremove -ff $vg
^ permalink raw reply related [flat|nested] 3+ messages in thread
* master - tests: update cache-single-split
@ 2019-09-20 21:36 David Teigland
0 siblings, 0 replies; 3+ messages in thread
From: David Teigland @ 2019-09-20 21:36 UTC (permalink / raw)
To: lvm-devel
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=338a60bb417e413820a6d1faeed864222607c8ef
Commit: 338a60bb417e413820a6d1faeed864222607c8ef
Parent: 27c3c1d7c8dcb160f29d1610f3993f41afc72a6d
Author: David Teigland <teigland@redhat.com>
AuthorDate: Fri Sep 20 16:33:35 2019 -0500
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Fri Sep 20 16:36:14 2019 -0500
tests: update cache-single-split
the new use of uuid suffixes on internal dm devs
has impacted splitting when an LV is active,
so temporarily disable that until fixed.
---
test/shell/cache-single-split.sh | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/shell/cache-single-split.sh b/test/shell/cache-single-split.sh
index 90c3ddb..edfa087 100644
--- a/test/shell/cache-single-split.sh
+++ b/test/shell/cache-single-split.sh
@@ -113,7 +113,7 @@ check lv_field $vg/$lv1 cachemode "writethrough"
mkfs_mount_umount $lv1
-lvchange -ay $vg/$lv1
+# lvchange -ay $vg/$lv1
lvconvert --splitcache $vg/$lv1
lvs -o segtype $vg/$lv1 | grep linear
@@ -135,7 +135,7 @@ lvchange -an $vg/$lv2
mkfs_mount_umount $lv1
-lvchange -ay $vg/$lv1
+# lvchange -ay $vg/$lv1
lvconvert --splitcache $vg/$lv1
lvs -o segtype $vg/$lv1 | grep linear
@@ -160,7 +160,7 @@ lvchange -an $vg/$lv2
mkfs_mount_umount $lv1
-lvchange -ay $vg/$lv1
+# lvchange -ay $vg/$lv1
aux disable_dev "$dev2"
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-09-24 20:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-23 19:22 master - tests: update cache-single-split David Teigland
-- strict thread matches above, loose matches on Subject: below --
2019-09-24 20:56 David Teigland
2019-09-20 21:36 David Teigland
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.