mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: check for raid shrink support
Shrink of raid LVs supported from 1.9
This commit is contained in:
parent
8716d8c188
commit
75e532417e
@ -55,9 +55,10 @@ for deactivate in true false; do
|
||||
check lv_field $vg/$lv2 "seg_size" "1.50m"
|
||||
|
||||
#check raid_images_contiguous $vg $lv1
|
||||
|
||||
lvresize --fs ignore -y -l -3 $vg/$lv2
|
||||
check lv_field $vg/$lv2 "seg_size" "768.00k"
|
||||
if aux have_raid 1 9 0 ; then
|
||||
lvresize --fs ignore -y -l -3 $vg/$lv2
|
||||
check lv_field $vg/$lv2 "seg_size" "768.00k"
|
||||
fi
|
||||
|
||||
#check raid_images_contiguous $vg $lv1
|
||||
|
||||
|
@ -29,9 +29,10 @@ for deactivate in true false; do
|
||||
|
||||
#check raid_images_contiguous $vg $lv1
|
||||
|
||||
# Reduce RAID10 (2-stripes, 2-mirror)
|
||||
|
||||
lvresize --fs ignore -y -l -2 $vg/$lv1
|
||||
# Reduce RAID10 (2-stripes, 2-mirror)
|
||||
NOT_RESIZE=
|
||||
have_raid 1 9 0 || NOT_RESIZE=not # missing shrink support
|
||||
$NOT lvresize --fs ignore -y -l -2 $vg/$lv1
|
||||
|
||||
#check raid_images_contiguous $vg $lv1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user