mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: on older system use mirror type
This commit is contained in:
parent
8eedb18c73
commit
37cf201906
@ -11,11 +11,13 @@
|
|||||||
|
|
||||||
. lib/test
|
. lib/test
|
||||||
|
|
||||||
aux target_at_least dm-raid 1 1 0 || skip
|
|
||||||
|
|
||||||
aux prepare_vg 4
|
aux prepare_vg 4
|
||||||
|
|
||||||
lvcreate --type raid1 -m 1 -l 2 -n $lv1 $vg
|
TYPE=raid1
|
||||||
|
aux target_at_least dm-raid 1 1 0 || TYPE=mirror
|
||||||
|
|
||||||
|
lvcreate --type $TYPE -m 1 -l 2 -n $lv1 $vg
|
||||||
lvchange -an $vg/$lv1
|
lvchange -an $vg/$lv1
|
||||||
aux disable_dev "$dev1"
|
aux disable_dev "$dev1"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user