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

tests: new logic for repair

meta name deduced from cachepool name.
This commit is contained in:
Zdenek Kabelac 2023-07-17 14:30:39 +02:00
parent ace8a2a868
commit 32b2e416cc

View File

@ -67,14 +67,14 @@ lvchange -an $vg/$lv1
lvconvert --repair $vg/$lv1
lvs -a $vg
check lv_exists $vg ${lv1}_meta0
check lv_exists $vg cpool_cpool_meta0
eval "$(lvs -S 'name=~_pmspare' -a --config 'report/mark_hidden_devices=0' -o name --noheading --nameprefixes $vg)"
lvremove -f --yes "$vg/$LVM2_LV_NAME"
# check --repair without creation of _pmspare device
lvconvert --repair --poolmetadataspare n $vg/$lv1
check lv_exists $vg ${lv1}_meta1
check lv_exists $vg cpool_cpool_meta1
# check no _pmspare has been created in previous --repair
test "0" = "$(lvs -S 'name=~_pmspare' -a -o name --noheading --nameprefixes $vg | wc -l)"