Convert LV to linear.
lvconvert --type linear
LV
[ COMMON_OPTIONS ]
[ PV ... ]
—
Convert LV to striped.
lvconvert --type striped
LV
[ -I
|--stripesize
Size[k|UNIT] ]
[ -R
|--regionsize
Size[m|UNIT] ]
[ -i
|--interval
Number ]
[ --stripes
Number ]
[ COMMON_OPTIONS ]
[ PV ... ]
—
Convert LV to type mirror (also see type raid1),
lvconvert --type mirror
LV
[ -m
|--mirrors
[+
|-
]Number ]
[ -I
|--stripesize
Size[k|UNIT] ]
[ -R
|--regionsize
Size[m|UNIT] ]
[ -i
|--interval
Number ]
[ --stripes
Number ]
[ --mirrorlog core
|disk
]
[ COMMON_OPTIONS ]
[ PV ... ]
—
Convert LV to raid or change raid layout
(a specific raid level must be used, e.g. raid1).
lvconvert --type raid
LV
[ -m
|--mirrors
[+
|-
]Number ]
[ -I
|--stripesize
Size[k|UNIT] ]
[ -R
|--regionsize
Size[m|UNIT] ]
[ -i
|--interval
Number ]
[ --stripes
Number ]
[ COMMON_OPTIONS ]
[ PV ... ]
—
Convert LV to raid1 or mirror, or change number of mirror images.
lvconvert -m
|--mirrors
[+
|-
]Number LV
[ -R
|--regionsize
Size[m|UNIT] ]
[ -i
|--interval
Number ]
[ --mirrorlog core
|disk
]
[ COMMON_OPTIONS ]
[ PV ... ]
—
Convert raid LV to change number of stripe images.
lvconvert --stripes
Number LV1
[ -i
|--interval
Number ]
[ -R
|--regionsize
Size[m|UNIT] ]
[ -I
|--stripesize
Size[k|UNIT] ]
[ COMMON_OPTIONS ]
[ PV ... ]
LV1 types: raid
—
Convert raid LV to change the stripe size.
lvconvert -I
|--stripesize
Size[k|UNIT] LV1
[ -i
|--interval
Number ]
[ -R
|--regionsize
Size[m|UNIT] ]
[ COMMON_OPTIONS ]
LV1 types: raid
—
Split images from a raid1 or mirror LV and use them to create a
new LV.
lvconvert --splitmirrors
Number -n
|--name
LV_new LV1
[ COMMON_OPTIONS ]
[ PV ... ]
LV1 types: cache mirror raid1
—
Split images from a raid1 LV and track changes to origin for
later merge.
lvconvert --splitmirrors
Number --trackchanges
LV1
[ COMMON_OPTIONS ]
[ PV ... ]
LV1 types: cache raid1
—
Merge LV images that were split from a raid1 LV.
lvconvert --mergemirrors
VG|LV1|Tag ...
[ COMMON_OPTIONS ]
LV1 types: linear raid
—
Convert LV to a thin LV, using the original LV as an external
origin.
lvconvert --type thin --thinpool
LV LV1
[ -T
|--thin
]
[ -r
|--readahead auto
|none
|Number ]
[ -c
|--chunksize
Size[k|UNIT] ]
[ -Z
|--zero y
|n
]
[ --originname
LV_new ]
[ --poolmetadata
LV ]
[ --poolmetadatasize
Size[m|UNIT] ]
[ --poolmetadataspare y
|n
]
[ --metadataprofile
String ]
[ COMMON_OPTIONS ]
LV1 types: linear striped thin cache raid error zero
—
Attach a cache pool to an LV, converts the LV to type cache.
lvconvert --type cache --cachepool
LV LV1
[ -H
|--cache
]
[ -Z
|--zero y
|n
]
[ -r
|--readahead auto
|none
|Number ]
[ -c
|--chunksize
Size[k|UNIT] ]
[ --cachemetadataformat auto
|1
|2
]
[ --cachemode writethrough
|writeback
|passthrough
]
[ --cachepolicy
String ]
[ --cachesettings
String ]
[ --poolmetadata
LV ]
[ --poolmetadatasize
Size[m|UNIT] ]
[ --poolmetadataspare y
|n
]
[ --metadataprofile
String ]
[ COMMON_OPTIONS ]
LV1 types: linear striped thinpool vdo vdopool vdopooldata
raid
—
Attach a writecache to an LV, converts the LV to type writecache.
lvconvert --type writecache --cachevol
LV LV1
[ --cachesettings
String ]
[ COMMON_OPTIONS ]
LV1 types: linear striped thinpool raid
—
Attach a cache to an LV, converts the LV to type cache.
lvconvert --type cache --cachevol
LV LV1
[ -H
|--cache
]
[ -Z
|--zero y
|n
]
[ -c
|--chunksize
Size[k|UNIT] ]
[ --cachemetadataformat auto
|1
|2
]
[ --cachemode writethrough
|writeback
|passthrough
]
[ --cachepolicy
String ]
[ --cachesettings
String ]
[ --poolmetadatasize
Size[m|UNIT] ]
[ COMMON_OPTIONS ]
LV1 types: linear striped thinpool raid
—
Add a writecache to an LV, using a specified cache device.
lvconvert --type writecache --cachedevice
PV LV1
[ --cachesize
Size[m|UNIT] ]
[ --cachesettings
String ]
[ COMMON_OPTIONS ]
LV1 types: linear striped thinpool raid
—
Add a cache to an LV, using a specified cache device.
lvconvert --type cache --cachedevice
PV LV1
[ -c
|--chunksize
Size[k|UNIT] ]
[ --cachesize
Size[m|UNIT] ]
[ --cachesettings
String ]
[ COMMON_OPTIONS ]
LV1 types: linear striped thinpool raid
—
Convert LV to type thin-pool.
lvconvert --type thin-pool
LV1
[ -I
|--stripesize
Size[k|UNIT] ]
[ -r
|--readahead auto
|none
|Number ]
[ -c
|--chunksize
Size[k|UNIT] ]
[ -Z
|--zero y
|n
]
[ --stripes
Number ]
[ --discards passdown
|nopassdown
|ignore
]
[ --errorwhenfull y
|n
]
[ --poolmetadata
LV ]
[ --poolmetadatasize
Size[m|UNIT] ]
[ --poolmetadataspare y
|n
]
[ --metadataprofile
String ]
[ COMMON_OPTIONS ]
[ PV ... ]
LV1 types: linear striped cache raid error zero writecache
—
Convert LV to type cache-pool.
lvconvert --type cache-pool
LV1
[ -Z
|--zero y
|n
]
[ -r
|--readahead auto
|none
|Number ]
[ -c
|--chunksize
Size[k|UNIT] ]
[ --cachemetadataformat auto
|1
|2
]
[ --cachemode writethrough
|writeback
|passthrough
]
[ --cachepolicy
String ]
[ --cachesettings
String ]
[ --poolmetadata
LV ]
[ --poolmetadatasize
Size[m|UNIT] ]
[ --poolmetadataspare y
|n
]
[ --metadataprofile
String ]
[ COMMON_OPTIONS ]
[ PV ... ]
LV1 types: linear striped raid
—
Convert LV to type vdopool.
lvconvert --type vdo-pool
LV1
[ -n
|--name
LV_new ]
[ -V
|--virtualsize
Size[m|UNIT] ]
[ -r
|--readahead auto
|none
|Number ]
[ -Z
|--zero y
|n
]
[ --metadataprofile
String ]
[ --compression y
|n
]
[ --deduplication y
|n
]
[ COMMON_OPTIONS ]
LV1 types: linear striped cache raid
—
Detach a cache from an LV.
lvconvert --splitcache
LV1
[ --cachesettings
String ]
[ COMMON_OPTIONS ]
LV1 types: thinpool cache cachepool vdopool writecache
—
Merge thin LV into its origin LV.
lvconvert --mergethin
LV1 ...
[ COMMON_OPTIONS ]
LV1 types: thin
—
Merge COW snapshot LV into its origin.
lvconvert --mergesnapshot
LV1 ...
[ -i
|--interval
Number ]
[ COMMON_OPTIONS ]
LV1 types: snapshot
—
Combine a former COW snapshot (second arg) with a former
origin LV (first arg) to reverse a splitsnapshot command.
lvconvert --type snapshot
LV LV1
[ -s
|--snapshot
]
[ -c
|--chunksize
Size[k|UNIT] ]
[ -Z
|--zero y
|n
]
[ COMMON_OPTIONS ]
LV1 types: linear striped
—
Replace failed PVs in a raid or mirror LV.
Repair a thin pool.
Repair a cache pool.
lvconvert --repair
LV1
[ -i
|--interval
Number ]
[ --usepolicies
]
[ --poolmetadataspare y
|n
]
[ COMMON_OPTIONS ]
[ PV ... ]
LV1 types: thinpool cache cachepool mirror raid
—
Replace specific PV(s) in a raid LV with another PV.
lvconvert --replace
PV LV1
[ COMMON_OPTIONS ]
[ PV ... ]
LV1 types: raid
—
Poll LV to continue conversion.
lvconvert --startpoll
LV1
[ COMMON_OPTIONS ]
LV1 types: mirror raid
—
Add or remove data integrity checksums to raid images.
lvconvert --raidintegrity y
|n
LV1
[ --raidintegritymode
String ]
[ --raidintegrityblocksize
Number ]
[ COMMON_OPTIONS ]
[ PV ... ]
LV1 types: raid
—
Common options for command:
[ -b
|--background
]
[ -f
|--force
]
[ --alloc contiguous
|cling
|cling_by_tags
|normal
|anywhere
|
inherit
]
[ --noudevsync
]
Common options for lvm:
[ -d
|--debug
]
[ -h
|--help
]
[ -q
|--quiet
]
[ -t
|--test
]
[ -v
|--verbose
]
[ -y
|--yes
]
[ --commandprofile
String ]
[ --config
String ]
[ --devices
PV ]
[ --devicesfile
String ]
[ --driverloaded y
|n
]
[ --lockopt
String ]
[ --longhelp
]
[ --nolocking
]
[ --profile
String ]
[ --version
]