mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: better disk delay
Delay only writable extents. Skip zeroing for earlier lvcreate finish.
This commit is contained in:
parent
7fa08ae4e8
commit
51b9de7249
@ -21,7 +21,7 @@ aux prepare_vg 4
|
|||||||
|
|
||||||
for d in $dev1 $dev2 $dev3 $dev4
|
for d in $dev1 $dev2 $dev3 $dev4
|
||||||
do
|
do
|
||||||
aux delay_dev $d 1 1
|
aux delay_dev $d 0 20 $(get first_extent_sector "$d")
|
||||||
done
|
done
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -29,11 +29,12 @@ done
|
|||||||
#
|
#
|
||||||
|
|
||||||
# Create 4-way raid1 LV
|
# Create 4-way raid1 LV
|
||||||
lvcreate -aey --ty raid1 -m 3 -L 32M -n $lv1 $vg
|
lvcreate -aey --ty raid1 -m 3 -Zn -L16M -n $lv1 $vg
|
||||||
not lvchange -y --writemostly $dev1 $vg/$lv1
|
not lvchange -y --writemostly $dev1 $vg/$lv1
|
||||||
check lv_field $vg/$lv1 segtype "raid1"
|
check lv_field $vg/$lv1 segtype "raid1"
|
||||||
check lv_field $vg/$lv1 stripes 4
|
check lv_field $vg/$lv1 stripes 4
|
||||||
check lv_attr_bit health $vg/${lv1}_rimage_0 "-"
|
check lv_attr_bit health $vg/${lv1}_rimage_0 "-"
|
||||||
|
aux enable_dev $(< DEVICES)
|
||||||
aux wait_for_sync $vg $lv1
|
aux wait_for_sync $vg $lv1
|
||||||
lvchange -y --writemostly $dev1 $vg/$lv1
|
lvchange -y --writemostly $dev1 $vg/$lv1
|
||||||
check lv_attr_bit health $vg/${lv1}_rimage_0 "w"
|
check lv_attr_bit health $vg/${lv1}_rimage_0 "w"
|
||||||
|
Loading…
Reference in New Issue
Block a user