mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
test: check writecache profile support
FIXME
This commit is contained in:
parent
b95506815f
commit
89cec5b65a
@ -43,6 +43,9 @@ allocation {
|
||||
sequential_threshold = 100
|
||||
random_threshold = 200
|
||||
}
|
||||
writecache {
|
||||
high_watermark = 60
|
||||
}
|
||||
}
|
||||
}
|
||||
EOF
|
||||
@ -58,6 +61,13 @@ EOF
|
||||
|
||||
aux prepare_vg 2 1000000
|
||||
|
||||
# Check writecache read data from profile
|
||||
lvcreate -n $lv1 -l 4 -an $vg "$dev1"
|
||||
lvcreate -y --type writecache -l 4 --cachevol $lv1 -n $lv2 --metadataprofile $PFILE $vg "$dev2"
|
||||
check lv_field $vg/$lv2 cachesettings "high_watermark=60"
|
||||
lvremove -y $vg
|
||||
exit
|
||||
|
||||
# Check chunk_size is grabbed from configuration
|
||||
lvcreate -L1G --config 'allocation/cache_pool_chunk_size=512' --type cache-pool $vg/cpool
|
||||
check lv_field $vg/cpool chunksize "512.00k"
|
||||
|
@ -52,6 +52,12 @@ aux prepare_devs 4
|
||||
vgcreate $vg "$dev1" "$dev2" "$dev3" "$dev4"
|
||||
|
||||
|
||||
# Create writecache without a specified name so it gets automatic name
|
||||
lvcreate -n $lv1 -l 4 -an $vg "$dev1"
|
||||
lvcreate -y --type writecache -l 4 --cachevol $lv1 $vg "$dev2"
|
||||
check lv_exists $vg lvol0
|
||||
lvremove -y $vg
|
||||
|
||||
#
|
||||
# Test pvmove with writecache
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user