1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/man/lvcreate.8_pregen

2323 lines
57 KiB
Plaintext
Raw Normal View History

.TH LVCREATE 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
.
lvcreate \(em Create a logical volume
.
.SH SYNOPSIS
2021-04-15 21:11:52 +03:00
.
\fBlvcreate\fP \fIoption_args\fP \fIposition_args\fP
.br
[ \fIoption_args\fP ]
.br
[ \fIposition_args\fP ]
.br
.P
.ad l
\fB-a\fP|\fB--activate\fP \fBy\fP|\fBn\fP|\fBay\fP
.br
\fB--addtag\fP \fITag\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-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\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
\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-C\fP|\fB--contiguous\fP \fBy\fP|\fBn\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
\fB--errorwhenfull\fP \fBy\fP|\fBn\fP
.br
\fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT]
.br
\fB-h\fP|\fB--help\fP
.br
\fB-K\fP|\fB--ignoreactivationskip\fP
.br
\fB--ignoremonitoring\fP
.br
2018-01-12 03:30:52 +03:00
\fB--lockopt\fP \fIString\fP
.br
\fB--longhelp\fP
.br
\fB-j\fP|\fB--major\fP \fINumber\fP
.br
2021-04-15 21:11:52 +03:00
\fB--\fP[\fBraid\fP]\fBmaxrecoveryrate\fP \fISize\fP[k|UNIT]
.br
\fB--metadataprofile\fP \fIString\fP
.br
\fB--minor\fP \fINumber\fP
.br
2021-04-15 21:11:52 +03:00
\fB--\fP[\fBraid\fP]\fBminrecoveryrate\fP \fISize\fP[k|UNIT]
.br
\fB--mirrorlog\fP \fBcore\fP|\fBdisk\fP
.br
\fB-m\fP|\fB--mirrors\fP \fINumber\fP
.br
\fB--monitor\fP \fBy\fP|\fBn\fP
.br
\fB-n\fP|\fB--name\fP \fIString\fP
.br
2018-06-08 23:16:00 +03:00
\fB--nolocking\fP
.br
\fB--nosync\fP
.br
\fB--noudevsync\fP
.br
\fB-p\fP|\fB--permission\fP \fBrw\fP|\fBr\fP
.br
\fB-M\fP|\fB--persistent\fP \fBy\fP|\fBn\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--reportformat\fP \fBbasic\fP|\fBjson\fP
.br
\fB-k\fP|\fB--setactivationskip\fP \fBy\fP|\fBn\fP
.br
2021-04-08 22:08:48 +03:00
\fB--setautoactivation\fP \fBy\fP|\fBn\fP
.br
\fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT]
.br
\fB-s\fP|\fB--snapshot\fP
.br
\fB-i\fP|\fB--stripes\fP \fINumber\fP
.br
\fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT]
.br
\fB-t\fP|\fB--test\fP
.br
\fB-T\fP|\fB--thin\fP
.br
\fB--thinpool\fP \fILV\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
2018-10-10 09:31:55 +03:00
\fB--vdo\fP
.br
\fB--vdopool\fP \fILV\fP
.br
\fB-v\fP|\fB--verbose\fP
.br
\fB--version\fP
.br
\fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT]
.br
\fB-W\fP|\fB--wipesignatures\fP \fBy\fP|\fBn\fP
.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
.
lvcreate creates a new LV in a VG. For standard LVs, this requires
allocating logical extents from the VG's free physical extents. If there
2017-04-13 02:30:05 +03:00
is not enough free space, the VG can be extended with other PVs
(\fBvgextend\fP(8)), or existing LVs can be reduced or removed
2021-04-15 21:11:52 +03:00
(\fBlvremove\fP(8), \fBlvreduce\fP(8)).
.P
To control which PVs a new LV will use, specify one or more PVs as
position args at the end of the command line. lvcreate will allocate
physical extents only from the specified PVs.
2021-04-15 21:11:52 +03:00
.P
lvcreate can also create snapshots of existing LVs, e.g. for backup
purposes. The data in a new snapshot LV represents the content of the
original LV from the time the snapshot was created.
2021-04-15 21:11:52 +03:00
.P
RAID LVs can be created by specifying an LV type when creating the LV (see
\fBlvmraid\fP(7)). Different RAID levels require different numbers of
unique PVs be available in the VG for allocation.
2021-04-15 21:11:52 +03:00
.P
Thin pools (for thin provisioning) and cache pools (for caching) are
represented by special LVs with types thin-pool and cache-pool (see
\fBlvmthin\fP(7) and \fBlvmcache\fP(7)). The pool LVs are not usable as
2017-04-13 02:30:05 +03:00
standard block devices, but the LV names act as references to the pools.
2021-04-15 21:11:52 +03:00
.P
Thin LVs are thinly provisioned from a thin pool, and are created with a
virtual size rather than a physical size. A cache LV is the combination of
a standard LV with a cache pool, used to cache active portions of the LV
to improve performance.
2021-04-15 21:11:52 +03:00
.P
VDO LVs are also provisioned volumes from a VDO pool, and are created with a
virtual size rather than a physical size (see \fBlvmvdo\fP(7)).
2021-04-15 21:11:52 +03:00
.P
.SS Usage notes
In the usage section below, \fB--size\fP \fISize\fP can be replaced
2017-04-13 02:30:05 +03:00
with \fB--extents\fP \fINumber\fP. See descriptions in the options section.
2021-04-15 21:11:52 +03:00
.P
In the usage section below, \fB--name\fP is omitted from the required
2017-04-13 02:30:05 +03:00
options, even though it is typically used. When the name is not
specified, a new LV name is generated with the "lvol" prefix and a unique
2017-04-13 02:30:05 +03:00
numeric suffix.
2021-04-15 21:11:52 +03:00
.P
In the usage section below, when creating a pool and the name is omitted
the new LV pool name is generated with the
"vpool" for vdo-pools for prefix and a unique numeric suffix.
2021-04-15 21:11:52 +03:00
.P
2019-06-07 18:59:43 +03:00
Pool name can be specified together with \fIVG\fP name i.e.:
vg00/mythinpool.
2021-04-15 21:11:52 +03:00
.
.SH USAGE
2021-04-15 21:11:52 +03:00
.
Create a linear LV.
.br
.P
\fBlvcreate\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type linear\fP ] (implied)
.br
2021-04-22 12:28:56 +03:00
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.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
2021-04-22 12:28:56 +03:00
Create a striped LV.
.br
.P
\fBlvcreate\fP \fB-i\fP|\fB--stripes\fP \fINumber\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type striped\fP ] (implied)
.br
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
2021-04-15 21:11:52 +03:00
.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
2021-04-22 12:28:56 +03:00
Create a raid1 or mirror LV.
.br
.P
\fBlvcreate\fP \fB-m\fP|\fB--mirrors\fP \fINumber\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type raid1\fP|\fBmirror\fP ] (implied)
.br
2021-04-22 12:28:56 +03:00
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
2021-04-15 21:11:52 +03:00
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB-R\fP|\fB--regionsize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB--mirrorlog\fP \fBcore\fP|\fBdisk\fP ]
.br
2021-04-15 21:11:52 +03:00
[ \fB--\fP[\fBraid\fP]\fBminrecoveryrate\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB--\fP[\fBraid\fP]\fBmaxrecoveryrate\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
\(em
.P
Create a raid LV (a specific raid level must be used, e.g. raid1).
.br
.P
\fBlvcreate\fP \fB--type\fP \fBraid\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP
.br
.RS 4
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-m\fP|\fB--mirrors\fP \fINumber\fP ]
.br
[ \fB-R\fP|\fB--regionsize\fP \fISize\fP[m|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB--\fP[\fBraid\fP]\fBminrecoveryrate\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB--\fP[\fBraid\fP]\fBmaxrecoveryrate\fP \fISize\fP[k|UNIT] ]
.br
2020-05-21 16:02:31 +03:00
[ \fB--raidintegrity\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--raidintegritymode\fP \fIString\fP ]
.br
[ \fB--raidintegrityblocksize\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
Create a raid10 LV.
.br
.P
\fBlvcreate\fP \fB-m\fP|\fB--mirrors\fP \fINumber\fP \fB-i\fP|\fB--stripes\fP \fINumber\fP
.RS 5
\fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP
.RE
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type raid10\fP ] (implied)
.br
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB-R\fP|\fB--regionsize\fP \fISize\fP[m|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB--\fP[\fBraid\fP]\fBminrecoveryrate\fP \fISize\fP[k|UNIT] ]
2018-10-10 09:31:55 +03:00
.br
2021-04-15 21:11:52 +03:00
[ \fB--\fP[\fBraid\fP]\fBmaxrecoveryrate\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
\(em
.P
Create a COW snapshot LV of an origin LV.
.br
.P
\fBlvcreate\fP \fB-s\fP|\fB--snapshot\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fILV\fP
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type snapshot\fP ] (implied)
.br
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB-c\fP|\fB--chunksize\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
\(em
.P
Create a thin pool.
.br
.P
\fBlvcreate\fP \fB--type\fP \fBthin-pool\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP
.br
.RS 4
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-T\fP|\fB--thin\fP ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB--thinpool\fP \fILV\fP\fI_new\fP ]
.br
[ \fB--discards\fP \fBpassdown\fP|\fBnopassdown\fP|\fBignore\fP ]
.br
[ \fB--errorwhenfull\fP \fBy\fP|\fBn\fP ]
2021-04-15 21:11:52 +03:00
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \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
\(em
.P
Create a cache pool.
.br
.P
\fBlvcreate\fP \fB--type\fP \fBcache-pool\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP
.br
.RS 4
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-H\fP|\fB--cache\fP ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--cachemode\fP \fBwritethrough\fP|\fBwriteback\fP|\fBpassthrough\fP ]
.br
[ \fB--cachepolicy\fP \fIString\fP ]
.br
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ \fB--cachemetadataformat\fP \fBauto\fP|\fB1\fP|\fB2\fP ]
2021-04-15 21:11:52 +03:00
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \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
\(em
.P
2021-04-22 12:28:56 +03:00
Create a thin LV in a thin pool.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvcreate\fP \fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT] \fB--thinpool\fP \fILV\fP \fIVG\fP
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type thin\fP ] (implied)
.br
.br
2021-04-22 12:28:56 +03:00
[ \fB-T\fP|\fB--thin\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
2021-04-22 12:28:56 +03:00
Create a thin LV that is a snapshot of an existing thin LV.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvcreate\fP \fB-s\fP|\fB--snapshot\fP \fILV1\fP
.br
.RS 4
2018-10-10 09:31:55 +03:00
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type thin\fP ] (implied)
.br
.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: thin
.RE
.P
\(em
.P
Create a thin LV that is a snapshot of an external origin LV.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvcreate\fP \fB--type\fP \fBthin\fP \fB--thinpool\fP \fILV\fP \fILV\fP
.br
.RS 4
.ad l
[ \fB-T\fP|\fB--thin\fP ]
2018-10-10 09:31:55 +03:00
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
Create a LV that returns VDO when used.
.br
.P
\fBlvcreate\fP \fB--type\fP \fBvdo\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP
.br
.RS 4
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
2018-10-10 09:31:55 +03:00
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
2018-10-10 09:31:55 +03:00
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
2018-10-10 09:31:55 +03:00
.br
2021-04-15 21:11:52 +03:00
[ \fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB--vdo\fP ]
2018-10-10 09:31:55 +03:00
.br
[ \fB--vdopool\fP \fILV\fP\fI_new\fP ]
.br
[ \fB--compression\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--deduplication\fP \fBy\fP|\fBn\fP ]
2018-10-10 09:31:55 +03:00
.br
[ COMMON_OPTIONS ]
.ad b
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
2020-06-23 13:19:35 +03:00
Create a new LV, then attach the specified cachepool
.br
2020-06-23 13:19:35 +03:00
which converts the new LV to type cache.
.br
.P
\fBlvcreate\fP \fB--type\fP \fBcache\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT]
.RS 5
2021-04-15 21:11:52 +03:00
\fB--cachepool\fP \fILV\fP \fIVG\fP
.RE
.br
.RS 4
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-H\fP|\fB--cache\fP ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--cachemode\fP \fBwritethrough\fP|\fBwriteback\fP|\fBpassthrough\fP ]
.br
[ \fB--cachepolicy\fP \fIString\fP ]
.br
[ \fB--cachesettings\fP \fIString\fP ]
2018-10-10 09:31:55 +03:00
.br
[ \fB--cachemetadataformat\fP \fBauto\fP|\fB1\fP|\fB2\fP ]
2021-04-15 21:11:52 +03:00
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \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
\(em
.P
2020-06-23 13:19:35 +03:00
Create a new LV, then attach the specified cachevol
.br
which converts the new LV to type cache.
.br
.P
\fBlvcreate\fP \fB--type\fP \fBcache\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT]
.RS 5
\fB--cachevol\fP \fILV\fP \fIVG\fP
.RE
.br
.RS 4
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
2020-06-23 13:19:35 +03:00
[ \fB--cachemode\fP \fBwritethrough\fP|\fBwriteback\fP|\fBpassthrough\fP ]
.br
[ \fB--cachepolicy\fP \fIString\fP ]
.br
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ \fB--cachemetadataformat\fP \fBauto\fP|\fB1\fP|\fB2\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
2020-06-23 13:19:35 +03:00
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
2020-06-23 13:19:35 +03:00
Create a new LV, then attach a cachevol created from
.br
the specified cache device, which converts the
.br
new LV to type cache.
.br
.P
\fBlvcreate\fP \fB--type\fP \fBcache\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT]
.RS 5
\fB--cachedevice\fP \fIPV\fP \fIVG\fP
.RE
.br
.RS 4
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--cachesize\fP \fISize\fP[m|UNIT] ]
.br
2020-06-23 13:19:35 +03:00
[ \fB--cachemode\fP \fBwritethrough\fP|\fBwriteback\fP|\fBpassthrough\fP ]
.br
[ \fB--cachepolicy\fP \fIString\fP ]
.br
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ \fB--cachemetadataformat\fP \fBauto\fP|\fB1\fP|\fB2\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
2020-06-23 13:19:35 +03:00
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
2020-06-23 13:19:35 +03:00
Create a new LV, then attach the specified cachevol
.br
which converts the new LV to type writecache.
.br
.P
\fBlvcreate\fP \fB--type\fP \fBwritecache\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT]
.RS 5
\fB--cachevol\fP \fILV\fP \fIVG\fP
.RE
.br
.RS 4
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|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
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
2020-06-23 13:19:35 +03:00
Create a new LV, then attach a cachevol created from
.br
the specified cache device, which converts the
.br
new LV to type writecache.
.br
.P
\fBlvcreate\fP \fB--type\fP \fBwritecache\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT]
.RS 5
\fB--cachedevice\fP \fIPV\fP \fIVG\fP
.RE
.br
.RS 4
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
[ \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
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
Common options for command:
.
.RS 4
.ad l
[ \fB-a\fP|\fB--activate\fP \fBy\fP|\fBn\fP|\fBay\fP ]
.br
[ \fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP ]
.br
[ \fB-C\fP|\fB--contiguous\fP \fBy\fP|\fBn\fP ]
.br
[ \fB-K\fP|\fB--ignoreactivationskip\fP ]
.br
[ \fB-j\fP|\fB--major\fP \fINumber\fP ]
.br
[ \fB-n\fP|\fB--name\fP \fIString\fP ]
.br
[ \fB-p\fP|\fB--permission\fP \fBrw\fP|\fBr\fP ]
.br
[ \fB-M\fP|\fB--persistent\fP \fBy\fP|\fBn\fP ]
.br
[ \fB-r\fP|\fB--readahead\fP \fBauto\fP|\fBnone\fP|\fINumber\fP ]
.br
[ \fB-k\fP|\fB--setactivationskip\fP \fBy\fP|\fBn\fP ]
.br
[ \fB-W\fP|\fB--wipesignatures\fP \fBy\fP|\fBn\fP ]
.br
[ \fB-Z\fP|\fB--zero\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--addtag\fP \fITag\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--ignoremonitoring\fP ]
.br
[ \fB--metadataprofile\fP \fIString\fP ]
.br
[ \fB--minor\fP \fINumber\fP ]
.br
[ \fB--monitor\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--nosync\fP ]
.br
[ \fB--noudevsync\fP ]
.br
[ \fB--reportformat\fP \fBbasic\fP|\fBjson\fP ]
2021-04-08 22:08:48 +03:00
.br
[ \fB--setautoactivation\fP \fBy\fP|\fBn\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
[ \fB--lockopt\fP \fIString\fP ]
2018-01-12 03:30:52 +03:00
.br
[ \fB--longhelp\fP ]
.br
[ \fB--nolocking\fP ]
2018-06-08 23:16:00 +03:00
.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
\fB-a\fP|\fB--activate\fP \fBy\fP|\fBn\fP|\fBay\fP
.br
Controls the active state of the new LV.
\fBy\fP makes the LV active, or available.
New LVs are made active by default.
\fBn\fP makes the LV inactive, or unavailable, only when possible.
In some cases, creating an LV requires it to be active.
For example, COW snapshots of an active origin LV can only
be created in the active state (this does not apply to thin snapshots).
The --zero option normally requires the LV to be active.
If autoactivation \fBay\fP is used, the LV is only activated
2021-04-15 21:11:52 +03:00
if it matches an item in \fBlvm.conf\fP(5) \fBactivation/auto_activation_volume_list\fP.
\fBay\fP implies --zero n and --wipesignatures n.
See \fBlvmlockd\fP(8) for more information about activation options for shared VGs.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--addtag\fP \fITag\fP
.br
Adds a tag to a PV, VG or LV. This option can be repeated to add
multiple tags at once. See \fBlvm\fP(8) for information about tags.
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
\fB-A\fP|\fB--autobackup\fP \fBy\fP|\fBn\fP
2018-10-10 09:31:55 +03:00
.br
Specifies if metadata should be backed up automatically after a change.
Enabling this is strongly advised! See \fBvgcfgbackup\fP(8) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-H\fP|\fB--cache\fP
2018-10-10 09:31:55 +03:00
.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
2018-10-10 09:31:55 +03:00
.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
2018-10-10 09:31:55 +03:00
.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
2018-10-10 09:31:55 +03:00
.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
2018-10-10 09:31:55 +03:00
.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
2018-10-10 09:31:55 +03:00
.br
Specifies tunable values for a cache LV in "Key = Value" form.
Repeat this option to specify multiple values.
(The default values should usually be adequate.)
The special string value \fBdefault\fP switches
settings back to their default kernel values and removes
them from the list of settings stored in LVM metadata.
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
2020-06-23 13:19:35 +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]
2018-10-10 09:31:55 +03:00
.br
The size of chunks in a snapshot, cache pool or thin pool.
For snapshots, the value must be a power of 2 between 4KiB and 512KiB
and the default value is 4.
For a cache pool the value must be between 32KiB and 1GiB
and the default value is 64.
For a thin pool the value must be between 64KiB and 1GiB
and the default value starts with 64 and scales up to fit the
pool metadata size within 128MiB, if the pool metadata size is not specified.
The value must be a multiple of 64KiB.
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
2018-10-10 09:31:55 +03:00
.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
\fB--compression\fP \fBy\fP|\fBn\fP
2018-10-10 09:31:55 +03:00
.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
2018-10-10 09:31:55 +03:00
.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-C\fP|\fB--contiguous\fP \fBy\fP|\fBn\fP
2018-10-10 09:31:55 +03:00
.br
Sets or resets the contiguous allocation policy for LVs.
Default is no contiguous allocation based on a next free principle.
It is only possible to change a non-contiguous allocation policy
to contiguous if all of the allocated physical extents in the LV
are already contiguous.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-d\fP|\fB--debug\fP ...
2018-10-10 09:31:55 +03:00
.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
\fB--deduplication\fP \fBy\fP|\fBn\fP
2018-10-10 09:31:55 +03:00
.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
Devices that the command can use. This option can be repeated
or accepts a comma separated list of devices. This overrides
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
2018-10-10 09:31:55 +03:00
.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
2018-10-10 09:31:55 +03:00
.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
\fB--errorwhenfull\fP \fBy\fP|\fBn\fP
2018-10-10 09:31:55 +03:00
.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-l\fP|\fB--extents\fP \fINumber\fP[PERCENT]
2018-10-10 09:31:55 +03:00
.br
Specifies the size of the new LV in logical extents.
The --size and --extents options are alternate methods of specifying size.
The total number of physical extents used will be
greater when redundant data is needed for RAID levels.
An alternate syntax allows the size to be determined indirectly
as a percentage of the size of a related VG, LV, or set of PVs. The
suffix \fB%VG\fP denotes the total size of the VG, the suffix \fB%FREE\fP
the remaining free space in the VG, and the suffix \fB%PVS\fP the free
space in the specified PVs. For a snapshot, the size
can be expressed as a percentage of the total size of the origin LV
with the suffix \fB%ORIGIN\fP (\fB100%ORIGIN\fP provides space for
the whole origin).
When expressed as a percentage, the size defines an upper limit for the
number of logical extents in the new LV. The precise number of logical
extents in the new LV is not determined until the command has completed.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-h\fP|\fB--help\fP
2018-10-10 09:31:55 +03:00
.br
2021-04-08 22:08:48 +03:00
Display help text.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-K\fP|\fB--ignoreactivationskip\fP
2018-10-10 09:31:55 +03:00
.br
Ignore the "activation skip" LV flag during activation
to allow LVs with the flag set to be activated.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--ignoremonitoring\fP
2018-10-10 09:31:55 +03:00
.br
Do not interact with dmeventd unless --monitor is specified.
Do not use this if dmeventd is already monitoring a device.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--lockopt\fP \fIString\fP
2018-10-10 09:31:55 +03:00
.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
2018-10-10 09:31:55 +03:00
.br
2021-04-08 22:08:48 +03:00
Display long help text.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-j\fP|\fB--major\fP \fINumber\fP
2018-10-10 09:31:55 +03:00
.br
2021-04-08 22:08:48 +03:00
Sets the major number of an LV block device.
2021-04-15 21:11:52 +03:00
.
.HP
2021-04-15 21:11:52 +03:00
\fB--\fP[\fBraid\fP]\fBmaxrecoveryrate\fP \fISize\fP[k|UNIT]
2018-10-10 09:31:55 +03:00
.br
Sets the maximum recovery rate for a RAID LV. The rate value
is an amount of data per second for each device in the array.
Setting the rate to 0 means it will be unbounded.
See \fBlvmraid\fP(7) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--metadataprofile\fP \fIString\fP
2018-10-10 09:31:55 +03:00
.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--minor\fP \fINumber\fP
2018-10-10 09:31:55 +03:00
.br
2021-04-08 22:08:48 +03:00
Sets the minor number of an LV block device.
2021-04-15 21:11:52 +03:00
.
.HP
2021-04-15 21:11:52 +03:00
\fB--\fP[\fBraid\fP]\fBminrecoveryrate\fP \fISize\fP[k|UNIT]
2018-10-10 09:31:55 +03:00
.br
Sets the minimum recovery rate for a RAID LV. The rate value
is an amount of data per second for each device in the array.
Setting the rate to 0 means it will be unbounded.
See \fBlvmraid\fP(7) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--mirrorlog\fP \fBcore\fP|\fBdisk\fP
2018-10-10 09:31:55 +03:00
.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 \fINumber\fP
2018-10-10 09:31:55 +03:00
.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.
See the --nosync option for avoiding initial image synchronization.
See \fBlvmraid\fP(7) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--monitor\fP \fBy\fP|\fBn\fP
2018-10-10 09:31:55 +03:00
.br
Start (yes) or stop (no) monitoring an LV with dmeventd.
dmeventd monitors kernel events for an LV, and performs
automated maintenance for the LV in reponse to specific events.
See \fBdmeventd\fP(8) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-n\fP|\fB--name\fP \fIString\fP
2018-10-10 09:31:55 +03:00
.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
\fB--nolocking\fP
2018-10-10 09:31:55 +03:00
.br
2021-04-08 22:08:48 +03:00
Disable locking.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--nosync\fP
2018-10-10 09:31:55 +03:00
.br
Causes the creation of mirror, raid1, raid4, raid5 and raid10 to skip the
initial synchronization. In case of mirror, raid1 and raid10, any data
written afterwards will be mirrored, but the original contents will not be
copied. In case of raid4 and raid5, no parity blocks will be written,
though any data written afterwards will cause parity blocks to be stored.
This is useful for skipping a potentially long and resource intensive initial
sync of an empty mirror/raid1/raid4/raid5 and raid10 LV.
This option is not valid for raid6, because raid6 relies on proper parity
(P and Q Syndromes) being created during initial synchronization in order
to reconstruct proper user date in case of device failures.
raid0 and raid0_meta do not provide any data copies or parity support
and thus do not support initial synchronization.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--noudevsync\fP
2018-10-10 09:31:55 +03:00
.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-p\fP|\fB--permission\fP \fBrw\fP|\fBr\fP
2018-10-10 09:31:55 +03:00
.br
2021-04-08 22:08:48 +03:00
Set access permission to read only \fBr\fP or read and write \fBrw\fP.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-M\fP|\fB--persistent\fP \fBy\fP|\fBn\fP
2018-10-10 09:31:55 +03:00
.br
2021-04-08 22:08:48 +03:00
When yes, makes the specified minor number persistent.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--poolmetadatasize\fP \fISize\fP[m|UNIT]
2018-10-10 09:31:55 +03:00
.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
2018-10-10 09:31:55 +03:00
.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
2018-10-10 09:31:55 +03:00
.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 ...
2018-10-10 09:31:55 +03:00
.br
Suppress output and log messages. Overrides --debug and --verbose.
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
2018-10-10 09:31:55 +03:00
.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]
2018-10-10 09:31:55 +03:00
.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--reportformat\fP \fBbasic\fP|\fBjson\fP
2018-10-10 09:31:55 +03:00
.br
Overrides current output format for reports which is defined globally by
2021-04-15 21:11:52 +03:00
the report/output_format setting in \fBlvm.conf\fP(5).
\fBbasic\fP is the original format with columns and rows.
If there is more than one report per command, each report is prefixed
with the report name for identification. \fBjson\fP produces report
output in JSON format. See \fBlvmreport\fP(7) for more information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-k\fP|\fB--setactivationskip\fP \fBy\fP|\fBn\fP
2018-10-10 09:31:55 +03:00
.br
Persistently sets (yes) or clears (no) the "activation skip" flag on an LV.
An LV with this flag set is not activated unless the
--ignoreactivationskip option is used by the activation command.
This flag is set by default on new thin snapshot LVs.
The flag is not applied to deactivation.
The current value of the flag is indicated in the lvs lv_attr bits.
2021-04-15 21:11:52 +03:00
.
.HP
2021-04-08 22:08:48 +03:00
\fB--setautoactivation\fP \fBy\fP|\fBn\fP
.br
Set the autoactivation property on a VG or LV.
Display the property with vgs or lvs "-o autoactivation".
When the autoactivation property is disabled, the VG or LV
will not be activated by a command doing autoactivation
(vgchange, lvchange, or pvscan using -aay.)
If autoactivation is disabled on a VG, no LVs will be autoactivated
in that VG, and the LV autoactivation property has no effect.
If autoactivation is enabled on a VG, autoactivation can be disabled
for individual LVs.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT]
2018-10-10 09:31:55 +03:00
.br
Specifies the size of the new LV.
The --size and --extents options are alternate methods of specifying size.
The total number of physical extents used will be
greater when redundant data is needed for RAID levels.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-s\fP|\fB--snapshot\fP
2018-10-10 09:31:55 +03:00
.br
Create a snapshot. Snapshots provide a "frozen image" of an origin LV.
The snapshot LV can be used, e.g. for backups, while the origin LV
continues to be used.
This option can create a COW (copy on write) snapshot,
or a thin snapshot (in a thin pool.)
Thin snapshots are created when the origin is a thin LV and
the size option is NOT specified. Thin snapshots share the same blocks
in the thin pool, and do not allocate new space from the VG.
Thin snapshots are created with the "activation skip" flag,
see --setactivationskip.
A thin snapshot of a non-thin "external origin" LV is created
when a thin pool is specified. Unprovisioned blocks in the thin snapshot
LV are read from the external origin LV. The external origin LV must
be read-only.
See \fBlvmthin\fP(7) for more information about LVM thin provisioning.
COW snapshots are created when a size is specified. The size is allocated
from space in the VG, and is the amount of space that can be used
for saving COW blocks as writes occur to the origin or snapshot.
The size chosen should depend upon the amount of writes that are expected;
often 20% of the origin LV is enough. If COW space runs low, it can
be extended with lvextend (shrinking is also allowed with lvreduce.)
A small amount of the COW snapshot LV size is used to track COW block
locations, so the full size is not available for COW data blocks.
Use lvs to check how much space is used, and see --monitor to
to automatically extend the size to avoid running out of space.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-i\fP|\fB--stripes\fP \fINumber\fP
2018-10-10 09:31:55 +03:00
.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 change existing
allocated space, but only applies to space being allocated by the command.
When creating a RAID 4/5/6 LV, this number does not include the extra
devices that are required for parity. The largest number depends on
the RAID type (raid0: 64, raid10: 32, raid4/5: 63, raid6: 62), and
when unspecified, the default depends on the RAID type
(raid0: 2, raid10: 2, raid4/5: 3, raid6: 5.)
To stripe a new raid LV across all PVs by default,
2021-04-15 21:11:52 +03:00
see \fBlvm.conf\fP(5) \fBallocation/raid_stripe_all_devices\fP.
.
.HP
\fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT]
2018-10-10 09:31:55 +03:00
.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-t\fP|\fB--test\fP
2018-10-10 09:31:55 +03:00
.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
2018-10-10 09:31:55 +03:00
.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
2018-10-10 09:31:55 +03:00
.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
2018-10-10 09:31:55 +03:00
.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--vdo\fP
2018-10-10 09:31:55 +03:00
.br
Specifies the command is handling VDO LV.
See --type vdo.
See \fBlvmvdo\fP(7) for more information about VDO usage.
2021-04-15 21:11:52 +03:00
.
.HP
\fB--vdopool\fP \fILV\fP
2018-10-10 09:31:55 +03:00
.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
\fB-v\fP|\fB--verbose\fP ...
2018-10-10 09:31:55 +03:00
.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
2018-10-10 09:31:55 +03:00
.br
2021-04-08 22:08:48 +03:00
Display version information.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT]
2018-10-10 09:31:55 +03:00
.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
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-W\fP|\fB--wipesignatures\fP \fBy\fP|\fBn\fP
2018-10-10 09:31:55 +03:00
.br
Controls detection and subsequent wiping of signatures on new LVs.
There is a prompt for each signature detected to confirm its wiping
(unless --yes is used to override confirmations.)
When not specified, signatures are wiped whenever zeroing is done
(see --zero). This behaviour can be configured with
2021-04-15 21:11:52 +03:00
\fBlvm.conf\fP(5) \fBallocation/wipe_signatures_when_zeroing_new_lvs\fP.
If blkid wiping is used (\fBlvm.conf\fP(5) \fBallocation/use_blkid_wiping\fP)
and LVM is compiled with blkid wiping support, then the blkid(8)
library is used to detect the signatures (use blkid -k to list the
signatures that are recognized).
Otherwise, native LVM code is used to detect signatures
(only MD RAID, swap and LUKS signatures are detected in this case.)
The LV is not wiped if the read only flag is set.
2021-04-15 21:11:52 +03:00
.
.HP
\fB-y\fP|\fB--yes\fP
2018-10-10 09:31:55 +03:00
.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
2018-10-10 09:31:55 +03:00
.br
Controls zeroing of the first 4KiB of data in the new LV.
Default is \fBy\fP.
Snapshot COW volumes are always zeroed.
For thin pools, this controls zeroing of provisioned blocks.
LV is not zeroed if the read only flag is set.
Warning: trying to mount an unzeroed LV can cause the system to hang.
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.
For lvcreate, the required VG positional arg may be
omitted when the VG name is included in another option,
e.g. --name VG/LV.
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 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
Create an LV that returns errors when used.
2018-10-10 09:31:55 +03:00
.br
.P
\fBlvcreate\fP \fB--type\fP \fBerror\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP
2018-10-10 09:31:55 +03:00
.br
.RS 4
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
Create an LV that returns zeros when read.
2018-10-10 09:31:55 +03:00
.br
.P
\fBlvcreate\fP \fB--type\fP \fBzero\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP
2018-10-10 09:31:55 +03:00
.br
.RS 4
2018-10-10 09:31:55 +03:00
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
2018-10-10 09:31:55 +03:00
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
Create a linear LV.
2018-10-10 09:31:55 +03:00
.br
.P
\fBlvcreate\fP \fB--type\fP \fBlinear\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP
2018-10-10 09:31:55 +03:00
.br
.RS 4
2018-10-10 09:31:55 +03:00
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.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
Create a striped LV (also see lvcreate --stripes).
.br
.P
\fBlvcreate\fP \fB--type\fP \fBstriped\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP
.br
.RS 4
2018-10-10 09:31:55 +03:00
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
2018-10-10 09:31:55 +03:00
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
2018-10-10 09:31:55 +03:00
[ \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
\(em
.P
Create a mirror LV (also see --type raid1).
.br
.P
\fBlvcreate\fP \fB--type\fP \fBmirror\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP
.br
.RS 4
2018-10-10 09:31:55 +03:00
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-m\fP|\fB--mirrors\fP \fINumber\fP ]
.br
[ \fB-R\fP|\fB--regionsize\fP \fISize\fP[m|UNIT] ]
.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
Create a COW snapshot LV of an origin LV
.br
(also see --snapshot).
.br
.P
\fBlvcreate\fP \fB--type\fP \fBsnapshot\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fILV\fP
.br
.RS 4
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-s\fP|\fB--snapshot\fP ]
2018-10-10 09:31:55 +03:00
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
2018-10-10 09:31:55 +03:00
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
2018-10-10 09:31:55 +03:00
.br
[ \fB-c\fP|\fB--chunksize\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
\(em
.P
Create a sparse COW snapshot LV of a virtual origin LV
2018-10-10 09:31:55 +03:00
.br
(also see --snapshot).
.br
.P
\fBlvcreate\fP \fB--type\fP \fBsnapshot\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT]
2018-10-10 09:31:55 +03:00
.RS 5
\fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT] \fIVG\fP
2018-10-10 09:31:55 +03:00
.RE
.br
.RS 4
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-s\fP|\fB--snapshot\fP ]
.br
2018-10-10 09:31:55 +03:00
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ COMMON_OPTIONS ]
2018-10-10 09:31:55 +03:00
.ad b
.RE
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
2021-04-22 12:28:56 +03:00
Create a thin pool.
.br
.P
\fBlvcreate\fP \fB-T\fP|\fB--thin\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP
2018-10-10 09:31:55 +03:00
.br
.RS 4
2018-10-10 09:31:55 +03:00
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type thin-pool\fP ] (implied)
.br
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
2018-10-10 09:31:55 +03:00
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
2018-10-10 09:31:55 +03:00
[ \fB--discards\fP \fBpassdown\fP|\fBnopassdown\fP|\fBignore\fP ]
.br
2018-10-10 09:31:55 +03:00
[ \fB--errorwhenfull\fP \fBy\fP|\fBn\fP ]
2021-04-15 21:11:52 +03:00
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \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
\(em
.P
2021-04-22 12:28:56 +03:00
Create a thin pool named in --thinpool.
.br
.P
\fBlvcreate\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fB--thinpool\fP \fILV\fP\fI_new\fP \fIVG\fP
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type thin-pool\fP ] (implied)
.br
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-T\fP|\fB--thin\fP ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--discards\fP \fBpassdown\fP|\fBnopassdown\fP|\fBignore\fP ]
.br
[ \fB--errorwhenfull\fP \fBy\fP|\fBn\fP ]
2021-04-15 21:11:52 +03:00
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \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
\(em
.P
Create a cache pool named by the --cachepool arg
.br
(variant, uses --cachepool in place of --name).
.br
.P
\fBlvcreate\fP \fB--type\fP \fBcache-pool\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT]
.RS 5
\fB--cachepool\fP \fILV\fP\fI_new\fP \fIVG\fP
.RE
.br
.RS 4
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-H\fP|\fB--cache\fP ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--cachemode\fP \fBwritethrough\fP|\fBwriteback\fP|\fBpassthrough\fP ]
.br
[ \fB--cachepolicy\fP \fIString\fP ]
.br
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ \fB--cachemetadataformat\fP \fBauto\fP|\fB1\fP|\fB2\fP ]
2021-04-15 21:11:52 +03:00
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \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
\(em
.P
Create a thin LV in a thin pool.
.br
.P
\fBlvcreate\fP \fB--type\fP \fBthin\fP \fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT]
.RS 5
2021-04-15 21:11:52 +03:00
\fB--thinpool\fP \fILV\fP \fIVG\fP
.RE
.br
.RS 4
.ad l
[ \fB-T\fP|\fB--thin\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
Create a thin LV in a thin pool named in the first arg
2018-10-10 09:31:55 +03:00
.br
(variant, also see --thinpool for naming pool).
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvcreate\fP \fB--type\fP \fBthin\fP \fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT] \fILV1\fP
.br
.RS 4
.ad l
[ \fB-T\fP|\fB--thin\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
.RE
.P
\(em
.P
Create a thin LV in the thin pool named in the first arg
.br
2021-04-22 12:28:56 +03:00
(also see --thinpool for naming pool.)
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvcreate\fP \fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT] \fILV1\fP
.br
.RS 4
2018-10-10 09:31:55 +03:00
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type thin\fP ] (implied)
.br
2021-04-22 12:28:56 +03:00
.br
[ \fB-T\fP|\fB--thin\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
.RE
.P
\(em
.P
Create a thin LV that is a snapshot of an existing thin LV.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvcreate\fP \fB--type\fP \fBthin\fP \fILV1\fP
.br
.RS 4
2018-10-10 09:31:55 +03:00
.ad l
[ \fB-T\fP|\fB--thin\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: thin
.RE
.P
\(em
.P
2021-04-22 12:28:56 +03:00
Create a thin LV that is a snapshot of an existing thin LV.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvcreate\fP \fB-T\fP|\fB--thin\fP \fILV1\fP
.br
.RS 4
2018-10-10 09:31:55 +03:00
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type thin\fP ] (implied)
.br
.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: thin
.RE
.P
\(em
.P
2021-04-22 12:28:56 +03:00
Create a thin LV that is a snapshot of an external origin LV.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvcreate\fP \fB-s\fP|\fB--snapshot\fP \fB--thinpool\fP \fILV\fP \fILV\fP
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type thin\fP ] (implied)
.br
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
Create a VDO LV with VDO pool.
.br
.P
\fBlvcreate\fP \fB--vdo\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type vdo\fP ] (implied)
.br
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB--vdopool\fP \fILV\fP\fI_new\fP ]
.br
[ \fB--compression\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--deduplication\fP \fBy\fP|\fBn\fP ]
.br
[ COMMON_OPTIONS ]
2021-04-15 21:11:52 +03:00
.ad b
.RE
2018-10-10 09:31:55 +03:00
.RS 4
[ \fIPV\fP ... ]
.RE
2021-04-15 21:11:52 +03:00
.P
\(em
.P
Create a VDO LV with VDO pool.
.br
.P
\fBlvcreate\fP \fB--vdopool\fP \fILV\fP\fI_new\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type vdo\fP ] (implied)
.br
2018-10-10 09:31:55 +03:00
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT] ]
.br
[ \fB--compression\fP \fBy\fP|\fBn\fP ]
.br
[ \fB--deduplication\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
\(em
.P
Create a thin LV, first creating a thin pool for it,
.br
2021-04-15 21:11:52 +03:00
where the new thin pool is named by the --thinpool arg.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvcreate\fP \fB--type\fP \fBthin\fP \fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT]
.RS 5
2021-04-15 21:11:52 +03:00
\fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fB--thinpool\fP \fILV\fP\fI_new\fP \fIVG\fP
.RE
.br
.RS 4
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
2018-10-10 09:31:55 +03:00
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
2018-10-10 09:31:55 +03:00
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-T\fP|\fB--thin\fP ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--discards\fP \fBpassdown\fP|\fBnopassdown\fP|\fBignore\fP ]
.br
[ \fB--errorwhenfull\fP \fBy\fP|\fBn\fP ]
2021-04-15 21:11:52 +03:00
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \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
\(em
.P
Create a thin LV, first creating a thin pool for it,
.br
2021-04-22 12:28:56 +03:00
where the new thin pool is named by --thinpool.
.br
.P
\fBlvcreate\fP \fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT] \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT]
.RS 5
\fB--thinpool\fP \fILV\fP\fI_new\fP \fIVG\fP
.RE
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type thin\fP ] (implied)
.br
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-T\fP|\fB--thin\fP ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--discards\fP \fBpassdown\fP|\fBnopassdown\fP|\fBignore\fP ]
.br
[ \fB--errorwhenfull\fP \fBy\fP|\fBn\fP ]
2021-04-15 21:11:52 +03:00
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \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
\(em
.P
Create a thin LV, first creating a thin pool for it,
.br
where the new thin pool is named in the first arg,
.br
or the new thin pool name is generated when the first
.br
arg is a VG name.
.br
.P
\fBlvcreate\fP \fB--type\fP \fBthin\fP \fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT]
.RS 5
\fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP|\fILV\fP\fI_new\fP
.RE
.br
.RS 4
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-T\fP|\fB--thin\fP ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--discards\fP \fBpassdown\fP|\fBnopassdown\fP|\fBignore\fP ]
.br
[ \fB--errorwhenfull\fP \fBy\fP|\fBn\fP ]
2021-04-15 21:11:52 +03:00
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \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
\(em
.P
Create a thin LV, first creating a thin pool for it,
.br
where the new thin pool is named in the first arg,
.br
or the new thin pool name is generated when the first
.br
2021-04-22 12:28:56 +03:00
arg is a VG name.
.br
.P
\fBlvcreate\fP \fB-T\fP|\fB--thin\fP \fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT]
.RS 5
\fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fIVG\fP|\fILV\fP\fI_new\fP
.RE
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type thin\fP ] (implied)
.br
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--discards\fP \fBpassdown\fP|\fBnopassdown\fP|\fBignore\fP ]
.br
[ \fB--errorwhenfull\fP \fBy\fP|\fBn\fP ]
2021-04-15 21:11:52 +03:00
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \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
\(em
.P
2021-04-22 12:28:56 +03:00
Create a thin LV, first creating a thin pool for it.
.br
Create a sparse snapshot of a virtual origin LV
.br
2021-04-22 12:28:56 +03:00
Chooses type thin or snapshot according to
.br
config setting sparse_segtype_default.
.br
.P
\fBlvcreate\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fB-V\fP|\fB--virtualsize\fP \fISize\fP[m|UNIT] \fIVG\fP
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type thin\fP|\fBsnapshot\fP ] (implied)
.br
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-s\fP|\fB--snapshot\fP ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-T\fP|\fB--thin\fP ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--discards\fP \fBpassdown\fP|\fBnopassdown\fP|\fBignore\fP ]
.br
[ \fB--errorwhenfull\fP \fBy\fP|\fBn\fP ]
2021-04-15 21:11:52 +03:00
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \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
\(em
.P
2020-06-23 13:19:35 +03:00
Create a new LV, then attach the specified cachepool
2018-10-10 09:31:55 +03:00
.br
2021-04-22 12:28:56 +03:00
which converts the new LV to type cache.
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvcreate\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fB--cachepool\fP \fILV\fP \fIVG\fP
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type cache\fP ] (implied)
.br
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-H\fP|\fB--cache\fP ]
.br
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--cachemode\fP \fBwritethrough\fP|\fBwriteback\fP|\fBpassthrough\fP ]
.br
[ \fB--cachepolicy\fP \fIString\fP ]
.br
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ \fB--cachemetadataformat\fP \fBauto\fP|\fB1\fP|\fB2\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
2020-06-23 13:19:35 +03:00
Create a new LV, then attach the specified cachepool
.br
2020-06-23 13:19:35 +03:00
which converts the new LV to type cache.
.br
2020-06-23 13:19:35 +03:00
(variant, also use --cachepool).
.br
.P
2021-04-15 21:11:52 +03:00
\fBlvcreate\fP \fB--type\fP \fBcache\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fILV1\fP
.br
.RS 4
.ad l
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-H\fP|\fB--cache\fP ]
.br
2021-04-15 21:11:52 +03:00
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--cachemode\fP \fBwritethrough\fP|\fBwriteback\fP|\fBpassthrough\fP ]
.br
[ \fB--cachepolicy\fP \fIString\fP ]
.br
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ \fB--cachemetadataformat\fP \fBauto\fP|\fB1\fP|\fB2\fP ]
2021-04-15 21:11:52 +03:00
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \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: cachepool
.RE
.P
\(em
.P
2020-06-23 13:19:35 +03:00
When the LV arg is a cachepool, then create a new LV and
.br
2020-06-23 13:19:35 +03:00
attach the cachepool arg to it.
.br
2020-06-23 13:19:35 +03:00
(variant, use --type cache and --cachepool.)
.br
2020-06-23 13:19:35 +03:00
When the LV arg is not a cachepool, then create a new cachepool
.br
2020-06-23 13:19:35 +03:00
and attach it to the LV arg (alternative, use lvconvert.)
.br
.P
\fBlvcreate\fP \fB-H\fP|\fB--cache\fP \fB-L\fP|\fB--size\fP \fISize\fP[m|UNIT] \fILV\fP
.br
.RS 4
.ad l
2021-04-22 12:28:56 +03:00
[ \fB--type cache\fP ] (implied)
.br
[ \fB-l\fP|\fB--extents\fP \fINumber\fP[PERCENT] ]
.br
[ \fB-c\fP|\fB--chunksize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB-i\fP|\fB--stripes\fP \fINumber\fP ]
.br
[ \fB-I\fP|\fB--stripesize\fP \fISize\fP[k|UNIT] ]
.br
[ \fB--cachemode\fP \fBwritethrough\fP|\fBwriteback\fP|\fBpassthrough\fP ]
.br
[ \fB--cachepolicy\fP \fIString\fP ]
.br
[ \fB--cachesettings\fP \fIString\fP ]
.br
[ \fB--cachemetadataformat\fP \fBauto\fP|\fB1\fP|\fB2\fP ]
.br
[ \fB--poolmetadatasize\fP \fISize\fP[m|UNIT] ]
.br
[ \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
\(em
.P