stable-2.02 - tests: pool conversion
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=2694f93bb4b670d5afc51ff656f51e1e2945664a Commit: 2694f93bb4b670d5afc51ff656f51e1e2945664a Parent: e147786bac52fea240955329963c9eed0eebfb18 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Sep 17 11:27:13 2019 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Sep 17 11:33:55 2019 +0200
tests: pool conversion
Test conversion of cached LV.
--- test/shell/lvconvert-cache-thin.sh | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-)
test/shell/lvconvert-cache-thin.sh +16 -0
@@ -51,4 +51,20 @@ check lv_field $vg/$lv1 segtype "thin" lvconvert --uncache $vg/tpool lvs -a $vg +lvremove -f $vg + +# Check conversion of cached LV works as thin-pool +lvcreate -L10 -n $lv $vg +lvcreate -L10 -n $lv1 $vg +lvcreate -H -L10 $vg/$lv + +# Stack of cache over cache is unsupported ATM +fail lvconvert --yes --cachepool $vg/$lv + +# Thin-pool cannot use cached metaddata LV (meta should be on FAST device) +fail lvconvert --yes --thinpool $vg/$lv1 --poolmetadata $vg/$lv + +# Thin-pool CAN use cached data LV +lvconvert --yes --thinpool $vg/$lv + vgremove -f $vg