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

tests: specify m1 for raid1 in cache-single-types

This commit is contained in:
David Teigland 2018-11-08 14:08:41 -06:00
parent 73132bc254
commit 2f02e8d33a

View File

@ -30,14 +30,12 @@ aux prepare_devs 4 64
vgcreate $SHARED $vg "$dev1" "$dev2" "$dev3" "$dev4"
lvcreate --type raid1 -n $lv1 -l 8 -an $vg "$dev1" "$dev2"
lvcreate --type raid1 -m 1 -n $lv1 -l 8 $vg "$dev1" "$dev2"
lvcreate --type raid1 -n $lv2 -l 4 -an $vg "$dev3" "$dev4"
lvcreate --type raid1 -m 1 -n $lv2 -l 4 $vg "$dev3" "$dev4"
# test1: create fs on LV before cache is attached
lvchange -ay $vg/$lv1
mkfs.xfs -f -s size=4096 "$DM_DEV_DIR/$vg/$lv1"
mount "$DM_DEV_DIR/$vg/$lv1" "$mount_dir"