1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: use bigger raid size

To avoid problem with report of array in-sync use for now bigger
raid size 64M.
This commit is contained in:
Zdenek Kabelac 2016-04-18 23:09:17 +02:00
parent 88c19d5d72
commit 59b0bd7b64

View File

@ -22,8 +22,12 @@ aux lvmconf 'allocation/maximise_cling = 0' \
aux prepare_vg 8 aux prepare_vg 8
# It's possible small raid arrays do have problems with reporting in-sync.
# So try bigger size
RAID_SIZE=64
# RAID5 single replace # RAID5 single replace
lvcreate --type raid5 -i 2 -l 2 -n $lv1 $vg "$dev1" "$dev2" "$dev3" lvcreate --type raid5 -i 2 -L $RAID_SIZE -n $lv1 $vg "$dev1" "$dev2" "$dev3"
aux wait_for_sync $vg $lv1 aux wait_for_sync $vg $lv1
aux disable_dev "$dev3" aux disable_dev "$dev3"
lvconvert -y --repair $vg/$lv1 lvconvert -y --repair $vg/$lv1
@ -33,7 +37,7 @@ vgextend $vg "$dev3"
lvremove -ff $vg lvremove -ff $vg
# RAID6 double replace # RAID6 double replace
lvcreate --type raid6 -i 3 -l 2 -n $lv1 $vg \ lvcreate --type raid6 -i 3 -L $RAID_SIZE -n $lv1 $vg \
"$dev1" "$dev2" "$dev3" "$dev4" "$dev5" "$dev1" "$dev2" "$dev3" "$dev4" "$dev5"
aux wait_for_sync $vg $lv1 aux wait_for_sync $vg $lv1
aux disable_dev "$dev4" "$dev5" aux disable_dev "$dev4" "$dev5"