summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-02-16 21:30:40 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2021-02-17 11:53:19 +0100
commitfbaf5a32bb3465d121f60db5a77df2e86b0bf49b (patch)
tree3651016fd813e3922f2b49519fb567976be0449d
parent9c0ce4daa2accbfeec2a09729f73ef7a5876c658 (diff)
downloadlvm2-fbaf5a32bb3465d121f60db5a77df2e86b0bf49b.tar.gz
tests: lvconvert vdo profile support
-rw-r--r--test/shell/profiles-vdo.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/shell/profiles-vdo.sh b/test/shell/profiles-vdo.sh
index c870315a0..7b3c343f3 100644
--- a/test/shell/profiles-vdo.sh
+++ b/test/shell/profiles-vdo.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-# Copyright (C) 2018 Red Hat, Inc. All rights reserved.
+# Copyright (C) 2018-2021 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
@@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-# Exercise obtaining cache parameter from various sources
+# Exercise obtaining vdo parameters from various sources
# Either commmand line or metadata profile or implicit default...
@@ -47,4 +47,8 @@ lvdisplay -m $vg/vdopool | tee out
grep "Compression.*no" out
lvremove -f $vg
+lvcreate -L4G --name vdopool $vg
+lvconvert --yes --type vdo-pool --metadataprofile "$PFILE" $vg/vdopool
+check lv_field $vg/vdopool vdo_compression ""
+
vgremove -ff $vg