mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
commands: fix lvconvert options for mirrors/stripes
The LVCONVERT_RAID shortcut for including options ended up including mirrors/stripes as optional opts in defs where they were already required, or in defs where they would not be used. Remove the option set and specify in each case only the options wanted.
This commit is contained in:
parent
5d3e870946
commit
15682270f4
@ -304,9 +304,6 @@ RULE: all not LV_thinpool LV_cachepool
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
OO_LVCONVERT_RAID: --mirrors SNumber, --stripes_long Number,
|
|
||||||
--stripesize SizeKB, --regionsize RegionSize, --interval Number
|
|
||||||
|
|
||||||
OO_LVCONVERT_POOL: --poolmetadata LV, --poolmetadatasize SizeMB,
|
OO_LVCONVERT_POOL: --poolmetadata LV, --poolmetadatasize SizeMB,
|
||||||
--poolmetadataspare Bool, --readahead Readahead, --chunksize SizeKB,
|
--poolmetadataspare Bool, --readahead Readahead, --chunksize SizeKB,
|
||||||
--zero Bool, --metadataprofile String
|
--zero Bool, --metadataprofile String
|
||||||
@ -323,21 +320,21 @@ OO_LVCONVERT: --alloc Alloc, --background, --force, --noudevsync
|
|||||||
# They are all routed into the core raid conversion code.
|
# They are all routed into the core raid conversion code.
|
||||||
|
|
||||||
lvconvert --type linear LV
|
lvconvert --type linear LV
|
||||||
OO: OO_LVCONVERT_RAID, OO_LVCONVERT
|
OO: OO_LVCONVERT
|
||||||
OP: PV ...
|
OP: PV ...
|
||||||
ID: lvconvert_raid_types
|
ID: lvconvert_raid_types
|
||||||
DESC: Convert LV to linear.
|
DESC: Convert LV to linear.
|
||||||
RULE: all not lv_is_locked lv_is_pvmove
|
RULE: all not lv_is_locked lv_is_pvmove
|
||||||
|
|
||||||
lvconvert --type striped LV
|
lvconvert --type striped LV
|
||||||
OO: OO_LVCONVERT_RAID, OO_LVCONVERT
|
OO: --stripes_long Number, --stripesize SizeKB, --regionsize RegionSize, --interval Number, OO_LVCONVERT
|
||||||
OP: PV ...
|
OP: PV ...
|
||||||
ID: lvconvert_raid_types
|
ID: lvconvert_raid_types
|
||||||
DESC: Convert LV to striped.
|
DESC: Convert LV to striped.
|
||||||
RULE: all not lv_is_locked lv_is_pvmove
|
RULE: all not lv_is_locked lv_is_pvmove
|
||||||
|
|
||||||
lvconvert --type mirror LV
|
lvconvert --type mirror LV
|
||||||
OO: OO_LVCONVERT_RAID, OO_LVCONVERT, --mirrorlog MirrorLog
|
OO: --mirrors SNumber, --regionsize RegionSize, --interval Number, --mirrorlog MirrorLog, OO_LVCONVERT
|
||||||
OP: PV ...
|
OP: PV ...
|
||||||
ID: lvconvert_raid_types
|
ID: lvconvert_raid_types
|
||||||
DESC: Convert LV to type mirror (also see type raid1),
|
DESC: Convert LV to type mirror (also see type raid1),
|
||||||
@ -349,7 +346,7 @@ FLAGS: SECONDARY_SYNTAX
|
|||||||
# (changing layout of raid0 and raid1 not allowed.)
|
# (changing layout of raid0 and raid1 not allowed.)
|
||||||
|
|
||||||
lvconvert --type raid LV
|
lvconvert --type raid LV
|
||||||
OO: OO_LVCONVERT_RAID, OO_LVCONVERT
|
OO: --mirrors SNumber, --stripes_long Number, --stripesize SizeKB, --regionsize RegionSize, --interval Number, OO_LVCONVERT
|
||||||
OP: PV ...
|
OP: PV ...
|
||||||
ID: lvconvert_raid_types
|
ID: lvconvert_raid_types
|
||||||
DESC: Convert LV to raid or change raid layout
|
DESC: Convert LV to raid or change raid layout
|
||||||
@ -357,7 +354,7 @@ DESC: (a specific raid level must be used, e.g. raid1).
|
|||||||
RULE: all not lv_is_locked lv_is_pvmove
|
RULE: all not lv_is_locked lv_is_pvmove
|
||||||
|
|
||||||
lvconvert --mirrors SNumber LV
|
lvconvert --mirrors SNumber LV
|
||||||
OO: OO_LVCONVERT_RAID, OO_LVCONVERT, --mirrorlog MirrorLog
|
OO: --regionsize RegionSize, --interval Number, --mirrorlog MirrorLog, OO_LVCONVERT
|
||||||
OP: PV ...
|
OP: PV ...
|
||||||
ID: lvconvert_raid_types
|
ID: lvconvert_raid_types
|
||||||
DESC: Convert LV to raid1 or mirror, or change number of mirror images.
|
DESC: Convert LV to raid1 or mirror, or change number of mirror images.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user