mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-08 08:58:50 +03:00
lvconvert: chunksize option was missing with cachedevice
This commit is contained in:
parent
b84a9927b7
commit
e9503f257a
@ -144,6 +144,19 @@ lvconvert -y --type cache --cachedevice "$dev2" $vg/$lv1
|
||||
check lv_field $vg/$lv1 segtype cache
|
||||
check lv_field $vg/${lv1}_cache_cvol segtype linear -a
|
||||
check lv_field $vg/${lv1}_cache_cvol lv_size "60.00m"
|
||||
lvs -o chunksize $vg/$lv1 |tee out
|
||||
grep 64.00k out
|
||||
lvchange -ay $vg/$lv1
|
||||
lvchange -an $vg/$lv1
|
||||
lvremove $vg/$lv1
|
||||
|
||||
lvcreate -n $lv1 -l8 -an $vg "$dev1"
|
||||
lvconvert -y --type cache --cachedevice "$dev2" --chunksize 128k $vg/$lv1
|
||||
check lv_field $vg/$lv1 segtype cache
|
||||
check lv_field $vg/${lv1}_cache_cvol segtype linear -a
|
||||
check lv_field $vg/${lv1}_cache_cvol lv_size "60.00m"
|
||||
lvs -o chunksize $vg/$lv1 |tee out
|
||||
grep 128.00k out
|
||||
lvchange -ay $vg/$lv1
|
||||
lvchange -an $vg/$lv1
|
||||
lvremove $vg/$lv1
|
||||
|
@ -505,7 +505,7 @@ DESC: Add a writecache to an LV, using a specified cache device.
|
||||
RULE: all and lv_is_visible
|
||||
|
||||
lvconvert --type cache --cachedevice PV LV_linear_striped_raid_thinpool
|
||||
OO: OO_LVCONVERT, --cachesize SizeMB, --cachesettings String
|
||||
OO: OO_LVCONVERT, --cachesize SizeMB, --cachesettings String, --chunksize SizeKB
|
||||
ID: lvconvert_to_cache_with_device
|
||||
DESC: Add a cache to an LV, using a specified cache device.
|
||||
RULE: all and lv_is_visible
|
||||
|
Loading…
x
Reference in New Issue
Block a user