mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: update for newer thin-pool
Newer thin-pool handle metadata read-only recovery better.
This commit is contained in:
parent
51ac56a05e
commit
1d6e1d08a8
@ -98,7 +98,22 @@ not lvcreate -V10 -n $lv3 $vg/pool
|
|||||||
lvs -ao+seg_pe_ranges $vg
|
lvs -ao+seg_pe_ranges $vg
|
||||||
|
|
||||||
# needs_check needs newer version
|
# needs_check needs newer version
|
||||||
if aux have_thin 1 16 0 ; then
|
if aux have_thin 1 19 0 ; then
|
||||||
|
check lv_attr_bit state $vg/pool "a"
|
||||||
|
|
||||||
|
dmsetup suspend $vg-pool-tpool
|
||||||
|
|
||||||
|
check lv_attr_bit state $vg/pool "s"
|
||||||
|
|
||||||
|
dmsetup resume $vg-pool-tpool
|
||||||
|
|
||||||
|
lvresize -L+2M $vg/pool_tmeta
|
||||||
|
|
||||||
|
# Newer version recovers when metadata grow up
|
||||||
|
check lv_attr_bit state $vg/pool "a"
|
||||||
|
check lv_field $vg/pool lv_health_status ""
|
||||||
|
|
||||||
|
elif aux have_thin 1 16 0 ; then
|
||||||
check lv_attr_bit state $vg/pool "c"
|
check lv_attr_bit state $vg/pool "c"
|
||||||
check lv_field $vg/pool lv_check_needed "check needed"
|
check lv_field $vg/pool lv_check_needed "check needed"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user