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

commands: enable more options for vdo conversion

Update definitions to add support for some more VDO options
when converting volumes to be used as thin-pool with vdo data volume.

Split some option in existing OO_LVCONVERT_VDO to OO_LVCONVERT_VDO_POOL
and reused then with OO_LVCONVERT_THINPOOL.
This commit is contained in:
Zdenek Kabelac 2024-05-09 14:15:45 +02:00
parent 8a323082ef
commit 5aff63c07b

View File

@ -332,19 +332,21 @@ RULE: all not LV_thinpool LV_cachepool LV_vdopool
--- ---
OO_LVCONVERT_POOL: --poolmetadata LV, --poolmetadatasize SizeMB, OO_LVCONVERT_POOL: --chunksize SizeKB, --poolmetadata LV,
--poolmetadataspare Bool, --readahead Readahead, --chunksize SizeKB, --poolmetadatasize SizeMB, --poolmetadataspare Bool, --metadataprofile String,
--zero Bool, --metadataprofile String, --wipesignatures Bool --readahead Readahead, --wipesignatures Bool, --zero Bool
OO_LVCONVERT_THINPOOL: --discards Discards, --errorwhenfull Bool, --pooldatavdo Bool, OO_LVCONVERT_POOL
OO_LVCONVERT_CACHE: --cachemetadataformat CacheMetadataFormat, OO_LVCONVERT_CACHE: --cachemetadataformat CacheMetadataFormat,
--cachemode CacheMode, --cachepolicy String, --cachemode CacheMode, --cachepolicy String,
--cachesettings String, --zero Bool --cachesettings String, --zero Bool
OO_LVCONVERT_VDO: --metadataprofile String, --readahead Readahead, OO_LVCONVERT_VDO: --compression Bool, --deduplication Bool, --vdosettings String
--compression Bool, --deduplication Bool, --vdosettings String,
--zero Bool OO_LVCONVERT_VDO_POOL: OO_LVCONVERT_VDO, --metadataprofile String,
--readahead Readahead, --wipesignatures Bool, --zero Bool
OO_LVCONVERT_THINPOOL: --discards Discards, --errorwhenfull Bool, --pooldatavdo Bool,
OO_LVCONVERT_VDO, OO_LVCONVERT_POOL
OO_LVCONVERT: --alloc Alloc, --background, --force, --noudevsync OO_LVCONVERT: --alloc Alloc, --background, --force, --noudevsync
@ -660,14 +662,14 @@ RULE: --poolmetadata not --readahead --stripesize --stripes_long
--- ---
lvconvert --type vdo-pool LV_linear_striped_raid_cache lvconvert --type vdo-pool LV_linear_striped_raid_cache
OO: --name LV_new, --virtualsize SizeMB, OO_LVCONVERT_VDO, OO_LVCONVERT OO: --name LV_new, --virtualsize SizeMB, OO_LVCONVERT_VDO_POOL, OO_LVCONVERT
ID: lvconvert_to_vdopool ID: lvconvert_to_vdopool
DESC: Convert LV to type vdopool. DESC: Convert LV to type vdopool.
RULE: all and lv_is_visible lv_is_writable RULE: all and lv_is_visible lv_is_writable
RULE: all not lv_is_locked lv_is_origin lv_is_merging_origin lv_is_external_origin lv_is_virtual lv_is_raid_with_integrity RULE: all not lv_is_locked lv_is_origin lv_is_merging_origin lv_is_external_origin lv_is_virtual lv_is_raid_with_integrity
lvconvert --vdopool LV_linear_striped_raid_cache lvconvert --vdopool LV_linear_striped_raid_cache
OO: OO_LVCONVERT_VDO, OO_LVCONVERT, --name LV_new, --virtualsize SizeMB, OO: OO_LVCONVERT_VDO_POOL, OO_LVCONVERT, --name LV_new, --virtualsize SizeMB,
ID: lvconvert_to_vdopool_param ID: lvconvert_to_vdopool_param
DESC: Convert LV to type vdopool. DESC: Convert LV to type vdopool.
RULE: all and lv_is_visible RULE: all and lv_is_visible