lvcreate (8) - Linux Manuals
lvcreate: Create a logical volume
NAME
lvcreate - Create a logical volume
SYNOPSIS
lvcreate option_args position_args
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.
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.
RAID LVs can be created by specifying an LV type when creating the LV (see
lvmraid(7)). Different RAID levels require different numbers of
unique PVs be available in the VG for allocation.
Thin pools (for thin provisioning) and cache pools (for caching) are
represented by special LVs with types thin-pool and cache-pool (see
lvmthin(7) and lvmcache(7)). The pool LVs are not usable as
standard block devices, but the LV names act as references to the pools.
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.
VDO LVs are also provisioned volumes from a VDO pool, and are created with a
virtual size rather than a physical size (see lvmvdo(7)).
In the usage section below, --name is omitted from the required
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
numeric suffix.
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.
Pool name can be specified together with VG name i.e.:
vg00/mythinpool.
lvcreate -L|--size Size[m|UNIT] VG
Create a striped LV (infers --type striped).
lvcreate -i|--stripes Number -L|--size Size[m|UNIT] VG
Create a raid1 or mirror LV (infers --type raid1|mirror).
lvcreate -m|--mirrors Number -L|--size Size[m|UNIT] VG
Create a raid LV (a specific raid level must be used, e.g. raid1).
lvcreate --type raid -L|--size Size[m|UNIT] VG
Create a raid10 LV.
lvcreate -m|--mirrors Number -i|--stripes Number
Create a COW snapshot LV of an origin LV.
lvcreate -s|--snapshot -L|--size Size[m|UNIT] LV
Create a thin pool.
lvcreate --type thin-pool -L|--size Size[m|UNIT] VG
Create a cache pool.
lvcreate --type cache-pool -L|--size Size[m|UNIT] VG
Create a thin LV in a thin pool (infers --type thin).
lvcreate -V|--virtualsize Size[m|UNIT] --thinpool LV_thinpool VG
Create a thin LV that is a snapshot of an existing thin LV
lvcreate -s|--snapshot LV_thin
Create a thin LV that is a snapshot of an external origin LV.
lvcreate --type thin --thinpool LV_thinpool LV
Create a LV that returns VDO when used.
lvcreate --type vdo -L|--size Size[m|UNIT] VG
Create a thin LV, first creating a thin pool for it,
lvcreate --type thin -V|--virtualsize Size[m|UNIT]
Create a cache LV, first creating a new origin LV,
lvcreate --type cache -L|--size Size[m|UNIT]
Common options for command:
Common options for lvm:
Create an LV that returns errors when used.
lvcreate --type error -L|--size Size[m|UNIT] VG
Create an LV that returns zeros when read.
lvcreate --type zero -L|--size Size[m|UNIT] VG
Create a linear LV.
lvcreate --type linear -L|--size Size[m|UNIT] VG
Create a striped LV (also see lvcreate --stripes).
lvcreate --type striped -L|--size Size[m|UNIT] VG
Create a mirror LV (also see --type raid1).
lvcreate --type mirror -L|--size Size[m|UNIT] VG
Create a COW snapshot LV of an origin LV
lvcreate --type snapshot -L|--size Size[m|UNIT] LV
Create a sparse COW snapshot LV of a virtual origin LV
lvcreate --type snapshot -L|--size Size[m|UNIT]
Create a sparse COW snapshot LV of a virtual origin LV.
lvcreate -s|--snapshot -L|--size Size[m|UNIT]
Create a thin pool (infers --type thin-pool).
lvcreate -T|--thin -L|--size Size[m|UNIT] VG
Create a thin pool named by the --thinpool arg
lvcreate -L|--size Size[m|UNIT] --thinpool LV_new VG
Create a cache pool named by the --cachepool arg
lvcreate --type cache-pool -L|--size Size[m|UNIT]
Create a thin LV in a thin pool.
lvcreate --type thin -V|--virtualsize Size[m|UNIT]
Create a thin LV in a thin pool named in the first arg
lvcreate --type thin -V|--virtualsize Size[m|UNIT] LV_thinpool
Create a thin LV in the thin pool named in the first arg
lvcreate -V|--virtualsize Size[m|UNIT] LV_thinpool
Create a thin LV that is a snapshot of an existing thin LV.
lvcreate --type thin LV_thin
Create a thin LV that is a snapshot of an existing thin LV
lvcreate -T|--thin LV_thin
Create a thin LV that is a snapshot of an external origin LV
lvcreate -s|--snapshot --thinpool LV_thinpool LV
Create a VDO LV with VDO pool.
lvcreate --vdo -L|--size Size[m|UNIT] VG
Create a VDO LV with VDO pool.
lvcreate --vdopool LV_new -L|--size Size[m|UNIT] VG
Create a thin LV, first creating a thin pool for it,
lvcreate -V|--virtualsize Size[m|UNIT] -L|--size Size[m|UNIT]
Create a thin LV, first creating a thin pool for it,
lvcreate -V|--virtualsize Size[m|UNIT] -L|--size Size[m|UNIT]
Create a thin LV, first creating a thin pool for it,
lvcreate --type thin -V|--virtualsize Size[m|UNIT]
Create a thin LV, first creating a thin pool for it,
lvcreate -T|--thin -V|--virtualsize Size[m|UNIT]
Create a thin LV, first creating a thin pool for it
lvcreate -L|--size Size[m|UNIT] -V|--virtualsize Size[m|UNIT] VG
Create a cache LV, first creating a new origin LV,
lvcreate -L|--size Size[m|UNIT] --cachepool LV_cachepool VG
Create a cache LV, first creating a new origin LV,
lvcreate --type cache -L|--size Size[m|UNIT] LV_cachepool
When LV is a cache pool, create a cache LV,
lvcreate -H|--cache -L|--size Size[m|UNIT] LV
Create a striped LV with 3 stripes, a stripe size of 8KiB and a size of 100MiB.
The LV name is chosen by lvcreate.
Create a raid1 LV with two images, and a useable size of 500 MiB. This
operation requires two devices, one for each mirror image. RAID metadata
(superblock and bitmap) is also included on the two devices.
Create a mirror LV with two images, and a useable size of 500 MiB.
This operation requires three devices: two for mirror images and
one for a disk log.
Create a mirror LV with 2 images, and a useable size of 500 MiB.
This operation requires 2 devices because the log is in memory.
Create a copy-on-write snapshot of an LV:
Create a copy-on-write snapshot with a size sufficient
for overwriting 20% of the size of the original LV.
Create a sparse LV with 1TiB of virtual space, and actual space just under
100MiB.
Create a linear LV with a usable size of 64MiB on specific physical extents.
Create a RAID5 LV with a usable size of 5GiB, 3 stripes, a stripe size of
64KiB, using a total of 4 devices (including one for parity).
Create a RAID5 LV using all of the free space in the VG and spanning all the
PVs in the VG (note that the command will fail if there are more than 8 PVs in
the VG, in which case -i 7 must be used to get to the current maximum of
8 devices including parity for RaidLVs).
Create RAID10 LV with a usable size of 5GiB, using 2 stripes, each on
a two-image mirror. (Note that the -i and -m arguments behave
differently:
-i specifies the total number of stripes,
but -m specifies the number of images in addition
to the first image).
Create a 1TiB thin LV mythin, with 256GiB thinpool tpool0 in vg00.
Create a 1TiB thin LV, first creating a new thin pool for it, where
the thin pool has 100MiB of space, uses 2 stripes, has a 64KiB stripe
size, and 256KiB chunk size.
Create a thin snapshot of a thin LV (the size option must not be
used, otherwise a copy-on-write snapshot would be created).
Create a thin snapshot of the read-only inactive LV named "origin"
which becomes an external origin for the thin snapshot LV.
Create a cache pool from a fast physical device. The cache pool can
then be used to cache an LV.
Create a cache LV, first creating a new origin LV on a slow physical device,
then combining the new origin LV with an existing cache pool.
Create a VDO LV vdo0 with VDOPoolLV size of 10GiB and name vpool1.
lvm(8)
lvm.conf(5)
lvmconfig(8)
pvchange(8)
pvck(8)
pvcreate(8)
pvdisplay(8)
pvmove(8)
pvremove(8)
pvresize(8)
pvs(8)
pvscan(8)
vgcfgbackup(8)
vgcfgrestore(8)
vgchange(8)
vgck(8)
vgcreate(8)
vgconvert(8)
vgdisplay(8)
vgexport(8)
vgextend(8)
vgimport(8)
vgimportclone(8)
vgmerge(8)
vgmknodes(8)
vgreduce(8)
vgremove(8)
vgrename(8)
vgs(8)
vgscan(8)
vgsplit(8)
lvcreate(8)
lvchange(8)
lvconvert(8)
lvdisplay(8)
lvextend(8)
lvreduce(8)
lvremove(8)
lvrename(8)
lvresize(8)
lvs(8)
lvscan(8)
lvm-fullreport(8)
lvm-lvpoll(8)
lvm2-activation-generator(8)
blkdeactivate(8)
lvmdump(8)
dmeventd(8)
lvmpolld(8)
lvmlockd(8)
lvmlockctl(8)
cmirrord(8)
lvmdbusd(8)
lvmsystemid(7)
lvmreport(7)
lvmraid(7)
lvmthin(7)
lvmcache(7)
-a|--activate y|n|ay
-A|--autobackup y|n
-H|--cache
-c|--chunksize Size[k|UNIT]
-C|--contiguous y|n
-d|--debug
-l|--extents Number[PERCENT]
-h|--help
-K|--ignoreactivationskip
-j|--major Number
-m|--mirrors Number
-n|--name String
-p|--permission rw|r
-M|--persistent y|n
-q|--quiet
-r|--readahead auto|none|Number
-R|--regionsize Size[m|UNIT]
-k|--setactivationskip y|n
-L|--size Size[m|UNIT]
-s|--snapshot
-i|--stripes Number
-I|--stripesize Size[k|UNIT]
-t|--test
-T|--thin
-v|--verbose
-V|--virtualsize Size[m|UNIT]
-W|--wipesignatures y|n
-y|--yes
-Z|--zero y|n
DESCRIPTION
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
is not enough free space, the VG can be extended with other PVs
(vgextend(8)), or existing LVs can be reduced or removed
(lvremove(8), lvreduce(8).)
Usage notes
In the usage section below, --size Size can be replaced
with --extents Number. See descriptions in the options section.
USAGE
Create a linear LV.
[ --type linear ]
[ COMMON_OPTIONS ]
-
[ -I|--stripesize Size[k|UNIT] ]
[ COMMON_OPTIONS ]
-
[ -R|--regionsize Size[m|UNIT] ]
[ --mirrorlog core|disk ]
[ --[raid]minrecoveryrate Size[k|UNIT] ]
[ --[raid]maxrecoveryrate Size[k|UNIT] ]
[ COMMON_OPTIONS ]
-
[ -m|--mirrors Number ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ -R|--regionsize Size[m|UNIT] ]
[ --[raid]minrecoveryrate Size[k|UNIT] ]
[ --[raid]maxrecoveryrate Size[k|UNIT] ]
[ COMMON_OPTIONS ]
-
-L|--size Size[m|UNIT] VG
[ -I|--stripesize Size[k|UNIT] ]
[ -R|--regionsize Size[m|UNIT] ]
[ --[raid]minrecoveryrate Size[k|UNIT] ]
[ --[raid]maxrecoveryrate Size[k|UNIT] ]
[ COMMON_OPTIONS ]
-
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ -c|--chunksize Size[k|UNIT] ]
[ --type snapshot ]
[ COMMON_OPTIONS ]
-
[ -c|--chunksize Size[k|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --thinpool LV_new ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
[ -H|--cache ]
[ -c|--chunksize Size[k|UNIT] ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --cachemode writethrough|writeback|passthrough ]
[ --cachepolicy String ]
[ --cachesettings String ]
[ --cachemetadataformat auto|1|2 ]
[ COMMON_OPTIONS ]
-
[ --type thin ]
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
(infers --type thin).
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
[ -c|--chunksize Size[k|UNIT] ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
[ -V|--virtualsize Size[m|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --vdo ]
[ --vdopool LV_new ]
[ --compression y|n ]
[ --deduplication y|n ]
[ COMMON_OPTIONS ]
-
where the new thin pool is named by the --thinpool arg.
-L|--size Size[m|UNIT] --thinpool LV_new
[ -T|--thin ]
[ -c|--chunksize Size[k|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
then combining it with the existing cache pool named
by the --cachepool arg.
--cachepool LV_cachepool VG
[ -H|--cache ]
[ -c|--chunksize Size[k|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --cachemode writethrough|writeback|passthrough ]
[ --cachepolicy String ]
[ --cachesettings String ]
[ --cachemetadataformat auto|1|2 ]
[ COMMON_OPTIONS ]
-
[ -A|--autobackup y|n ]
[ -C|--contiguous y|n ]
[ -K|--ignoreactivationskip ]
[ -j|--major Number ]
[ -n|--name String ]
[ -p|--permission rw|r ]
[ -M|--persistent y|n ]
[ -r|--readahead auto|none|Number ]
[ -k|--setactivationskip y|n ]
[ -W|--wipesignatures y|n ]
[ -Z|--zero y|n ]
[ --addtag Tag ]
[ --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ]
[ --ignoremonitoring ]
[ --metadataprofile String ]
[ --minor Number ]
[ --monitor y|n ]
[ --nosync ]
[ --noudevsync ]
[ --reportformat basic|json ]
[ -h|--help ]
[ -q|--quiet ]
[ -t|--test ]
[ -v|--verbose ]
[ -y|--yes ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --lockopt String ]
[ --longhelp ]
[ --nolocking ]
[ --profile String ]
[ --version ]
OPTIONS
VARIABLES
ENVIRONMENT VARIABLES
See lvm(8) for information about environment variables used by lvm.
For example, LVM_VG_NAME can generally be substituted for a required VG parameter.
ADVANCED USAGE
Alternate command forms, advanced command usage, and listing of all valid syntax for completeness.
[ COMMON_OPTIONS ]
-
[ COMMON_OPTIONS ]
-
[ COMMON_OPTIONS ]
-
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ COMMON_OPTIONS ]
-
[ -m|--mirrors Number ]
[ -R|--regionsize Size[m|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --mirrorlog core|disk ]
[ COMMON_OPTIONS ]
-
(also see --snapshot).
[ -s|--snapshot ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ -c|--chunksize Size[k|UNIT] ]
[ COMMON_OPTIONS ]
-
(also see --snapshot).
-V|--virtualsize Size[m|UNIT] VG
[ -s|--snapshot ]
[ -c|--chunksize Size[k|UNIT] ]
[ COMMON_OPTIONS ]
-
-V|--virtualsize Size[m|UNIT] VG
[ -c|--chunksize Size[k|UNIT] ]
[ --type snapshot ]
[ COMMON_OPTIONS ]
-
[ -c|--chunksize Size[k|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --type thin-pool ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
(infers --type thin-pool).
[ -T|--thin ]
[ -c|--chunksize Size[k|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --type thin-pool ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
(variant, uses --cachepool in place of --name).
--cachepool LV_new VG
[ -H|--cache ]
[ -c|--chunksize Size[k|UNIT] ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --cachemode writethrough|writeback|passthrough ]
[ --cachepolicy String ]
[ --cachesettings String ]
[ --cachemetadataformat auto|1|2 ]
[ COMMON_OPTIONS ]
-
--thinpool LV_thinpool VG
[ -c|--chunksize Size[k|UNIT] ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
(variant, also see --thinpool for naming pool).
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
(variant, infers --type thin, also see --thinpool for
naming pool.)
[ --type thin ]
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
(infers --type thin).
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
(infers --type thin).
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
[ -V|--virtualsize Size[m|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --vdopool LV_new ]
[ --compression y|n ]
[ --deduplication y|n ]
[ COMMON_OPTIONS ]
-
[ -V|--virtualsize Size[m|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --vdo ]
[ --type vdo ]
[ --compression y|n ]
[ --deduplication y|n ]
[ COMMON_OPTIONS ]
-
where the new thin pool is named by the --thinpool arg
(variant, infers --type thin).
--thinpool LV_new
[ -T|--thin ]
[ -c|--chunksize Size[k|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
where the new thin pool is named by the --thinpool arg
(variant, infers --type thin).
--thinpool LV_new VG
[ -T|--thin ]
[ -c|--chunksize Size[k|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
where the new thin pool is named in the first arg,
or the new thin pool name is generated when the first
arg is a VG name.
-L|--size Size[m|UNIT] VG|LV_new
[ -T|--thin ]
[ -c|--chunksize Size[k|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
where the new thin pool is named in the first arg,
or the new thin pool name is generated when the first
arg is a VG name (variant, infers --type thin).
-L|--size Size[m|UNIT] VG|LV_new
[ -c|--chunksize Size[k|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
(infers --type thin).
Create a sparse snapshot of a virtual origin LV
(infers --type snapshot).
Chooses --type thin or --type snapshot according to
config setting sparse_segtype_default.
[ -s|--snapshot ]
[ -c|--chunksize Size[k|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --type snapshot ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ COMMON_OPTIONS ]
-
then combining it with the existing cache pool named
by the --cachepool arg (variant, infers --type cache).
[ -H|--cache ]
[ -c|--chunksize Size[k|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --type cache ]
[ --cachemode writethrough|writeback|passthrough ]
[ --cachepolicy String ]
[ --cachesettings String ]
[ --cachemetadataformat auto|1|2 ]
[ COMMON_OPTIONS ]
-
then combining it with the existing cache pool named
in the first arg (variant, also use --cachepool).
[ -H|--cache ]
[ -c|--chunksize Size[k|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --cachemode writethrough|writeback|passthrough ]
[ --cachepolicy String ]
[ --cachesettings String ]
[ --cachemetadataformat auto|1|2 ]
[ COMMON_OPTIONS ]
-
first creating a new origin LV, then combining it with
the existing cache pool named in the first arg
(variant, infers --type cache, also use --cachepool).
When LV is not a cache pool, convert the specified LV
to type cache after creating a new cache pool LV to use
(use lvconvert).
[ -c|--chunksize Size[k|UNIT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --cachemode writethrough|writeback|passthrough ]
[ --cachepolicy String ]
[ --cachesettings String ]
[ --cachemetadataformat auto|1|2 ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ COMMON_OPTIONS ]
-
EXAMPLES
lvcreate -i 3 -I 8 -L 100m vg00
lvcreate --type raid1 -m1 -L 500m -n mylv vg00
lvcreate --type mirror -m1 -L 500m -n mylv vg00
lvcreate --type mirror -m1 --mirrorlog core -L 500m -n mylv vg00
lvcreate --snapshot --size 100m --name mysnap vg00/mylv
lvcreate -s -l 20%ORIGIN -n mysnap vg00/mylv
lvcreate --snapshot --virtualsize 1t --size 100m --name mylv vg00
lvcreate -L 64m -n mylv vg00 /dev/sda:0-7 /dev/sdb:0-7
lvcreate --type raid5 -L 5G -i 3 -I 64 -n mylv vg00
lvcreate --config allocation/raid_stripe_all_devices=1
lvcreate --type raid10 -L 5G -i 2 -m 1 -n mylv vg00
lvcreate --T --size 256G --name mythin vg00/tpool0
lvcreate --type thin --name mylv --thinpool mypool
lvcreate --snapshot --name mysnap vg00/thinvol
lvcreate --snapshot --name mysnap --thinpool mypool vg00/origin
lvcreate --type cache-pool -L 1G -n my_cpool vg00 /dev/fast1
lvcreate --type cache --cachepool my_cpool
lvcreate --vdo --size 10G --name vdo0 vg00/vpool1
SEE ALSO