1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-30 17:18:21 +03:00

tests: cache use 300M XFS

This commit is contained in:
Zdenek Kabelac 2022-09-07 01:02:29 +02:00
parent e295610d42
commit 19db3b3e45
4 changed files with 15 additions and 15 deletions

View File

@ -25,11 +25,11 @@ mkdir -p "$mount_dir"
# generate random data
dd if=/dev/urandom of=pattern1 bs=512K count=1
aux prepare_devs 5 64
aux prepare_devs 5 310
vgcreate $SHARED $vg "$dev1" "$dev2" "$dev3" "$dev4" "$dev5"
lvcreate -n $lv1 -l 8 -an $vg "$dev1"
lvcreate -n $lv1 -L 300 -an $vg "$dev1"
lvcreate -n $lv2 -l 4 -an $vg "$dev2"
lvcreate -n $lv3 -l 4 -an $vg "$dev3"
lvcreate -n $lv4 -l 4 -an $vg "$dev4"

View File

@ -59,11 +59,11 @@ mkdir -p "$mount_dir"
# generate random data
dd if=/dev/urandom of=pattern1 bs=512K count=1
aux prepare_devs 4
aux prepare_devs 4 310
vgcreate $SHARED $vg "$dev1" "$dev2" "$dev3" "$dev4"
lvcreate -n $lv1 -l 16 -an $vg "$dev1" "$dev4"
lvcreate -n $lv1 -L 300 -an $vg "$dev1" "$dev4"
lvcreate -n $lv2 -l 4 -an $vg "$dev2"
#
@ -227,7 +227,7 @@ vgextend --restoremissing $vg "$dev2"
#
lvremove $vg/$lv2
lvcreate -n $lv2 -l 14 -an $vg "$dev2" "$dev3"
lvcreate -n $lv2 -l 14 -an $vg "$dev2:0-10" "$dev3"
lvconvert -y --type cache --cachevol $lv2 --cachemode writethrough $vg/$lv1
@ -263,7 +263,7 @@ mount_umount $lv1
#
lvremove $vg/$lv2
lvcreate -n $lv2 -l 14 -an $vg "$dev2" "$dev3"
lvcreate -n $lv2 -l 14 -an $vg "$dev2:0-10" "$dev3"
lvconvert -y --type cache --cachevol $lv2 --cachemode writeback $vg/$lv1
@ -301,7 +301,7 @@ vgextend --restoremissing $vg "$dev3"
lvremove $vg/$lv1
lvremove $vg/$lv2
lvcreate -n $lv1 -l 16 -an $vg "$dev1" "$dev4"
lvcreate -n $lv1 -L 300 -an $vg "$dev1:0-10" "$dev4"
lvcreate -n $lv2 -l 4 -an $vg "$dev2"
lvconvert -y --type cache --cachevol $lv2 --cachemode writethrough $vg/$lv1
@ -330,7 +330,7 @@ mount_umount $lv1
lvremove $vg/$lv1
lvcreate -n $lv1 -l 16 -an $vg "$dev1" "$dev4"
lvcreate -n $lv1 -L 300 -an $vg "$dev1:0-10" "$dev4"
lvcreate -n $lv2 -l 4 -an $vg "$dev2"
lvconvert -y --type cache --cachevol $lv2 --cachemode writethrough $vg/$lv1
@ -364,7 +364,7 @@ mount_umount $lv1
lvremove $vg/$lv1
lvcreate -n $lv1 -l 16 -an $vg "$dev1" "$dev4"
lvcreate -n $lv1 -L 300 -an $vg "$dev1:0-10" "$dev4"
lvcreate -n $lv2 -l 4 -an $vg "$dev2"
lvconvert -y --type cache --cachevol $lv2 --cachemode writethrough $vg/$lv1
@ -395,7 +395,7 @@ mount_umount $lv1
lvremove $vg/$lv1
lvcreate -n $lv1 -l 16 -an $vg "$dev1" "$dev4"
lvcreate -n $lv1 -L 300 -an $vg "$dev1:0-10" "$dev4"
lvcreate -n $lv2 -l 4 -an $vg "$dev2"
lvconvert -y --type cache --cachevol $lv2 --cachemode writeback $vg/$lv1

View File

@ -26,11 +26,11 @@ mkdir -p "$mount_dir"
# generate random data
dd if=/dev/urandom of=pattern1 bs=512K count=1
aux prepare_devs 4 64
aux prepare_devs 4 310
vgcreate $SHARED $vg "$dev1" "$dev2" "$dev3" "$dev4"
lvcreate --type raid1 -m 1 -n $lv1 -l 8 $vg "$dev1" "$dev2"
lvcreate --type raid1 -m 1 -n $lv1 -L 300 --nosync $vg "$dev1" "$dev2"
lvcreate --type raid1 -m 1 -n $lv2 -l 4 $vg "$dev3" "$dev4"
@ -69,7 +69,7 @@ lvchange -an $vg/$lv1
lvconvert --splitcache $vg/$lv1
check lv_field $vg/$lv1 segtype raid1
check lv_field $vg/$lv2 segtype raid1
check lv_field $vg/$lv2 segtype raid1
lvchange -ay $vg/$lv1
lvchange -ay $vg/$lv2

View File

@ -28,13 +28,13 @@ mkdir -p "$mount_dir"
# generate random data
dd if=/dev/urandom of=pattern1 bs=512K count=1
aux prepare_devs 2 64
aux prepare_devs 2 310
vgcreate $SHARED $vg "$dev1"
vgextend $vg "$dev2"
lvcreate -n $lv1 -l 8 -an $vg "$dev1"
lvcreate -n $lv1 -L 300 -an $vg "$dev1"
lvcreate -n $lv2 -l 4 -an $vg "$dev2"