diff options
author | David Teigland <teigland@redhat.com> | 2017-03-10 14:05:15 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2017-03-10 14:05:15 -0600 |
commit | 15682270f4557958d5e2994990534b652229857d (patch) | |
tree | 65f4bb641ff0c147ff752dcb7a9aabddfd90bdba | |
parent | 5d3e870946fecdc6deefbef41430ec561eed183a (diff) | |
download | lvm2-15682270f4557958d5e2994990534b652229857d.tar.gz |
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.
-rw-r--r-- | tools/command-lines.in | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tools/command-lines.in b/tools/command-lines.in index f87bf2322..96510535f 100644 --- a/tools/command-lines.in +++ b/tools/command-lines.in @@ -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, --poolmetadataspare Bool, --readahead Readahead, --chunksize SizeKB, --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. lvconvert --type linear LV -OO: OO_LVCONVERT_RAID, OO_LVCONVERT +OO: OO_LVCONVERT OP: PV ... ID: lvconvert_raid_types DESC: Convert LV to linear. RULE: all not lv_is_locked lv_is_pvmove lvconvert --type striped LV -OO: OO_LVCONVERT_RAID, OO_LVCONVERT +OO: --stripes_long Number, --stripesize SizeKB, --regionsize RegionSize, --interval Number, OO_LVCONVERT OP: PV ... ID: lvconvert_raid_types DESC: Convert LV to striped. RULE: all not lv_is_locked lv_is_pvmove 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 ... ID: lvconvert_raid_types 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.) 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 ... ID: lvconvert_raid_types 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 lvconvert --mirrors SNumber LV -OO: OO_LVCONVERT_RAID, OO_LVCONVERT, --mirrorlog MirrorLog +OO: --regionsize RegionSize, --interval Number, --mirrorlog MirrorLog, OO_LVCONVERT OP: PV ... ID: lvconvert_raid_types DESC: Convert LV to raid1 or mirror, or change number of mirror images. |