LVCREATE(8) (NAME) lvcreate - LVM (SYNOPSIS) lvcreate [] _ (DESCRIPTION) lvcreate (Logical Volume) (striped) (mirror) RAID (thin provisioned) . (Logical Extents LE) (Free Physical Extents PE) (VG) . (PV) (vgextend(8)) (lvremove(8) lvreduce(8)). PV PV . lvcreate PV . lvcreate (snapshot ) . . RAID ( lvmraid(7) ). RAID PV . (Thin pools ) (Cache pools ) thin-pool cache-pool ( lvmthin(7) lvmcache(7) ). . (Thin LVs) . (Cache LV) . VDO VDO ( lvmvdo(7) ). (Usage notes) --size --extents . . --name . <> . VDO <> . : vg00/mythinpool. (USAGE) (linear): lvcreate -L|--size Size[m|UNIT] VG [ --type linear ] [ -l|--extents Number[PERCENT] ] [ _ ] [ PV ... ] -- (striped): lvcreate -i|--stripes Number -L|--size Size[m|UNIT] VG [ --type striped ] [ -l|--extents Number[PERCENT] ] [ -I|--stripesize Size[k|UNIT] ] [ _ ] [ PV ... ] -- raid1 (mirror): lvcreate -m|--mirrors Number -L|--size Size[m|UNIT] VG [ --type raid1|mirror ] [ -l|--extents Number[PERCENT] ] [ -R|--regionsize Size[m|UNIT] ] [ _ ] [ PV ... ] -- RAID ( raid4, raid5, raid6): lvcreate --type raid -L|--size Size[m|UNIT] VG [ -l|--extents Number[PERCENT] ] [ -i|--stripes Number ] [ -I|--stripesize Size[k|UNIT] ] [ _ ] [ PV ... ] -- raid10: lvcreate --type raid10 -m|--mirrors Number -i|--stripes Number -L|--size Size[m|UNIT] VG [ -l|--extents Number[PERCENT] ] [ _ ] [ PV ... ] -- (COW snapshot) : lvcreate -s|--snapshot -L|--size Size[m|UNIT] VG/LV [ -l|--extents Number[PERCENT] ] [ -c|--chunksize Size[k|UNIT] ] [ _ ] [ PV ... ] -- (thin pool): lvcreate --type thin-pool -L|--size Size[m|UNIT] VG [ -l|--extents Number[PERCENT] ] [ -c|--chunksize Size[k|UNIT] ] [ --poolmetadatasize Size[m|UNIT] ] [ _ ] [ PV ... ] -- (cache pool): lvcreate --type cache-pool -L|--size Size[m|UNIT] VG [ -l|--extents Number[PERCENT] ] [ -c|--chunksize Size[k|UNIT] ] [ --poolmetadatasize Size[m|UNIT] ] [ _ ] [ PV ... ] -- (thin LV) : lvcreate -V|--virtualsize Size[m|UNIT] --thinpool LV VG [ -T|--thin ] [ _ ] -- : lvcreate -s|--snapshot VG/LV [ _ ] -- : lvcreate -s|--snapshot --thinpool LV VG/LV [ _ ] -- VDO: lvcreate --vdo -V|--virtualsize Size[m|UNIT] -L|--size Size[m|UNIT] VG/LV [ --compression y|n ] [ --deduplication y|n ] [ _ ] -- ( ): lvcreate --type cache --cachepool LV -L|--size Size[m|UNIT] VG [ --cachemode writethrough|writeback|passthrough ] [ _ ] -- (cachevol) : lvcreate --type cache --cachevol LV -L|--size Size[m|UNIT] VG [ _ ] (OPTIONS) -a|--activate y|n|ay . y . . n . COW ( ). --zero . ay activation/auto_activation_volume_list lvm.conf(5) . ay (--zero n) (--wipesignatures n) . lvmlockd(8) . --addtag Tag (Tag) PV VG LV. . lvm(8) . --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit (PE) . VG LV vgchange/lvchange . normal PV . inherit . contiguous PE PE . cling PV LV . normal anywhere ( PV ). PV PV . lvm(8) . -A|--autobackup y|n . ! vgcfgbackup(8) . -H|--cache . --type cache --type cache-pool . LVM lvmcache(7) . --cachedevice PV () . --cachemetadataformat auto|1|2 . --cachemode writethrough|writeback|passthrough . writeback . writethrough . passthrough ( ) . lvmcache(7) . --cachepolicy String . lvmcache(7) . --cachepool LV (cache pool). --cachesettings String dm-cache dm- writecache . 'option=value' . 'default' . lvmcache(7) . --cachesize Size[m|UNIT] () . --cachevol LV . -c|--chunksize Size[k|UNIT] () . . . . lvmthin(7) lvmcache(7) . --commandprofile String . lvm.conf(5) . --compression y|n VDO . lvmvdo(7) . --configString lvm.conf(5) . -C|--contiguous y|n . . -d|--debug ... . syslog . --deduplication y|n (deduplication) VDO . lvmvdo(7) . --devices PV . . --devicesfile String LVM . /etc/lvm/devices/ lvmdevices(8) . --discards passdown|nopassdown|ignore discard/TRIM dm-thin-pool : ignore discard . nopassdown . passdown . lvmthin(7) . --driverloaded y|n n (device-mapper) ( ). --errorwhenfull y|n . y / . n . lvmthin(7) . -l|--extents Number[PERCENT] (LE). --size --extents . RAID . VG LV PV : %VG VG . %FREE VG . %PVS PV . %ORIGIN (100%ORIGIN ). -h|--help . -K|--ignoreactivationskip (activation skip) . --ignoremonitoring dmeventd --monitor . dmeventd . --integritysettings String dm-integrity. lvmraid(7) . --journal String systemd. --lockopt String lvmlockd. lvmlockd(8) . --longhelp . -j|--major Number (major number) . --[raid]maxrecoveryrate Size[k|UNIT] RAID ( ). . lvmraid(7) . --metadataprofile String . lvm.conf(5) . --minor Number (minor number) . --[raid]minrecoveryrate Size[k|UNIT] RAID. lvmraid(7) . --mirrorlog core|disk mirror ( raid1 ): disk . core ( ) . -m|--mirrors Number . --mirrors 1 ( ) . raid1 mirror lvmraid(7) . --monitor y|n (y) (n) dmeventd. dmeventd . dmeventd(8) . -n|--name String . "lvol#" LVM . --nohints (hints file) PV. --nolocking . . --nosync mirror raid1 raid4 raid5 raid10. . raid6 raid6 P Q . --noudevsync udev. udev . udev LVM . -p|--permission rw|r (r) (rw). -M|--persistent y|n y . --pooldatavdo y|n VDO . --poolmetadatasize Size[m|UNIT] . --poolmetadataspare y|n (spare metadata LV) . . --profile String --commandprofile --metadataprofile . -q|--quiet ... . . --raidintegrity y|n (checksums) RAID dm-integrity. --raidintegrityblocksize Number dm-integrity RAID ( : ). --raidintegritymode String () (bitmap) . -r|--readahead auto|none|Number (read ahead) . auto none . -R|--regionsize Size[m|UNIT] RAID mirror. lvm.conf(5) . --reportformat basic|json|json_std (basic) json json_std. lvmreport(7) . -k|--setactivationskip y|n << >> . . --setautoactivation y|n ( pvscan -aay) . -L|--size Size[m|UNIT] . --size --extents . RAID . -s|--snapshot ( ). . (COW) . . VG . COW . VG . . lvs --monitor . -i|--stripes Number (striped). PV () . ( --stripesize) . RAID 4/5/6 (parity) . -I|--stripesize Size[k|UNIT] . -t|--test (dry- run). . -T|--thin . --type thin --type thin-pool --virtualsize lvmthin(7) . --thinpool LV (thin pool). --type linear|striped|snapshot|raid|mirror|thin|thin-pool|vdo|vdo-pool| cache|cache-pool|writecache (segment type segtype) : (linear striped mirror raid) lvmraid(7) . (thin thin-pool) lvmthin(7) . (cache cache-pool writecache) lvmcache(7) . (snapshot) (vdo vdo-pool) lvmvdo(7) . ( --stripes --mirrors --snapshot --thin --vdo --cache) . --vdo VDO . lvmvdo(7) . --vdopool LV VDO. lvmvdo(7) . --vdosettings String VDO. 'default' . -v|--verbose ... ( ). --version . -V|--virtualsize Size[m|UNIT] VDO. (-V) (-L) (sparse LV) . -W|--wipesignatures y|n . --yes . . -y|--yes . ! -Z|--zero y|n . y . COW . : (mount) . (VARIABLES) VG (Volume Group). lvm(8) . LV (Logical Volume). VG/LV . PV (Physical Volume) /dev . : PV[:PE-PE]... String . Size[UNIT] . () ( k K ): b|B s|S k|K (KiB) m|M (MiB) g|G (GiB) t|T (TiB) p|P (PiB) e|E (EiB). (ENVIRONMENT VARIABLES) LVM lvm(8) . LVM_VG_NAME . (EXAMPLES) ( LVM ): lvcreate -i 3 -I 8 -L 100m vg00 raid1 ( RAID): lvcreate --type raid1 -m1 -L 500m -n mylv vg00 mirror ( ): lvcreate --type mirror -m1 -L 500m -n mylv vg00 mirror ( ): lvcreate --type mirror -m1 --mirrorlog core -L 500m -n mylv vg00 (COW) : lvcreate --snapshot --size 100m --name mysnap vg00/mylv COW : lvcreate -s -l 20%ORIGIN -n mysnap vg00/mylv (sparse) : lvcreate --snapshot --virtualsize 1t --size 100m --name mylv vg00 : lvcreate -L 64m -n mylv vg00 /dev/sda:0-7 /dev/sdb:0-7 RAID5 ( ): lvcreate --type raid5 -L 5G -i 3 -I 64 -n mylv vg00 RAID5 PV : lvcreate --config allocation/raid_stripe_all_devices=1 --type raid5 -l 100%FREE -n mylv vg00 RAID10 : lvcreate --type raid10 -L 5G -i 2 -m 1 -n mylv vg00 mythin tpool0: lvcreate -T -V 1T --size 256G --name mythin vg00/tpool0 : lvcreate --type thin --name mylv --thinpool mypool -V 1t -L 100m -i 2 -I 64 -c 256 vg00 ( ): lvcreate --snapshot --name mysnap vg00/thinvol (external origin): lvcreate --snapshot --name mysnap --thinpool mypool vg00/origin (SSD/NVMe): lvcreate --type cache-pool -L 1G -n my_cpool vg00 /dev/fast1 : lvcreate --type cache --cachepool my_cpool -L 100G -n mylv vg00 /dev/slow1 VDO : lvcreate --vdo --size 10G --name vdo0 vg00/vpool1 (SEE ALSO) lvm(8), lvm.conf(5), lvmconfig(8), lvmdevices(8), pvchange(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), vgmerge(8), vgreduce(8), vgremove(8), vgrename(8), vgs(8), vgscan(8), lvchange(8), lvconvert(8), lvdisplay(8), lvextend(8), lvreduce(8), lvremove(8), lvrename(8), lvresize(8), lvs(8), lvscan(8), dmeventd(8), lvmpolld(8), lvmlockd(8), lvmcache(7), lvmraid(7), lvmthin(7), lvmvdo(7) lvm2 LVCREATE(8)