1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/man/lvconvert.8_pregen

1960 lines
45 KiB
Plaintext
Raw Normal View History

.TH LVCONVERT 8 "LVM TOOLS #VERSION#" "Red Hat, Inc."
2021-04-15 21:11:52 +03:00
.
.SH NAME
2021-04-15 21:11:52 +03:00
.
lvconvert \(em Change logical volume layout
.
.SH SYNOPSIS
2021-04-15 21:11:52 +03:00
.
\fBlvconvert\fP \fIoption_args\fP \fIposition_args\fP
.br
[ \fIoption_args\fP ]
.br
[ \fIposition_args\fP ]
.br
.P
.ad l
2021-04-15 21:11:52 +03:00
\fB--alloc\fP \c
2021-04-08 22:08:48 +03:00
.nh
2021-04-15 21:11:52 +03:00
\%\fBcontiguous\fP|\:\fBcling\fP|\:\fBcling_by_tags\fP|\:\fBnormal\fP|\:\fBanywhere\fP|\:\fBinherit\fP
2021-04-08 22:08:48 +03:00
.hy
.br
\fB-b\fP|\fB--background\fP
.br
\fB-H\fP|\fB--cache\fP
.br
2020-06-23 13:19:35 +03:00
\fB--cachedevice\fP \fIPV\fP
.br
\fB--cachemetadataformat\fP \fBauto\fP|\fB1\fP|\fB2\fP
.br
\fB--cachemode\fP \fBwritethrough\fP|\fBwriteback\fP|\fBpassthrough\fP
.br
\fB--cachepolicy\fP \fIString\fP
.br
\fB--cachepool\fP \fILV\fP
.br
\fB--cachesettings\fP \fIString\fP
.br
2020-06-23 13:19:35 +03:00
\fB--cachesize\fP \fISize\fP[m|UNIT]
.br
2019-06-07 18:59:43 +03:00
\fB--cachevol\fP \fILV\fP
.br
\fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT]
.br
\fB--commandprofile\fP \fIString\fP
.br
2018-10-10 09:31:55 +03:00
\fB--compression\fP \fBy\fP|\fBn\fP
.br
\fB--config\fP \fIString\fP
.br
\fB-d\fP|\fB--debug\fP
.br
2018-10-10 09:31:55 +03:00
\fB--deduplication\fP \fBy\fP|\fBn\fP
.br
2021-02-24 14:40:15 +03:00
\fB--devices\fP \fIPV\fP
.br
\fB--devicesfile\fP \fIString\fP
.br
\fB--discards\fP \fBpassdown\fP|\fBnopassdown\fP|\fBignore\fP
.br
\fB--driverloaded\fP \fBy\fP|\fBn\fP
.br
2021-02-16 23:30:06 +03:00
\fB--errorwhenfull\fP \fBy\fP|\fBn\fP
.br
\fB-f\fP|\fB--force\fP
.br
\fB-h\fP|\fB--help\fP
.br
\fB-i\fP|\fB--interval\fP \fINumber\fP
2021-08-06 14:23:11 +03:00
.br
\fB--journal\fP \fIString\fP
.br
2018-01-12 03:30:52 +03:00
\fB--lockopt\fP \fIString\fP
.br
\fB--longhelp\fP
.br
\fB--merge\fP
.br
\fB--mergemirrors\fP
.br
\fB--mergesnapshot\fP
.br
\fB--mergethin\fP
.br
\fB--metadataprofile\fP \fIString\fP
.br
\fB--mirrorlog\fP \fBcore\fP|\fBdisk\fP
.br
\fB-m\fP|\fB--mirrors\fP [\fB+\fP|\fB-\fP]\fINumber\fP
.br
\fB-n\fP|\fB--name\fP \fIString\fP
2021-09-22 15:48:58 +03:00
.br
\fB--nohints\fP
.br
2018-06-08 23:16:00 +03:00
\fB--nolocking\fP
.br
\fB--noudevsync\fP
.br
\fB--originname\fP \fILV\fP
.br
\fB--poolmetadata\fP \fILV\fP
.br
\fB--poolmetadatasize\fP \fISize\fP[m|UNIT]
.br
\fB--poolmetadataspare\fP \fBy\fP|\fBn\fP
.br
\fB--profile\fP \fIString\fP
.br
\fB-q\fP|\fB--quiet\fP
.br
2020-05-21 16:02:31 +03:00
\fB--raidintegrity\fP \fBy\fP|\fBn\fP
.br
\fB--raidintegrityblocksize\fP \fINumber\fP
.br
\fB--raidintegritymode\fP \fIString\fP
.br
\fB-r\fP|\fB--readahead\fP \fBauto\fP|\fBnone\fP|\fINumber\fP
.br
\fB-R\fP|\fB--regionsize\fP \fISize\fP[m|UNIT]
.br
\fB--repair\fP
.br
\fB--replace\fP \fIPV\fP
.br
\fB-s\fP|\fB--snapshot\fP
.br
\fB--splitcache\fP
.br
\fB--splitmirrors\fP \fINumber\fP
.br
\fB--splitsnapshot\fP
.br
\fB--startpoll\fP
.br
\fB--stripes\fP \fINumber\fP
.br
\fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT]
.br
\fB--swapmetadata\fP
.br
\fB-t\fP|\fB--test\fP
.br
\fB-T\fP|\fB--thin\fP
.br
\fB--thinpool\fP \fILV\fP
.br
\fB--trackchanges\fP
.br
2021-04-15 21:11:52 +03:00
\fB--type\fP \c
2021-04-08 22:08:48 +03:00
.nh
2021-04-15 21:11:52 +03:00
\%\fBlinear\fP|\:\fBstriped\fP|\:\fBsnapshot\fP|\:\fBraid\fP|\:\fBmirror\fP|\:\fBthin\fP|\:\fBthin-pool\fP|\:\fBvdo\fP|\:\fBvdo-pool\fP|\:\fBcache\fP|\:\fBcache-pool\fP|\:\fBwritecache\fP
2021-04-08 22:08:48 +03:00
.hy
.br
\fB--uncache\fP
.br
\fB--usepolicies\fP
.br
2018-10-10 09:31:55 +03:00
\fB--vdopool\fP \fILV\fP
2022-05-02 14:16:25 +03:00
.br
\fB--vdosettings\fP \fIString\fP
2018-10-10 09:31:55 +03:00
.br
\fB-v\fP|\fB--verbose\fP
.br
\fB--version\fP
.br
2018-10-10 09:31:55 +03:00
\fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT]
.br
\fB-y\fP|\fB--yes\fP
.br
\fB-Z\fP|\fB--zero\fP \fBy\fP|\fBn\fP
.ad b
2021-04-15 21:11:52 +03:00
.
.SH DESCRIPTION
2021-04-15 21:11:52 +03:00
.
lvconvert changes the LV type and includes utilities for LV data
maintenance. The LV type controls data layout and redundancy.
The LV type is also called the segment type or segtype.
2021-04-15 21:11:52 +03:00
.P
To display the current LV type, run the command:
2021-04-15 21:11:52 +03:00
.P
.B lvs -o name,segtype
.I LV
2021-04-15 21:11:52 +03:00
.P
2017-04-13 02:30:05 +03:00
In some cases, an LV is a single device mapper (dm) layer above physical
devices. In other cases, hidden LVs (dm devices) are layered between the
visible LV and physical devices. LVs in the middle layers are called sub LVs.
A command run on a visible LV sometimes operates on a sub LV rather than
the specified LV. In other cases, a sub LV must be specified directly on
the command line.
2021-04-15 21:11:52 +03:00
.P
2017-04-13 02:30:05 +03:00
Sub LVs can be displayed with the command:
2021-04-15 21:11:52 +03:00
.P
2017-04-13 02:30:05 +03:00
.B lvs -a
2021-04-15 21:11:52 +03:00
.P
The
.B linear
type is equivalent to the
.B striped
type when one stripe exists.
In that case, the types can sometimes be used interchangeably.
2021-04-15 21:11:52 +03:00
.P
In most cases, the
.B mirror
type is deprecated and the
.B raid1
type should be used. They are both implementations of mirroring.
2021-04-15 21:11:52 +03:00
.P
Striped raid types are
2017-04-13 02:30:05 +03:00
\fBraid0/raid0_meta\fP,
\fBraid5\fP (an alias for raid5_ls),
\fBraid6\fP (an alias for raid6_zr) and
\fBraid10\fP (an alias for raid10_near).
2021-04-15 21:11:52 +03:00
.P
As opposed to mirroring, raid5 and raid6 stripe data and calculate parity
2017-04-13 02:30:05 +03:00
blocks. The parity blocks can be used for data block recovery in case
devices fail. A maximum number of one device in a raid5 LV may fail, and
two in case of raid6. Striped raid types typically rotate the parity and
data blocks for performance reasons, thus avoiding contention on a single
device. Specific arrangements of parity and data blocks (layouts) can be
used to optimize I/O performance, or to convert between raid levels. See
\fBlvmraid\fP(7) for more information.
2021-04-15 21:11:52 +03:00
.P
2017-04-13 02:30:05 +03:00
Layouts of raid5 rotating parity blocks can be: left-asymmetric
(raid5_la), left-symmetric (raid5_ls with alias raid5), right-asymmetric
(raid5_ra), right-symmetric (raid5_rs) and raid5_n, which doesn't rotate
parity blocks. Layouts of raid6 are: zero-restart (raid6_zr with alias
raid6), next-restart (raid6_nr), and next-continue (raid6_nc).
2021-04-15 21:11:52 +03:00
.P
2017-04-13 02:30:05 +03:00
Layouts including _n allow for conversion between raid levels (raid5_n to
raid6 or raid5_n to striped/raid0/raid0_meta). Additionally, special raid6
layouts for raid level conversions between raid5 and raid6 are:
raid6_ls_6, raid6_rs_6, raid6_la_6 and raid6_ra_6. Those correspond to
their raid5 counterparts (e.g. raid5_rs can be directly converted to
raid6_rs_6 and vice-versa).
2021-04-15 21:11:52 +03:00
.P
2017-04-13 02:30:05 +03:00
raid10 (an alias for raid10_near) is currently limited to one data copy
and even number of sub LVs. This is a mirror group layout, thus a single
sub LV may fail per mirror group without data loss.
2021-04-15 21:11:52 +03:00
.P
2017-04-13 02:30:05 +03:00
Striped raid types support converting the layout, their stripesize and
their number of stripes.
2021-04-15 21:11:52 +03:00
.P
2017-04-13 02:30:05 +03:00
The striped raid types combined with raid1 allow for conversion from
2021-04-15 21:11:52 +03:00
linear \[->] striped/raid0/raid0_meta and vice-versa by e.g. linear \[<>] raid1
\[<>] raid5_n (then adding stripes) \[<>] striped/raid0/raid0_meta.
.
.SH USAGE
2021-04-15 21:11:52 +03:00
.
Convert LV to linear.
.br
.P
\fBlvconvert\fP \fB--type\fP \fBlinear\fP \fILV\fP
.br
.RS 4
2021-04-15 21:11:52 +03:00
.ad l
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
Convert LV to striped.
.br
.P
\fBlvconvert\fP \fB--type\fP \fBstriped\fP \fILV\fP
.br
.RS 4
.ad l
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB-R\fP|\fB--regionsize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB-i\fP|\fB--interval\fP \fINumber\fP ]
.br
[ \fB--stripes\fP \fINumber\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
2019-08-09 13:56:28 +03:00
Convert LV to type mirror (also see type raid1),
.br
.P
\fBlvconvert\fP \fB--type\fP \fBmirror\fP \fILV\fP
.br
.RS 4
.ad l
[ \fB-m\fP|\fB--mirrors\fP [\fB+\fP|\fB-\fP]\fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB-R\fP|\fB--regionsize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB-i\fP|\fB--interval\fP \fINumber\fP ]
.br
[ \fB--stripes\fP \fINumber\fP ]
.br
[ \fB--mirrorlog\fP \fBcore\fP|\fBdisk\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
2019-08-09 13:56:28 +03:00
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
Convert LV to raid or change raid layout
.br
(a specific raid level must be used, e.g. raid1).
.br
.P
\fBlvconvert\fP \fB--type\fP \fBraid\fP \fILV\fP
.br
.RS 4
.ad l
[ \fB-m\fP|\fB--mirrors\fP [\fB+\fP|\fB-\fP]\fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB-R\fP|\fB--regionsize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB-i\fP|\fB--interval\fP \fINumber\fP ]
.br
[ \fB--stripes\fP \fINumber\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
Convert LV to raid1 or mirror, or change number of mirror images.
.br
.P
\fBlvconvert\fP \fB-m\fP|\fB--mirrors\fP [\fB+\fP|\fB-\fP]\fINumber\fP \fILV\fP
.br
.RS 4
.ad l
[ \fB-R\fP|\fB--regionsize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB-i\fP|\fB--interval\fP \fINumber\fP ]
.br
[ \fB--mirrorlog\fP \fBcore\fP|\fBdisk\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
Convert raid LV to change number of stripe images.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--stripes\fP \fINumber\fP \fILV1\fP
.br
.RS 4
.ad l
[ \fB-i\fP|\fB--interval\fP \fINumber\fP ]
.br
[ \fB-R\fP|\fB--regionsize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: raid
.RE
.P
\(em
.P
Convert raid LV to change the stripe size.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] \fILV1\fP
.br
.RS 4
.ad l
[ \fB-i\fP|\fB--interval\fP \fINumber\fP ]
.br
[ \fB-R\fP|\fB--regionsize\fP \fISize\fP[m|UNIT] ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: raid
.RE
.P
\(em
.P
Split images from a raid1 or mirror LV and use them to create a new LV.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--splitmirrors\fP \fINumber\fP \fB-n\fP|\fB--name\fP \fILV\fP\fI_new\fP \fILV1\fP
.br
.RS 4
2021-04-15 21:11:52 +03:00
.ad l
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: cache mirror raid1
.RE
.P
\(em
.P
2018-10-10 09:31:55 +03:00
Split images from a raid1 LV and track changes to origin for later merge.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--splitmirrors\fP \fINumber\fP \fB--trackchanges\fP \fILV1\fP
.br
.RS 4
2021-04-15 21:11:52 +03:00
.ad l
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: cache raid1
.RE
.P
\(em
.P
Merge LV images that were split from a raid1 LV.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--mergemirrors\fP \fIVG\fP|\fILV1\fP|\fITag\fP ...
.br
.RS 4
2021-04-15 21:11:52 +03:00
.ad l
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: linear raid
.RE
.P
\(em
.P
Convert LV to a thin LV, using the original LV as an external origin.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--type\fP \fBthin\fP \fB--thinpool\fP \fILV\fP \fILV1\fP
.br
.RS 4
.ad l
[ \fB-T\fP|\fB--thin\fP ]
.br
[ \fB-r\fP|\fB--readahead\fP \fBauto\fP|\fBnone\fP|\fINumber\fP ]
.br
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB-Z\fP|\fB--zero\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--originname\fP \fILV\fP\fI_new\fP ]
.br
[ \fB--poolmetadata\fP \fILV\fP ]
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB--poolmetadataspare\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--metadataprofile\fP \fIString\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: linear striped thin cache raid error zero
.RE
.P
\(em
.P
2019-06-07 18:59:43 +03:00
Attach a cache pool to an LV, converts the LV to type cache.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--type\fP \fBcache\fP \fB--cachepool\fP \fILV\fP \fILV1\fP
.br
.RS 4
.ad l
[ \fB-H\fP|\fB--cache\fP ]
.br
[ \fB-Z\fP|\fB--zero\fP \fBy\fP|\fBn\fP ]
.br
[ \fB-r\fP|\fB--readahead\fP \fBauto\fP|\fBnone\fP|\fINumber\fP ]
.br
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--cachemetadataformat\fP \fBauto\fP|\fB1\fP|\fB2\fP ]
.br
[ \fB--cachemode\fP \fBwritethrough\fP|\fBwriteback\fP|\fBpassthrough\fP ]
.br
[ \fB--cachepolicy\fP \fIString\fP ]
.br
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ \fB--poolmetadata\fP \fILV\fP ]
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB--poolmetadataspare\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--metadataprofile\fP \fIString\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: linear striped thinpool vdo vdopool vdopooldata raid
.RE
.P
\(em
.P
2018-11-30 01:08:25 +03:00
Attach a writecache to an LV, converts the LV to type writecache.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--type\fP \fBwritecache\fP \fB--cachevol\fP \fILV\fP \fILV1\fP
2018-11-30 01:08:25 +03:00
.br
.RS 4
.ad l
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
2018-11-30 01:08:25 +03:00
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
2021-05-07 18:44:43 +03:00
LV1 types: linear striped thinpool raid
2021-04-15 21:11:52 +03:00
.RE
.P
\(em
.P
2019-06-07 18:59:43 +03:00
Attach a cache to an LV, converts the LV to type cache.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--type\fP \fBcache\fP \fB--cachevol\fP \fILV\fP \fILV1\fP
2019-06-07 18:59:43 +03:00
.br
.RS 4
.ad l
[ \fB-H\fP|\fB--cache\fP ]
.br
[ \fB-Z\fP|\fB--zero\fP \fBy\fP|\fBn\fP ]
.br
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--cachemetadataformat\fP \fBauto\fP|\fB1\fP|\fB2\fP ]
.br
[ \fB--cachemode\fP \fBwritethrough\fP|\fBwriteback\fP|\fBpassthrough\fP ]
.br
[ \fB--cachepolicy\fP \fIString\fP ]
.br
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
2019-06-07 18:59:43 +03:00
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: linear striped thinpool raid
.RE
.P
\(em
.P
2020-06-23 13:19:35 +03:00
Add a writecache to an LV, using a specified cache device.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--type\fP \fBwritecache\fP \fB--cachedevice\fP \fIPV\fP \fILV1\fP
2020-06-23 13:19:35 +03:00
.br
.RS 4
.ad l
[ \fB--cachesize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
2020-06-23 13:19:35 +03:00
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
2021-05-07 18:44:43 +03:00
LV1 types: linear striped thinpool raid
2021-04-15 21:11:52 +03:00
.RE
.P
\(em
.P
2020-06-23 13:19:35 +03:00
Add a cache to an LV, using a specified cache device.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--type\fP \fBcache\fP \fB--cachedevice\fP \fIPV\fP \fILV1\fP
2020-06-23 13:19:35 +03:00
.br
.RS 4
.ad l
2021-01-18 16:46:22 +03:00
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
2020-06-23 13:19:35 +03:00
[ \fB--cachesize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
2020-06-23 13:19:35 +03:00
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: linear striped thinpool raid
.RE
.P
\(em
.P
Convert LV to type thin-pool.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--type\fP \fBthin-pool\fP \fILV1\fP
.br
.RS 4
.ad l
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB-r\fP|\fB--readahead\fP \fBauto\fP|\fBnone\fP|\fINumber\fP ]
.br
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB-Z\fP|\fB--zero\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--stripes\fP \fINumber\fP ]
.br
[ \fB--discards\fP \fBpassdown\fP|\fBnopassdown\fP|\fBignore\fP ]
.br
2021-02-16 23:30:06 +03:00
[ \fB--errorwhenfull\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--poolmetadata\fP \fILV\fP ]
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB--poolmetadataspare\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--metadataprofile\fP \fIString\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
2021-06-28 19:10:41 +03:00
LV1 types: linear striped cache raid error zero writecache
2021-04-15 21:11:52 +03:00
.RE
.P
\(em
.P
Convert LV to type cache-pool.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--type\fP \fBcache-pool\fP \fILV1\fP
.br
.RS 4
.ad l
[ \fB-Z\fP|\fB--zero\fP \fBy\fP|\fBn\fP ]
.br
[ \fB-r\fP|\fB--readahead\fP \fBauto\fP|\fBnone\fP|\fINumber\fP ]
.br
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--cachemetadataformat\fP \fBauto\fP|\fB1\fP|\fB2\fP ]
.br
[ \fB--cachemode\fP \fBwritethrough\fP|\fBwriteback\fP|\fBpassthrough\fP ]
.br
[ \fB--cachepolicy\fP \fIString\fP ]
.br
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ \fB--poolmetadata\fP \fILV\fP ]
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB--poolmetadataspare\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--metadataprofile\fP \fIString\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: linear striped raid
.RE
.P
\(em
.P
2018-10-10 09:31:55 +03:00
Convert LV to type vdopool.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--type\fP \fBvdo-pool\fP \fILV1\fP
2018-10-10 09:31:55 +03:00
.br
.RS 4
.ad l
[ \fB-n\fP|\fB--name\fP \fILV\fP\fI_new\fP ]
.br
[ \fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT] ]
.br
2021-02-16 23:30:06 +03:00
[ \fB-r\fP|\fB--readahead\fP \fBauto\fP|\fBnone\fP|\fINumber\fP ]
.br
[ \fB-Z\fP|\fB--zero\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--metadataprofile\fP \fIString\fP ]
.br
2018-10-10 09:31:55 +03:00
[ \fB--compression\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--deduplication\fP \fBy\fP|\fBn\fP ]
.br
2022-05-02 14:16:25 +03:00
[ \fB--vdosettings\fP \fIString\fP ]
.br
2018-10-10 09:31:55 +03:00
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
.P
.RS 4
LV1 types: linear striped cache raid
2018-10-10 09:31:55 +03:00
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
2018-11-30 01:08:25 +03:00
Detach a cache from an LV.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--splitcache\fP \fILV1\fP
.br
.RS 4
2020-10-15 12:16:54 +03:00
.ad l
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: thinpool cache cachepool vdopool writecache
.RE
.P
\(em
.P
Merge thin LV into its origin LV.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--mergethin\fP \fILV1\fP ...
.br
.RS 4
2021-04-15 21:11:52 +03:00
.ad l
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: thin
.RE
.P
\(em
.P
Merge COW snapshot LV into its origin.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--mergesnapshot\fP \fILV1\fP ...
.br
.RS 4
.ad l
[ \fB-i\fP|\fB--interval\fP \fINumber\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: snapshot
.RE
.P
\(em
.P
2017-11-15 04:05:07 +03:00
Combine a former COW snapshot (second arg) with a former
.br
origin LV (first arg) to reverse a splitsnapshot command.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--type\fP \fBsnapshot\fP \fILV\fP \fILV1\fP
2017-11-15 04:05:07 +03:00
.br
.RS 4
.ad l
[ \fB-s\fP|\fB--snapshot\fP ]
.br
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB-Z\fP|\fB--zero\fP \fBy\fP|\fBn\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
2017-11-15 04:05:07 +03:00
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: linear striped
.RE
.P
\(em
.P
Replace failed PVs in a raid or mirror LV.
.br
2017-10-07 01:10:02 +03:00
Repair a thin pool.
.br
Repair a cache pool.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--repair\fP \fILV1\fP
.br
.RS 4
.ad l
[ \fB-i\fP|\fB--interval\fP \fINumber\fP ]
.br
[ \fB--usepolicies\fP ]
.br
2017-10-07 01:10:02 +03:00
[ \fB--poolmetadataspare\fP \fBy\fP|\fBn\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: thinpool cache cachepool mirror raid
.RE
.P
\(em
.P
Replace specific PV(s) in a raid LV with another PV.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--replace\fP \fIPV\fP \fILV1\fP
.br
.RS 4
2021-04-15 21:11:52 +03:00
.ad l
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: raid
.RE
.P
\(em
.P
Poll LV to continue conversion.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--startpoll\fP \fILV1\fP
.br
.RS 4
2021-04-15 21:11:52 +03:00
.ad l
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: mirror raid
.RE
.P
\(em
.P
2020-05-21 16:02:31 +03:00
Add or remove data integrity checksums to raid images.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--raidintegrity\fP \fBy\fP|\fBn\fP \fILV1\fP
2020-05-21 16:02:31 +03:00
.br
.RS 4
.ad l
[ \fB--raidintegritymode\fP \fIString\fP ]
.br
[ \fB--raidintegrityblocksize\fP \fINumber\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
2020-05-21 16:02:31 +03:00
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: raid
.RE
.P
\(em
.P
Common options for command:
.
.RS 4
.ad l
[ \fB-b\fP|\fB--background\fP ]
.br
[ \fB-f\fP|\fB--force\fP ]
.br
2021-04-15 21:11:52 +03:00
[ \fB--alloc\fP \c
2021-04-08 22:08:48 +03:00
.nh
2021-04-15 21:11:52 +03:00
\%\fBcontiguous\fP|\:\fBcling\fP|\:\fBcling_by_tags\fP|\:\fBnormal\fP|\:\fBanywhere\fP|\:\fBinherit\fP
2021-04-08 22:08:48 +03:00
.hy
]
.br
[ \fB--noudevsync\fP ]
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
Common options for lvm:
.
.RS 4
.ad l
[ \fB-d\fP|\fB--debug\fP ]
.br
[ \fB-h\fP|\fB--help\fP ]
.br
[ \fB-q\fP|\fB--quiet\fP ]
.br
[ \fB-t\fP|\fB--test\fP ]
.br
[ \fB-v\fP|\fB--verbose\fP ]
.br
[ \fB-y\fP|\fB--yes\fP ]
.br
[ \fB--commandprofile\fP \fIString\fP ]
.br
[ \fB--config\fP \fIString\fP ]
.br
2021-02-24 14:40:15 +03:00
[ \fB--devices\fP \fIPV\fP ]
.br
[ \fB--devicesfile\fP \fIString\fP ]
.br
[ \fB--driverloaded\fP \fBy\fP|\fBn\fP ]
.br
2021-08-06 14:23:11 +03:00
[ \fB--journal\fP \fIString\fP ]
.br
2018-01-12 03:30:52 +03:00
[ \fB--lockopt\fP \fIString\fP ]
.br
[ \fB--longhelp\fP ]
.br
2021-09-22 15:48:58 +03:00
[ \fB--nohints\fP ]
.br
2018-06-08 23:16:00 +03:00
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
.br
[ \fB--version\fP ]
.ad b
.RE
2021-04-15 21:11:52 +03:00
.
.SH OPTIONS
2021-04-15 21:11:52 +03:00
.
.
.HP
.ad l
2021-04-15 21:11:52 +03:00
\fB--alloc\fP \c
2021-04-08 22:08:48 +03:00
.nh
2021-04-15 21:11:52 +03:00
\%\fBcontiguous\fP|\:\fBcling\fP|\:\fBcling_by_tags\fP|\:\fBnormal\fP|\:\fBanywhere\fP|\:\fBinherit\fP
2021-04-08 22:08:48 +03:00
.hy
.ad b
2021-04-15 21:11:52 +03:00
.br
Determines the allocation policy when a command needs to allocate
Physical Extents (PEs) from the VG. Each VG and LV has an allocation policy
2020-10-03 14:52:37 +03:00
which can be changed with vgchange/lvchange, or overridden on the
command line.
\fBnormal\fP applies common sense rules such as not placing parallel stripes
on the same PV.
\fBinherit\fP applies the VG policy to an LV.
\fBcontiguous\fP requires new PEs be placed adjacent to existing PEs.
\fBcling\fP places new PEs on the same PV as existing PEs in the same
stripe of the LV.
If there are sufficient PEs for an allocation, but normal does not
use them, \fBanywhere\fP will use them even if it reduces performance,
e.g. by placing two stripes on the same PV.
Optional positional PV args on the command line can also be used to limit
which PVs the command will use for allocation.
See \fBlvm\fP(8) for more information about allocation.
2021-04-15 21:11:52 +03:00
.
.HP
2018-11-30 01:08:25 +03:00
\fB-b\fP|\fB--background\fP
.br
If the operation requires polling, this option causes the command to
return before the operation is complete, and polling is done in the
background.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-H\fP|\fB--cache\fP
.br
Specifies the command is handling a cache LV or cache pool.
See --type cache and --type cache-pool.
See \fBlvmcache\fP(7) for more information about LVM caching.
2021-04-15 21:11:52 +03:00
.
.HP
2020-06-23 13:19:35 +03:00
\fB--cachedevice\fP \fIPV\fP
.br
2021-04-08 22:08:48 +03:00
The name of a device to use for a cache.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--cachemetadataformat\fP \fBauto\fP|\fB1\fP|\fB2\fP
.br
2021-04-08 22:08:48 +03:00
Specifies the cache metadata format used by cache target.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--cachemode\fP \fBwritethrough\fP|\fBwriteback\fP|\fBpassthrough\fP
.br
Specifies when writes to a cache LV should be considered complete.
\fBwriteback\fP considers a write complete as soon as it is
stored in the cache pool.
\fBwritethough\fP considers a write complete only when it has
been stored in both the cache pool and on the origin LV.
While writethrough may be slower for writes, it is more
resilient if something should happen to a device associated with the
cache pool LV. With \fBpassthrough\fP, all reads are served
from the origin LV (all reads miss the cache) and all writes are
forwarded to the origin LV; additionally, write hits cause cache
block invalidates. See \fBlvmcache\fP(7) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--cachepolicy\fP \fIString\fP
.br
Specifies the cache policy for a cache LV.
See \fBlvmcache\fP(7) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--cachepool\fP \fILV\fP
.br
2021-04-08 22:08:48 +03:00
The name of a cache pool.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--cachesettings\fP \fIString\fP
.br
2022-05-02 14:16:25 +03:00
Specifies tunable kernel options for dm-cache or dm-writecache LVs.
Use the form 'option=value' or 'option1=value option2=value', or
repeat --cachesettings for each option being set.
These settings override the default kernel behaviors which are
usually adequate. To remove cachesettings and revert to the default
kernel behaviors, use --cachesettings 'default' for dm-cache or
an empty string --cachesettings '' for dm-writecache.
See \fBlvmcache\fP(7) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
2020-06-23 13:19:35 +03:00
\fB--cachesize\fP \fISize\fP[m|UNIT]
.br
2021-04-08 22:08:48 +03:00
The size of cache to use.
2021-04-15 21:11:52 +03:00
.
.HP
2019-06-07 18:59:43 +03:00
\fB--cachevol\fP \fILV\fP
.br
2021-04-08 22:08:48 +03:00
The name of a cache volume.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT]
.br
The size of chunks in a snapshot, cache pool or thin pool.
For snapshots, the value must be a power of 2 between 4 KiB and 512 KiB
and the default value is 4.
For a cache pool the value must be between 32 KiB and 1 GiB
and the default value is 64.
For a thin pool the value must be between 64 KiB and 1 GiB
and the default value starts with 64 and scales up to fit the
pool metadata size within 128 MiB, if the pool metadata size is not specified.
The value must be a multiple of 64 KiB.
See \fBlvmthin\fP(7) and \fBlvmcache\fP(7) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--commandprofile\fP \fIString\fP
.br
The command profile to use for command configuration.
See \fBlvm.conf\fP(5) for more information about profiles.
2021-04-15 21:11:52 +03:00
.
.HP
2018-10-10 09:31:55 +03:00
\fB--compression\fP \fBy\fP|\fBn\fP
.br
Controls whether compression is enabled or disable for VDO volume.
See \fBlvmvdo\fP(7) for more information about VDO usage.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--config\fP \fIString\fP
.br
2021-04-15 21:11:52 +03:00
Config settings for the command. These override \fBlvm.conf\fP(5) settings.
The String arg uses the same format as \fBlvm.conf\fP(5),
or may use section/field syntax.
See \fBlvm.conf\fP(5) for more information about config.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-d\fP|\fB--debug\fP ...
.br
Set debug level. Repeat from 1 to 6 times to increase the detail of
messages sent to the log file and/or syslog (if configured).
2021-04-15 21:11:52 +03:00
.
.HP
2018-10-10 09:31:55 +03:00
\fB--deduplication\fP \fBy\fP|\fBn\fP
.br
Controls whether deduplication is enabled or disable for VDO volume.
See \fBlvmvdo\fP(7) for more information about VDO usage.
2021-04-15 21:11:52 +03:00
.
.HP
2021-02-24 14:40:15 +03:00
\fB--devices\fP \fIPV\fP
.br
2022-05-18 19:15:30 +03:00
Restricts the devices that are visible and accessible to the command.
Devices not listed will appear to be missing. This option can be
repeated, or accepts a comma separated list of devices. This overrides
2021-02-24 14:40:15 +03:00
the devices file.
2021-04-15 21:11:52 +03:00
.
.HP
2021-02-24 14:40:15 +03:00
\fB--devicesfile\fP \fIString\fP
.br
A file listing devices that LVM should use.
2021-04-15 21:11:52 +03:00
The file must exist in \fI#DEFAULT_SYS_DIR#/devices/\fP and is managed
with the \fBlvmdevices\fP(8) command.
This overrides the \fBlvm.conf\fP(5) \fBdevices/devicesfile\fP and
\fBdevices/use_devicesfile\fP settings.
.
.HP
\fB--discards\fP \fBpassdown\fP|\fBnopassdown\fP|\fBignore\fP
.br
Specifies how the device-mapper thin pool layer in the kernel should
handle discards.
\fBignore\fP causes the thin pool to ignore discards.
\fBnopassdown\fP causes the thin pool to process discards itself to
allow reuse of unneeded extents in the thin pool.
\fBpassdown\fP causes the thin pool to process discards itself
(like nopassdown) and pass the discards to the underlying device.
See \fBlvmthin\fP(7) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--driverloaded\fP \fBy\fP|\fBn\fP
.br
If set to no, the command will not attempt to use device-mapper.
For testing and debugging.
2021-04-15 21:11:52 +03:00
.
.HP
2021-02-16 23:30:06 +03:00
\fB--errorwhenfull\fP \fBy\fP|\fBn\fP
.br
Specifies thin pool behavior when data space is exhausted.
When yes, device-mapper will immediately return an error
when a thin pool is full and an I/O request requires space.
When no, device-mapper will queue these I/O requests for a
period of time to allow the thin pool to be extended.
Errors are returned if no space is available after the timeout.
(Also see dm-thin-pool kernel module option no_space_timeout.)
See \fBlvmthin\fP(7) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-f\fP|\fB--force\fP ...
.br
Override various checks, confirmations and protections.
Use with extreme caution.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-h\fP|\fB--help\fP
.br
2021-04-08 22:08:48 +03:00
Display help text.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-i\fP|\fB--interval\fP \fINumber\fP
.br
2021-04-08 22:08:48 +03:00
Report progress at regular intervals.
2021-04-15 21:11:52 +03:00
.
.HP
2021-08-06 14:23:11 +03:00
\fB--journal\fP \fIString\fP
.br
Record information in the systemd journal.
This information is in addition to information
enabled by the lvm.conf log/journal setting.
command: record information about the command.
output: record the default command output.
debug: record full command debugging.
.
.HP
2018-01-12 03:30:52 +03:00
\fB--lockopt\fP \fIString\fP
.br
Used to pass options for special cases to lvmlockd.
See \fBlvmlockd\fP(8) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--longhelp\fP
.br
2021-04-08 22:08:48 +03:00
Display long help text.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--merge\fP
.br
An alias for --mergethin, --mergemirrors, or --mergesnapshot,
depending on the type of LV.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--mergemirrors\fP
.br
Merge LV images that were split from a raid1 LV.
See --splitmirrors with --trackchanges.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--mergesnapshot\fP
.br
Merge COW snapshot LV into its origin.
When merging a snapshot, if both the origin and snapshot LVs are not open,
the merge will start immediately. Otherwise, the merge will start the
first time either the origin or snapshot LV are activated and both are
closed. Merging a snapshot into an origin that cannot be closed, for
example a root filesystem, is deferred until the next time the origin
volume is activated. When merging starts, the resulting LV will have the
origin's name, minor number and UUID. While the merge is in progress,
reads or writes to the origin appear as being directed to the snapshot
being merged. When the merge finishes, the merged snapshot is removed.
Multiple snapshots may be specified on the command line or a @tag may be
used to specify multiple snapshots be merged to their respective origin.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--mergethin\fP
.br
Merge thin LV into its origin LV.
The origin thin LV takes the content of the thin snapshot,
and the thin snapshot LV is removed.
See \fBlvmthin\fP(7) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--metadataprofile\fP \fIString\fP
.br
The metadata profile to use for command configuration.
See \fBlvm.conf\fP(5) for more information about profiles.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--mirrorlog\fP \fBcore\fP|\fBdisk\fP
.br
Specifies the type of mirror log for LVs with the "mirror" type
(does not apply to the "raid1" type.)
\fBdisk\fP is a persistent log and requires a small amount of
storage space, usually on a separate device from the data being mirrored.
\fBcore\fP is not persistent; the log is kept only in memory.
In this case, the mirror must be synchronized (by copying LV data from
the first device to others) each time the LV is activated, e.g. after reboot.
\fBmirrored\fP is a persistent log that is itself mirrored, but
should be avoided. Instead, use the raid1 type for log redundancy.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-m\fP|\fB--mirrors\fP [\fB+\fP|\fB-\fP]\fINumber\fP
.br
Specifies the number of mirror images in addition to the original LV
image, e.g. --mirrors 1 means there are two images of the data, the
original and one mirror image.
Optional positional PV args on the command line can specify the devices
the images should be placed on.
There are two mirroring implementations: "raid1" and "mirror".
These are the names of the corresponding LV types, or "segment types".
Use the --type option to specify which to use (raid1 is default,
and mirror is legacy)
2021-04-15 21:11:52 +03:00
Use \fBlvm.conf\fP(5) \fBglobal/mirror_segtype_default\fP and
global/raid10_segtype_default to configure the default types.
The plus prefix \fB+\fP can be used, in which case
the number is added to the current number of images,
or the minus prefix \fB-\fP can be used, in which case
the number is subtracted from the current number of images.
See \fBlvmraid\fP(7) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-n\fP|\fB--name\fP \fIString\fP
.br
Specifies the name of a new LV.
When unspecified, a default name of "lvol#" is
generated, where # is a number generated by LVM.
2021-04-15 21:11:52 +03:00
.
.HP
2021-09-22 15:48:58 +03:00
\fB--nohints\fP
.br
Do not use the hints file to locate devices for PVs. A command may read
more devices to find PVs when hints are not used. The command will still
perform standard hint file invalidation where appropriate.
.
.HP
2018-06-08 23:16:00 +03:00
\fB--nolocking\fP
.br
2022-05-02 14:16:25 +03:00
Disable locking. Use with caution, concurrent commands may produce
incorrect results.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--noudevsync\fP
.br
Disables udev synchronisation. The process will not wait for notification
from udev. It will continue irrespective of any possible udev processing
in the background. Only use this if udev is not running or has rules that
ignore the devices LVM creates.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--originname\fP \fILV\fP
.br
Specifies the name to use for the external origin LV when converting an LV
to a thin LV. The LV being converted becomes a read-only external origin
with this name.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--poolmetadata\fP \fILV\fP
.br
2021-04-08 22:08:48 +03:00
The name of a an LV to use for storing pool metadata.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--poolmetadatasize\fP \fISize\fP[m|UNIT]
.br
2021-04-08 22:08:48 +03:00
Specifies the size of the new pool metadata LV.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--poolmetadataspare\fP \fBy\fP|\fBn\fP
.br
Enable or disable the automatic creation and management of a
spare pool metadata LV in the VG. A spare metadata LV is reserved
space that can be used when repairing a pool.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--profile\fP \fIString\fP
.br
An alias for --commandprofile or --metadataprofile, depending
on the command.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-q\fP|\fB--quiet\fP ...
.br
Suppress output and log messages. Overrides --debug and --verbose.
2017-05-03 13:23:15 +03:00
Repeat once to also suppress any prompts with answer 'no'.
2021-04-15 21:11:52 +03:00
.
.HP
2020-05-21 16:02:31 +03:00
\fB--raidintegrity\fP \fBy\fP|\fBn\fP
.br
2021-04-08 22:08:48 +03:00
Enable or disable data integrity checksums for raid images.
2021-04-15 21:11:52 +03:00
.
.HP
2020-05-21 16:02:31 +03:00
\fB--raidintegrityblocksize\fP \fINumber\fP
.br
The block size to use for dm-integrity on raid images.
The integrity block size should usually match the device
logical block size, or the file system block size.
It may be less than the file system block size, but not
less than the device logical block size.
Possible values: 512, 1024, 2048, 4096.
2021-04-15 21:11:52 +03:00
.
.HP
2020-05-21 16:02:31 +03:00
\fB--raidintegritymode\fP \fIString\fP
.br
Use a journal (default) or bitmap for keeping integrity checksums consistent
in case of a crash. The bitmap areas are recalculated after a crash, so corruption
in those areas would not be detected. A journal does not have this problem.
The journal mode doubles writes to storage, but can improve performance for
scattered writes packed into a single journal write.
bitmap mode can in theory achieve full write throughput of the device,
but would not benefit from the potential scattered write optimization.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-r\fP|\fB--readahead\fP \fBauto\fP|\fBnone\fP|\fINumber\fP
.br
Sets read ahead sector count of an LV.
\fBauto\fP is the default which allows the kernel to choose
a suitable value automatically.
\fBnone\fP is equivalent to zero.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-R\fP|\fB--regionsize\fP \fISize\fP[m|UNIT]
.br
Size of each raid or mirror synchronization region.
2021-04-15 21:11:52 +03:00
\fBlvm.conf\fP(5) \fBactivation/raid_region_size\fP can be used to
configure a default.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--repair\fP
.br
Replace failed PVs in a raid or mirror LV, or run a repair
utility on a thin pool. See \fBlvmraid\fP(7) and \fBlvmthin\fP(7)
for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--replace\fP \fIPV\fP
.br
Replace a specific PV in a raid LV with another PV.
The new PV to use can be optionally specified after the LV.
Multiple PVs can be replaced by repeating this option.
See \fBlvmraid\fP(7) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-s\fP|\fB--snapshot\fP
.br
Combine a former COW snapshot LV with a former origin LV to reverse
a previous --splitsnapshot command.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--splitcache\fP
.br
Separates a cache pool from a cache LV, and keeps the unused cache pool LV.
Before the separation, the cache is flushed. Also see --uncache.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--splitmirrors\fP \fINumber\fP
.br
Splits the specified number of images from a raid1 or mirror LV
and uses them to create a new LV. If --trackchanges is also specified,
changes to the raid1 LV are tracked while the split LV remains detached.
2018-10-10 09:31:55 +03:00
If --name is specified, then the images are permanently split from the
original LV and changes are not tracked.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--splitsnapshot\fP
.br
Separates a COW snapshot from its origin LV. The LV that is split off
contains the chunks that differ from the origin LV along with metadata
describing them. This LV can be wiped and then destroyed with lvremove.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--startpoll\fP
.br
2021-04-08 22:08:48 +03:00
Start polling an LV to continue processing a conversion.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--stripes\fP \fINumber\fP
.br
Specifies the number of stripes in a striped LV. This is the number of
PVs (devices) that a striped LV is spread across. Data that
appears sequential in the LV is spread across multiple devices in units of
the stripe size (see --stripesize). This does not apply to
existing allocated space, only newly allocated space can be striped.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT]
.br
The amount of data that is written to one device before
moving to the next in a striped LV.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--swapmetadata\fP
.br
Extracts the metadata LV from a pool and replaces it with another specified LV.
The extracted LV is preserved and given the name of the LV that replaced it.
Use for repair only. When the metadata LV is swapped out of the pool, it can
be activated directly and used with thin provisioning tools:
\fBcache_dump\fP(8), \fBcache_repair\fP(8), \fBcache_restore\fP(8),
\fBthin_dump\fP(8), \fBthin_repair\fP(8), \fBthin_restore\fP(8).
2021-04-15 21:11:52 +03:00
.
.HP
\fB-t\fP|\fB--test\fP
.br
Run in test mode. Commands will not update metadata.
This is implemented by disabling all metadata writing but nevertheless
returning success to the calling function. This may lead to unusual
error messages in multi-stage operations if a tool relies on reading
back metadata it believes has changed but hasn't.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-T\fP|\fB--thin\fP
.br
Specifies the command is handling a thin LV or thin pool.
See --type thin, --type thin-pool, and --virtualsize.
See \fBlvmthin\fP(7) for more information about LVM thin provisioning.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--thinpool\fP \fILV\fP
.br
2021-04-08 22:08:48 +03:00
The name of a thin pool LV.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--trackchanges\fP
.br
Can be used with --splitmirrors on a raid1 LV. This causes
changes to the original raid1 LV to be tracked while the split images
2018-10-10 09:31:55 +03:00
remain detached. This is a temporary state that allows the read-only
detached image to be merged efficiently back into the raid1 LV later.
Only the regions with changed data are resynchronized during merge.
While a raid1 LV is tracking changes, operations on it are limited to
merging the split image (see --mergemirrors) or permanently splitting
the image (see --splitmirrors with --name.
2021-04-15 21:11:52 +03:00
.
.HP
.ad l
2021-04-15 21:11:52 +03:00
\fB--type\fP \c
2021-04-08 22:08:48 +03:00
.nh
2021-04-15 21:11:52 +03:00
\%\fBlinear\fP|\:\fBstriped\fP|\:\fBsnapshot\fP|\:\fBraid\fP|\:\fBmirror\fP|\:\fBthin\fP|\:\fBthin-pool\fP|\:\fBvdo\fP|\:\fBvdo-pool\fP|\:\fBcache\fP|\:\fBcache-pool\fP|\:\fBwritecache\fP
2021-04-08 22:08:48 +03:00
.hy
.ad b
2021-04-15 21:11:52 +03:00
.br
The LV type, also known as "segment type" or "segtype".
See usage descriptions for the specific ways to use these types.
For more information about redundancy and performance (\fBraid\fP<N>, \fBmirror\fP, \fBstriped\fP, \fBlinear\fP) see \fBlvmraid\fP(7).
For thin provisioning (\fBthin\fP, \fBthin-pool\fP) see \fBlvmthin\fP(7).
For performance caching (\fBcache\fP, \fBcache-pool\fP) see \fBlvmcache\fP(7).
For copy-on-write snapshots (\fBsnapshot\fP) see usage definitions.
For VDO (\fBvdo\fP) see \fBlvmvdo\fP(7).
Several commands omit an explicit type option because the type
is inferred from other options or shortcuts
(e.g. --stripes, --mirrors, --snapshot, --virtualsize, --thin, --cache, --vdo).
Use inferred types with care because it can lead to unexpected results.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--uncache\fP
.br
Separates a cache pool from a cache LV, and deletes the unused cache pool LV.
Before the separation, the cache is flushed. Also see --splitcache.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--usepolicies\fP
.br
2021-04-15 21:11:52 +03:00
Perform an operation according to the policy configured in \fBlvm.conf\fP(5)
or a profile.
2021-04-15 21:11:52 +03:00
.
.HP
2018-10-10 09:31:55 +03:00
\fB--vdopool\fP \fILV\fP
.br
The name of a VDO pool LV.
See \fBlvmvdo\fP(7) for more information about VDO usage.
2021-04-15 21:11:52 +03:00
.
.HP
2022-05-02 14:16:25 +03:00
\fB--vdosettings\fP \fIString\fP
.br
Specifies tunable VDO options for VDO LVs.
Use the form 'option=value' or 'option1=value option2=value', or
repeat --vdosettings for each option being set.
These settings override the default VDO behaviors.
To remove vdosettings and revert to the default
VDO behaviors, use --vdosettings 'default'.
See \fBlvmvdo\fP(7) for more information.
.
.HP
\fB-v\fP|\fB--verbose\fP ...
.br
Set verbose level. Repeat from 1 to 4 times to increase the detail
of messages sent to stdout and stderr.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--version\fP
.br
2021-04-08 22:08:48 +03:00
Display version information.
2021-04-15 21:11:52 +03:00
.
.HP
2018-10-10 09:31:55 +03:00
\fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT]
.br
The virtual size of a new thin LV.
See \fBlvmthin\fP(7) for more information about LVM thin provisioning.
Using virtual size (-V) and actual size (-L) together creates
a sparse LV.
2021-04-15 21:11:52 +03:00
\fBlvm.conf\fP(5) \fBglobal/sparse_segtype_default\fP determines the
2018-10-10 09:31:55 +03:00
default segment type used to create a sparse LV.
Anything written to a sparse LV will be returned when reading from it.
Reading from other areas of the LV will return blocks of zeros.
When using a snapshot to create a sparse LV, a hidden virtual device
is created using the zero target, and the LV has the suffix _vorigin.
Snapshots are less efficient than thin provisioning when creating
large sparse LVs (GiB).
2021-04-15 21:11:52 +03:00
.
.HP
\fB-y\fP|\fB--yes\fP
.br
Do not prompt for confirmation interactively but always assume the
answer yes. Use with extreme caution.
(For automatic no, see -qq.)
2021-04-15 21:11:52 +03:00
.
.HP
\fB-Z\fP|\fB--zero\fP \fBy\fP|\fBn\fP
.br
For snapshots, this controls zeroing of the first 4 KiB of data in the
snapshot. If the LV is read-only, the snapshot will not be zeroed.
For thin pools, this controls zeroing of provisioned blocks.
Provisioning of large zeroed chunks negatively impacts performance.
2021-04-15 21:11:52 +03:00
.
.SH VARIABLES
2021-04-15 21:11:52 +03:00
.
.TP
.I VG
Volume Group name. See \fBlvm\fP(8) for valid names.
2021-04-15 21:11:52 +03:00
.TP
.I LV
Logical Volume name. See \fBlvm\fP(8) for valid names.
An LV positional arg generally includes the VG name and LV name, e.g. VG/LV.
2021-04-15 21:11:52 +03:00
LV1 indicates the LV must have a specific type, where the
accepted LV types are listed. (raid represents raid<N> type).
.TP
.I PV
Physical Volume name, a device path under /dev.
For commands managing physical extents, a PV positional arg
generally accepts a suffix indicating a range (or multiple ranges)
of physical extents (PEs). When the first PE is omitted, it defaults
to the start of the device, and when the last PE is omitted it defaults to end.
Start and end range (inclusive): \fIPV\fP[\fB:\fP\fIPE\fP\fB-\fP\fIPE\fP]...
Start and length range (counting from 0): \fIPV\fP[\fB:\fP\fIPE\fP\fB+\fP\fIPE\fP]...
2021-04-15 21:11:52 +03:00
.TP
.I Tag
Tag name. See \fBlvm\fP(8) for information about tag names and using tags
in place of a VG, LV or PV.
2021-04-15 21:11:52 +03:00
.TP
.I String
See the option description for information about the string content.
2021-04-15 21:11:52 +03:00
.TP
.IR Size [UNIT]
Size is an input number that accepts an optional unit.
Input units are always treated as base two values, regardless of
capitalization, e.g. 'k' and 'K' both refer to 1024.
The default input unit is specified by letter, followed by |UNIT.
2021-04-15 21:11:52 +03:00
UNIT represents other possible input units:
.BR b | B
is bytes,
.BR s | S
is sectors of 512 bytes,
.BR k | K
is KiB,
.BR m | M
is MiB,
.BR g | G
is GiB,
.BR t | T
is TiB,
.BR p | P
is PiB,
.BR e | E
is EiB.
(This should not be confused with the output control --units, where
capital letters mean multiple of 1000.)
2021-04-15 21:11:52 +03:00
.
.SH ENVIRONMENT VARIABLES
2021-04-15 21:11:52 +03:00
.
See \fBlvm\fP(8) for information about environment variables used by lvm.
For example, LVM_VG_NAME can generally be substituted for a required VG parameter.
2021-04-15 21:11:52 +03:00
.
.SH ADVANCED USAGE
2021-04-15 21:11:52 +03:00
.
Alternate command forms, advanced command usage, and listing of all valid syntax for completeness.
.P
Change the region size of an LV.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB-R\fP|\fB--regionsize\fP \fISize\fP[m|UNIT] \fILV1\fP
.br
.RS 4
2021-04-15 21:11:52 +03:00
.ad l
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: raid
.RE
.P
\(em
.P
Change the type of mirror log used by a mirror LV.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--mirrorlog\fP \fBcore\fP|\fBdisk\fP \fILV1\fP
.br
.RS 4
2021-04-15 21:11:52 +03:00
.ad l
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: mirror
.RE
.P
\(em
.P
2021-04-22 12:28:56 +03:00
Convert LV to a thin LV, using the original LV as an external origin.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB-T\fP|\fB--thin\fP \fB--thinpool\fP \fILV\fP \fILV1\fP
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type thin\fP ] (implied)
.br
.br
[ \fB-r\fP|\fB--readahead\fP \fBauto\fP|\fBnone\fP|\fINumber\fP ]
.br
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB-Z\fP|\fB--zero\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--originname\fP \fILV\fP\fI_new\fP ]
.br
[ \fB--poolmetadata\fP \fILV\fP ]
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB--poolmetadataspare\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--metadataprofile\fP \fIString\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: linear striped thin cache raid error zero
.RE
.P
\(em
.P
2021-04-22 12:28:56 +03:00
Attach a cache pool to an LV.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB-H\fP|\fB--cache\fP \fB--cachepool\fP \fILV\fP \fILV1\fP
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type cache\fP ] (implied)
.br
.br
[ \fB-Z\fP|\fB--zero\fP \fBy\fP|\fBn\fP ]
.br
[ \fB-r\fP|\fB--readahead\fP \fBauto\fP|\fBnone\fP|\fINumber\fP ]
.br
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--cachemetadataformat\fP \fBauto\fP|\fB1\fP|\fB2\fP ]
.br
[ \fB--cachemode\fP \fBwritethrough\fP|\fBwriteback\fP|\fBpassthrough\fP ]
.br
[ \fB--cachepolicy\fP \fIString\fP ]
.br
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ \fB--poolmetadata\fP \fILV\fP ]
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB--poolmetadataspare\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--metadataprofile\fP \fIString\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: linear striped thinpool vdo vdopool vdopooldata raid
.RE
.P
\(em
.P
2019-09-25 09:27:49 +03:00
Attach a cache to an LV, converts the LV to type cache.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB-H\fP|\fB--cache\fP \fB--cachevol\fP \fILV\fP \fILV1\fP
2019-09-25 09:27:49 +03:00
.br
.RS 4
.ad l
[ \fB-Z\fP|\fB--zero\fP \fBy\fP|\fBn\fP ]
.br
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--cachemetadataformat\fP \fBauto\fP|\fB1\fP|\fB2\fP ]
.br
[ \fB--cachemode\fP \fBwritethrough\fP|\fBwriteback\fP|\fBpassthrough\fP ]
.br
[ \fB--cachepolicy\fP \fIString\fP ]
.br
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
2019-09-25 09:27:49 +03:00
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: linear striped thinpool raid
.RE
.P
\(em
.P
2018-10-10 09:31:55 +03:00
Convert LV to type vdopool.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--vdopool\fP \fILV\fP
2018-10-10 09:31:55 +03:00
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type vdo-pool\fP ] (implied)
.br
.br
2021-02-16 23:30:06 +03:00
[ \fB-r\fP|\fB--readahead\fP \fBauto\fP|\fBnone\fP|\fINumber\fP ]
.br
[ \fB-Z\fP|\fB--zero\fP \fBy\fP|\fBn\fP ]
.br
2018-10-10 09:31:55 +03:00
[ \fB-n\fP|\fB--name\fP \fILV\fP\fI_new\fP ]
.br
[ \fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT] ]
.br
2021-02-16 23:30:06 +03:00
[ \fB--metadataprofile\fP \fIString\fP ]
.br
2018-10-10 09:31:55 +03:00
[ \fB--compression\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--deduplication\fP \fBy\fP|\fBn\fP ]
.br
2022-05-02 14:16:25 +03:00
[ \fB--vdosettings\fP \fIString\fP ]
.br
2018-10-10 09:31:55 +03:00
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
2018-10-10 09:31:55 +03:00
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
2018-11-30 01:08:25 +03:00
Detach and delete a cache from an LV.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--uncache\fP \fILV1\fP
.br
.RS 4
2020-10-15 12:16:54 +03:00
.ad l
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: thinpool cache vdopool writecache
.RE
.P
\(em
.P
Swap metadata LV in a thin pool or cache pool (for repair only).
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--swapmetadata\fP \fB--poolmetadata\fP \fILV\fP \fILV1\fP
.br
.RS 4
.ad l
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: thinpool cachepool
.RE
.P
\(em
.P
2017-07-25 03:26:58 +03:00
Merge LV that was split from a mirror (variant, use --mergemirrors).
.br
2017-07-25 03:26:58 +03:00
Merge thin LV into its origin LV (variant, use --mergethin).
.br
2017-07-25 03:26:58 +03:00
Merge COW snapshot LV into its origin (variant, use --mergesnapshot).
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--merge\fP \fIVG\fP|\fILV1\fP|\fITag\fP ...
.br
.RS 4
.ad l
[ \fB-i\fP|\fB--interval\fP \fINumber\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: linear striped snapshot thin raid
.RE
.P
\(em
.P
Separate a COW snapshot from its origin LV.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB--splitsnapshot\fP \fILV1\fP
.br
.RS 4
2021-04-15 21:11:52 +03:00
.ad l
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: snapshot
.RE
.P
\(em
.P
Combine a former COW snapshot (second arg) with a former
.br
origin LV (first arg) to reverse a splitsnapshot command.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fB-s\fP|\fB--snapshot\fP \fILV\fP \fILV1\fP
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type snapshot\fP ] (implied)
.br
.br
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB-Z\fP|\fB--zero\fP \fBy\fP|\fBn\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: linear striped
.RE
.P
\(em
.P
2018-05-12 18:02:34 +03:00
Poll LV to continue conversion (also see --startpoll)
.br
or waits till conversion/mirror syncing is finished
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvconvert\fP \fILV1\fP
.br
.RS 4
2021-04-15 21:11:52 +03:00
.ad l
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
.RS 4
LV1 types: mirror raid
.RE
.P
\(em
.P