1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: pool conversion

Test conversion of cached LV.
This commit is contained in:
Zdenek Kabelac 2019-09-17 11:27:13 +02:00
parent 7612c21f55
commit ee6b9b78ec

View File

@ -51,4 +51,20 @@ check lv_field $vg/$lv1 segtype "thin"
lvconvert --uncache $vg/tpool lvconvert --uncache $vg/tpool
lvs -a $vg 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 vgremove -f $vg