{
    "content": [
        {
            "type": "text",
            "text": "# LVCREATE(8) (man)\n\n**Summary:** lvcreate - Create a logical volume\n\n**Synopsis:** lvcreate optionargs positionargs\n[ optionargs ]\n[ positionargs ]\n-a|--activate y|n|ay\n--addtag Tag\n--alloc contiguous|cling|clingbytags|normal|anywhere|inherit\n-A|--autobackup y|n\n-H|--cache\n--cachedevice PV\n--cachemetadataformat auto|1|2\n--cachemode writethrough|writeback|passthrough\n--cachepolicy String\n--cachepool LV\n--cachesettings String\n--cachesize Size[m|UNIT]\n--cachevol LV\n-c|--chunksize Size[k|UNIT]\n--commandprofile String\n--compression y|n\n--config String\n-C|--contiguous y|n\n-d|--debug\n--deduplication y|n\n--discards passdown|nopassdown|ignore\n--driverloaded y|n\n--errorwhenfull y|n\n-l|--extents Number[PERCENT]\n-h|--help\n-K|--ignoreactivationskip\n--ignoremonitoring\n--lockopt String\n--longhelp\n-j|--major Number\n--[raid]maxrecoveryrate Size[k|UNIT]\n--metadataprofile String\n--minor Number\n--[raid]minrecoveryrate Size[k|UNIT]\n--mirrorlog core|disk\n-m|--mirrors Number\n--monitor y|n\n-n|--name String\n--nolocking\n--nosync\n--noudevsync\n-p|--permission rw|r\n-M|--persistent y|n\n--poolmetadatasize Size[m|UNIT]\n--poolmetadataspare y|n\n--profile String\n-q|--quiet\n--raidintegrity y|n\n--raidintegrityblocksize Number\n--raidintegritymode String\n-r|--readahead auto|none|Number\n-R|--regionsize Size[m|UNIT]\n--reportformat basic|json\n-k|--setactivationskip y|n\n-L|--size Size[m|UNIT]\n-s|--snapshot\n-i|--stripes Number\n-I|--stripesize Size[k|UNIT]\n-t|--test\n-T|--thin\n--thinpool LV\n--type linear|striped|snapshot|mirror|raid|thin|cache|vdo|thin-pool|cache-pool|vdo-pool\n--vdo\n--vdopool LV\n-v|--verbose\n--version\n-V|--virtualsize Size[m|UNIT]\n-W|--wipesignatures y|n\n-y|--yes\n-Z|--zero y|n\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -a | --activate | — | Controls the active state of the new LV. y makes the LV active, or available. New LVs are made active by default. n make |\n| -A | --autobackup | — | Specifies if metadata should be backed up automatically after a change. Enabling this is strongly advised! See vgcfgback |\n| -H | --cache | — | Specifies the command is handling a cache LV or cache pool. See --type cache and --type cache-pool. See lvmcache(7) for  |\n| -c | --chunksize | — | The size of chunks in a snapshot, cache pool or thin pool. For snapshots, the value must be a power of 2 between 4KiB an |\n| -C | --contiguous | — | Sets or resets the contiguous allocation policy for LVs. Default is no contiguous al‐ location based on a next free prin |\n| -d | --debug | — | Set debug level. Repeat from 1 to 6 times to increase the detail of messages sent to the log file and/or syslog (if conf |\n| -l | --extents | — | Specifies the size of the new LV in logical extents. The --size and --extents options are alternate methods of specifyin |\n| -h | --help | — | Display help text. |\n| -K | --ignoreactivationskip | — | Ignore the \"activation skip\" LV flag during activation to allow LVs with the flag set to be activated. |\n| — | --ignoremonitoring | — | Do not interact with dmeventd unless --monitor is specified. Do not use this if dmeventd is already monitoring a device. |\n| — | --longhelp | — | Display long help text. |\n| -j | --major | — | Sets the major number of an LV block device. --[raid]maxrecoveryrate Size[k|UNIT] Sets the maximum recovery rate for a R |\n| -m | --mirrors | — | Specifies the number of mirror images in addition to the original LV image, e.g. --mirrors 1 means there are two images  |\n| -n | --name | — | Specifies the name of a new LV. When unspecified, a default name of \"lvol#\" is gener‐ ated, where # is a number generate |\n| — | --nolocking | — | Disable locking. |\n| — | --nosync | — | Causes the creation of mirror, raid1, raid4, raid5 and raid10 to skip the initial syn‐ chronization. In case of mirror,  |\n| — | --noudevsync | — | Disables udev synchronisation. The process will not wait for notification from udev. It will continue irrespective of an |\n| -p | --permission | — | Set access permission to read only r or read and write rw. |\n| -M | --persistent | — | When yes, makes the specified minor number persistent. --poolmetadatasize Size[m|UNIT] Specifies the size of the new poo |\n| -q | --quiet | — | Suppress output and log messages. Overrides --debug and --verbose. Repeat once to also suppress any prompts with answer  |\n| -r | --readahead | — | Sets read ahead sector count of an LV. auto is the default which allows the kernel to choose a suitable value automatica |\n| -R | --regionsize | — | Size of each raid or mirror synchronization region. lvm.conf activation/raidre‐ gionsize can be used to configure a defa |\n| -k | --setactivationskip | — | Persistently sets (yes) or clears (no) the \"activation skip\" flag on an LV. An LV with this flag set is not activated un |\n| -L | --size | — | Specifies the size of the new LV. The --size and --extents options are alternate methods of specifying size. The total n |\n| -s | --snapshot | — | Create a snapshot. Snapshots provide a \"frozen image\" of an origin LV. The snapshot LV can be used, e.g. for backups, wh |\n| -i | --stripes | — | Specifies the number of stripes in a striped LV. This is the number of PVs (devices) that a striped LV is spread across. |\n| -I | --stripesize | — | The amount of data that is written to one device before moving to the next in a striped LV. |\n| -t | --test | — | Run in test mode. Commands will not update metadata. This is implemented by disabling all metadata writing but neverthel |\n| -T | --thin | — | Specifies the command is handling a thin LV or thin pool. See --type thin, --type thin-pool, and --virtualsize. See lvmt |\n| — | --vdo | — | Specifies the command is handling VDO LV. See --type vdo. See lvmvdo(7) for more in‐ formation about VDO usage. --vdopoo |\n| -v | --verbose | — | Set verbose level. Repeat from 1 to 4 times to increase the detail of messages sent to stdout and stderr. |\n| — | --version | — | Display version information. |\n| -V | --virtualsize | — | The virtual size of a new thin LV. See lvmthin(7) for more information about LVM thin provisioning. Using virtual size ( |\n| -W | --wipesignatures | — | Controls detection and subsequent wiping of signatures on new LVs. There is a prompt for each signature detected to conf |\n| -y | --yes | — | Do not prompt for confirmation interactively but always assume the answer yes. Use with extreme caution. (For automatic  |\n| -Z | --zero | — | Controls zeroing of the first 4KiB of data in the new LV. Default is y. Snapshot COW volumes are always zeroed. For thin |\n\n## Examples\n\n- `Create  a striped LV with 3 stripes, a stripe size of 8KiB and a size of 100MiB.  The LV name`\n- `is chosen by lvcreate.`\n- `Create a raid1 LV with two images, and a useable size of 500 MiB. This operation requires two`\n- `devices, one for each mirror image. RAID metadata (superblock and bitmap) is also included on`\n- `the two devices.`\n- `Create a mirror LV with two images, and a useable size of 500 MiB.  This  operation  requires`\n- `three devices: two for mirror images and one for a disk log.`\n- `Create  a  mirror LV with 2 images, and a useable size of 500 MiB.  This operation requires 2`\n- `devices because the log is in memory.`\n- `Create a copy-on-write snapshot of an LV:`\n- `Create a copy-on-write snapshot with a size sufficient for overwriting 20% of the size of the`\n- `original LV.`\n- `Create a sparse LV with 1TiB of virtual space, and actual space just under 100MiB.`\n- `Create a linear LV with a usable size of 64MiB on specific physical extents.`\n- `Create  a RAID5 LV with a usable size of 5GiB, 3 stripes, a stripe size of 64KiB, using a to‐`\n- `tal of 4 devices (including one for parity).`\n- `Create a RAID5 LV using all of the free space in the VG and spanning all the PVs  in  the  VG`\n- `(note  that  the command will fail if there are more than 8 PVs in the VG, in which case -i 7`\n- `must be used to get to the current maximum of 8 devices including parity for RaidLVs).`\n- `lvcreate --config allocation/raidstripealldevices=1`\n- `--type raid5 -l 100%FREE -n mylv vg00`\n- `Create RAID10 LV with a usable size of 5GiB, using 2 stripes, each  on  a  two-image  mirror.`\n- `(Note  that  the  -i  and  -m  arguments behave differently: -i specifies the total number of`\n- `stripes, but -m specifies the number of images in addition to the first image).`\n- `Create a 1TiB thin LV mythin, with 256GiB thinpool tpool0 in vg00.`\n- `Create a 1TiB thin LV, first creating a new thin pool for it, where the thin pool has  100MiB`\n- `of space, uses 2 stripes, has a 64KiB stripe size, and 256KiB chunk size.`\n- `-V 1t -L 100m -i 2 -I 64 -c 256 vg00`\n- `Create  a  thin  snapshot  of  a thin LV (the size option must not be used, otherwise a copy-`\n- `on-write snapshot would be created).`\n- `Create a thin snapshot of the read-only inactive LV named \"origin\" which becomes an  external`\n- `origin for the thin snapshot LV.`\n- `Create  a cache pool from a fast physical device. The cache pool can then be used to cache an`\n- `LV.`\n- `lvcreate --type cache-pool -L 1G -n mycpool vg00 /dev/fast1`\n- `Create a cache LV, first creating a new origin LV on a slow physical device,  then  combining`\n- `the new origin LV with an existing cache pool.`\n- `lvcreate --type cache --cachepool mycpool`\n- `-L 100G -n mylv vg00 /dev/slow1`\n- `Create a VDO LV vdo0 with VDOPoolLV size of 10GiB and name vpool1.`\n\n## See Also\n\n- lvm(8)\n- lvm.conf(5)\n- lvmconfig(8)\n- pvchange(8)\n- pvck(8)\n- pvcreate(8)\n- pvdisplay(8)\n- pvmove(8)\n- pvremove(8)\n- pvresize(8)\n- pvs(8)\n- can(8)\n- vgcfgbackup(8)\n- vgcfgrestore(8)\n- vgchange(8)\n- vgck(8)\n- vgcreate(8)\n- vgconvert(8)\n- vgdisplay(8)\n- export(8)\n- vgextend(8)\n- vgimport(8)\n- vgimportclone(8)\n- vgmerge(8)\n- vgmknodes(8)\n- vgreduce(8)\n- move(8)\n- vgrename(8)\n- vgs(8)\n- vgscan(8)\n- vgsplit(8)\n- lvcreate(8)\n- lvchange(8)\n- lvconvert(8)\n- lvdisplay(8)\n- lvextend(8)\n- lvreduce(8)\n- lvremove(8)\n- name(8)\n- lvresize(8)\n- lvs(8)\n- lvscan(8)\n- lvm-fullreport(8)\n- lvm-lvpoll(8)\n- lvm2-activation-generator(8)\n- blkdeactivate(8)\n- lvmdump(8)\n- dmeventd(8)\n- lvmpolld(8)\n- lvmlockd(8)\n- lvmlockctl(8)\n- cmirrord(8)\n- lvmdbusd(8)\n- lvmsystemid(7)\n- lvmreport(7)\n- lvmraid(7)\n- lvmthin(7)\n- lvmcache(7)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (75 lines)\n- **DESCRIPTION** (28 lines) — 1 subsections\n  - Usage notes (12 lines)\n- **USAGE** (292 lines)\n- **OPTIONS** (1 lines) — 36 subsections\n  - -a --activate (27 lines)\n  - -A --autobackup (3 lines)\n  - -H --cache (38 lines)\n  - -c --chunksize (21 lines)\n  - -C --contiguous (5 lines)\n  - -d --debug (26 lines)\n  - -l --extents (12 lines)\n  - -h --help (2 lines)\n  - -K --ignoreactivationskip (3 lines)\n  - --ignoremonitoring (7 lines)\n  - --longhelp (2 lines)\n  - -j --major (28 lines)\n  - -m --mirrors (15 lines)\n  - -n --name (3 lines)\n  - --nolocking (2 lines)\n  - --nosync (11 lines)\n  - --noudevsync (4 lines)\n  - -p --permission (2 lines)\n  - -M --persistent (12 lines)\n  - -q --quiet (20 lines)\n  - -r --readahead (3 lines)\n  - -R --regionsize (10 lines)\n  - -k --setactivationskip (6 lines)\n  - -L --size (4 lines)\n  - -s --snapshot (19 lines)\n  - -i --stripes (10 lines)\n  - -I --stripesize (3 lines)\n  - -t --test (5 lines)\n  - -T --thin (18 lines)\n  - --vdo (6 lines)\n  - -v --verbose (3 lines)\n  - --version (2 lines)\n  - -V --virtualsize (9 lines)\n  - -W --wipesignatures (11 lines)\n  - -y --yes (3 lines)\n  - -Z --zero (5 lines)\n- **VARIABLES** (30 lines)\n- **ENVIRONMENT VARIABLES** (3 lines)\n- **ADVANCED USAGE** (389 lines)\n- **EXAMPLES** (2 lines) — 15 subsections\n  - lvcreate -i 3 -I 8 -L 100m vg00 (3 lines)\n  - lvcreate --type raid1 -m1 -L 500m -n mylv vg00 (2 lines)\n  - lvcreate --type mirror -m1 -L 500m -n mylv vg00 (2 lines)\n  - lvcreate --type mirror -m1 --mirrorlog core -L 500m -n mylv  (1 lines)\n  - lvcreate --snapshot --size 100m --name mysnap vg00/mylv (2 lines)\n  - lvcreate -s -l 20%ORIGIN -n mysnap vg00/mylv (1 lines)\n  - lvcreate --snapshot --virtualsize 1t --size 100m --name mylv (1 lines)\n  - lvcreate -L 64m -n mylv vg00 /dev/sda:0-7 /dev/sdb:0-7 (2 lines)\n  - lvcreate --type raid5 -L 5G -i 3 -I 64 -n mylv vg00 (9 lines)\n  - lvcreate --type raid10 -L 5G -i 2 -m 1 -n mylv vg00 (1 lines)\n  - lvcreate --T --size 256G --name mythin vg00/tpool0 (2 lines)\n  - lvcreate --type thin --name mylv --thinpool mypool (4 lines)\n  - lvcreate --snapshot --name mysnap vg00/thinvol (2 lines)\n  - lvcreate --snapshot --name mysnap --thinpool mypool vg00/ori (10 lines)\n  - lvcreate --vdo --size 10G --name vdo0 vg00/vpool1 (1 lines)\n- **SEE ALSO** (21 lines)\n\n## Full Content\n\n### NAME\n\nlvcreate - Create a logical volume\n\n### SYNOPSIS\n\nlvcreate optionargs positionargs\n[ optionargs ]\n[ positionargs ]\n\n-a|--activate y|n|ay\n--addtag Tag\n--alloc contiguous|cling|clingbytags|normal|anywhere|inherit\n-A|--autobackup y|n\n-H|--cache\n--cachedevice PV\n--cachemetadataformat auto|1|2\n--cachemode writethrough|writeback|passthrough\n--cachepolicy String\n--cachepool LV\n--cachesettings String\n--cachesize Size[m|UNIT]\n--cachevol LV\n-c|--chunksize Size[k|UNIT]\n--commandprofile String\n--compression y|n\n--config String\n-C|--contiguous y|n\n-d|--debug\n--deduplication y|n\n--discards passdown|nopassdown|ignore\n--driverloaded y|n\n--errorwhenfull y|n\n-l|--extents Number[PERCENT]\n-h|--help\n-K|--ignoreactivationskip\n--ignoremonitoring\n--lockopt String\n--longhelp\n-j|--major Number\n--[raid]maxrecoveryrate Size[k|UNIT]\n--metadataprofile String\n--minor Number\n--[raid]minrecoveryrate Size[k|UNIT]\n--mirrorlog core|disk\n-m|--mirrors Number\n--monitor y|n\n-n|--name String\n--nolocking\n--nosync\n--noudevsync\n-p|--permission rw|r\n-M|--persistent y|n\n--poolmetadatasize Size[m|UNIT]\n--poolmetadataspare y|n\n--profile String\n-q|--quiet\n--raidintegrity y|n\n--raidintegrityblocksize Number\n--raidintegritymode String\n-r|--readahead auto|none|Number\n-R|--regionsize Size[m|UNIT]\n--reportformat basic|json\n-k|--setactivationskip y|n\n-L|--size Size[m|UNIT]\n-s|--snapshot\n-i|--stripes Number\n-I|--stripesize Size[k|UNIT]\n-t|--test\n-T|--thin\n--thinpool LV\n--type linear|striped|snapshot|mirror|raid|thin|cache|vdo|thin-pool|cache-pool|vdo-pool\n--vdo\n--vdopool LV\n-v|--verbose\n--version\n-V|--virtualsize Size[m|UNIT]\n-W|--wipesignatures y|n\n-y|--yes\n-Z|--zero y|n\n\n### DESCRIPTION\n\nlvcreate creates a new LV in a VG. For standard LVs, this requires allocating logical extents\nfrom the VG's free physical extents. If there is not enough free space, the  VG  can  be  ex‐\ntended  with other PVs (vgextend(8)), or existing LVs can be reduced or removed (lvremove(8),\nlvreduce(8).)\n\nTo control which PVs a new LV will use, specify one or more PVs as position args at  the  end\nof the command line. lvcreate will allocate physical extents only from the specified PVs.\n\nlvcreate  can  also create snapshots of existing LVs, e.g. for backup purposes. The data in a\nnew snapshot LV represents the content of the original LV from the time the snapshot was cre‐\nated.\n\nRAID  LVs can be created by specifying an LV type when creating the LV (see lvmraid(7)). Dif‐\nferent RAID levels require different numbers of unique PVs be available in the VG for alloca‐\ntion.\n\nThin  pools  (for thin provisioning) and cache pools (for caching) are represented by special\nLVs with types thin-pool and cache-pool (see lvmthin(7) and lvmcache(7)). The  pool  LVs  are\nnot usable as standard block devices, but the LV names act as references to the pools.\n\nThin  LVs are thinly provisioned from a thin pool, and are created with a virtual size rather\nthan a physical size. A cache LV is the combination of a standard LV with a cache pool,  used\nto cache active portions of the LV to improve performance.\n\nVDO  LVs  are  also  provisioned volumes from a VDO pool, and are created with a virtual size\nrather than a physical size (see lvmvdo(7)).\n\n#### Usage notes\n\nIn the usage section below, --size Size can be replaced with --extents Number.  See  descrip‐\ntions in the options section.\n\nIn  the  usage  section below, --name is omitted from the required options, even though it is\ntypically used. When the name is not specified, a new LV name is generated  with  the  \"lvol\"\nprefix and a unique numeric suffix.\n\nIn the usage section below, when creating a pool and the name is omitted the new LV pool name\nis generated with the \"vpool\" for vdo-pools  for prefix and a unique numeric suffix.\n\nPool name can be specified together with VG name i.e.: vg00/mythinpool.\n\n### USAGE\n\nCreate a linear LV.\n\nlvcreate -L|--size Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[    --type linear ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a striped LV (infers --type striped).\n\nlvcreate -i|--stripes Number -L|--size Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ -I|--stripesize Size[k|UNIT] ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a raid1 or mirror LV (infers --type raid1|mirror).\n\nlvcreate -m|--mirrors Number -L|--size Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ -R|--regionsize Size[m|UNIT] ]\n[    --mirrorlog core|disk ]\n[    --[raid]minrecoveryrate Size[k|UNIT] ]\n[    --[raid]maxrecoveryrate Size[k|UNIT] ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a raid LV (a specific raid level must be used, e.g. raid1).\n\nlvcreate --type raid -L|--size Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ -m|--mirrors Number ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[ -R|--regionsize Size[m|UNIT] ]\n[    --[raid]minrecoveryrate Size[k|UNIT] ]\n[    --[raid]maxrecoveryrate Size[k|UNIT] ]\n[    --raidintegrity y|n ]\n[    --raidintegritymode String ]\n[    --raidintegrityblocksize Number ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a raid10 LV.\n\nlvcreate -m|--mirrors Number -i|--stripes Number\n-L|--size Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ -I|--stripesize Size[k|UNIT] ]\n[ -R|--regionsize Size[m|UNIT] ]\n[    --[raid]minrecoveryrate Size[k|UNIT] ]\n[    --[raid]maxrecoveryrate Size[k|UNIT] ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a COW snapshot LV of an origin LV.\n\nlvcreate -s|--snapshot -L|--size Size[m|UNIT] LV\n[ -l|--extents Number[PERCENT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[ -c|--chunksize Size[k|UNIT] ]\n[    --type snapshot ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a thin pool.\n\nlvcreate --type thin-pool -L|--size Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --thinpool LVnew ]\n[    --poolmetadatasize Size[m|UNIT] ]\n[    --poolmetadataspare y|n ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a cache pool.\n\nlvcreate --type cache-pool -L|--size Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ -H|--cache ]\n[ -c|--chunksize Size[k|UNIT] ]\n[    --poolmetadatasize Size[m|UNIT] ]\n[    --poolmetadataspare y|n ]\n[    --cachemode writethrough|writeback|passthrough ]\n[    --cachepolicy String ]\n[    --cachesettings String ]\n[    --cachemetadataformat auto|1|2 ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a thin LV in a thin pool (infers --type thin).\n\nlvcreate -V|--virtualsize Size[m|UNIT] --thinpool LVthinpool VG\n[ -T|--thin ]\n[    --type thin ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n-\n\nCreate a thin LV that is a snapshot of an existing thin LV\n(infers --type thin).\n\nlvcreate -s|--snapshot LVthin\n[    --type thin ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n-\n\nCreate a thin LV that is a snapshot of an external origin LV.\n\nlvcreate --type thin --thinpool LVthinpool LV\n[ -T|--thin ]\n[ -c|--chunksize Size[k|UNIT] ]\n[    --poolmetadatasize Size[m|UNIT] ]\n[    --poolmetadataspare y|n ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n-\n\nCreate a LV that returns VDO when used.\n\nlvcreate --type vdo -L|--size Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ -V|--virtualsize Size[m|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --vdo ]\n[    --vdopool LVnew ]\n[    --compression y|n ]\n[    --deduplication y|n ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a thin LV, first creating a thin pool for it,\nwhere the new thin pool is named by the --thinpool arg.\n\nlvcreate --type thin -V|--virtualsize Size[m|UNIT]\n-L|--size Size[m|UNIT] --thinpool LVnew\n[ -l|--extents Number[PERCENT] ]\n[ -T|--thin ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --poolmetadatasize Size[m|UNIT] ]\n[    --poolmetadataspare y|n ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a new LV, then attach the specified cachepool\nwhich converts the new LV to type cache.\n\nlvcreate --type cache -L|--size Size[m|UNIT]\n--cachepool LVcachepool VG\n[ -l|--extents Number[PERCENT] ]\n[ -H|--cache ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --poolmetadatasize Size[m|UNIT] ]\n[    --poolmetadataspare y|n ]\n[    --cachemode writethrough|writeback|passthrough ]\n[    --cachepolicy String ]\n[    --cachesettings String ]\n[    --cachemetadataformat auto|1|2 ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a new LV, then attach the specified cachevol\nwhich converts the new LV to type cache.\n\nlvcreate --type cache -L|--size Size[m|UNIT]\n--cachevol LV VG\n[ -l|--extents Number[PERCENT] ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --cachemode writethrough|writeback|passthrough ]\n[    --cachepolicy String ]\n[    --cachesettings String ]\n[    --cachemetadataformat auto|1|2 ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a new LV, then attach a cachevol created from\nthe specified cache device, which converts the\nnew LV to type cache.\n\nlvcreate --type cache -L|--size Size[m|UNIT]\n--cachedevice PV VG\n[ -l|--extents Number[PERCENT] ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --cachemode writethrough|writeback|passthrough ]\n[    --cachepolicy String ]\n[    --cachesettings String ]\n[    --cachemetadataformat auto|1|2 ]\n[    --cachesize Size[m|UNIT] ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a new LV, then attach the specified cachevol\nwhich converts the new LV to type writecache.\n\nlvcreate --type writecache -L|--size Size[m|UNIT]\n--cachevol LV VG\n[ -l|--extents Number[PERCENT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --cachesettings String ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a new LV, then attach a cachevol created from\nthe specified cache device, which converts the\nnew LV to type writecache.\n\nlvcreate --type writecache -L|--size Size[m|UNIT]\n--cachedevice PV VG\n[ -l|--extents Number[PERCENT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --cachesize Size[m|UNIT] ]\n[    --cachesettings String ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCommon options for command:\n[ -a|--activate y|n|ay ]\n[ -A|--autobackup y|n ]\n[ -C|--contiguous y|n ]\n[ -K|--ignoreactivationskip ]\n[ -j|--major Number ]\n[ -n|--name String ]\n[ -p|--permission rw|r ]\n[ -M|--persistent y|n ]\n[ -r|--readahead auto|none|Number ]\n[ -k|--setactivationskip y|n ]\n[ -W|--wipesignatures y|n ]\n[ -Z|--zero y|n ]\n[    --addtag Tag ]\n[    --alloc contiguous|cling|clingbytags|normal|anywhere|inherit ]\n[    --ignoremonitoring ]\n[    --metadataprofile String ]\n[    --minor Number ]\n[    --monitor y|n ]\n[    --nosync ]\n[    --noudevsync ]\n[    --reportformat basic|json ]\n\nCommon options for lvm:\n[ -d|--debug ]\n[ -h|--help ]\n[ -q|--quiet ]\n[ -t|--test ]\n[ -v|--verbose ]\n[ -y|--yes ]\n[    --commandprofile String ]\n[    --config String ]\n[    --driverloaded y|n ]\n[    --lockopt String ]\n[    --longhelp ]\n[    --nolocking ]\n[    --profile String ]\n[    --version ]\n\n### OPTIONS\n\n#### -a --activate\n\nControls the active state of the new LV.  y makes the LV active, or available.  New\nLVs are made active by default.  n makes the LV inactive, or unavailable, only when\npossible.  In some cases, creating an LV requires it to be active.  For example, COW\nsnapshots of an active origin LV can only be created in the active state (this does\nnot apply to thin snapshots).  The --zero option normally requires the LV to be ac‐\ntive.  If autoactivation ay is used, the LV is only activated if it matches an item in\nlvm.conf activation/autoactivationvolumelist.  ay implies --zero n and --wipesigna‐\ntures n.  See lvmlockd(8) for more information about activation options for shared\nVGs.\n\n--addtag Tag\nAdds a tag to a PV, VG or LV. This option can be repeated to add multiple tags at\nonce. See lvm(8) for information about tags.\n\n--alloc contiguous|cling|clingbytags|normal|anywhere|inherit\nDetermines the allocation policy when a command needs to allocate Physical Extents\n(PEs) from the VG. Each VG and LV has an allocation policy which can be changed with\nvgchange/lvchange, or overriden on the command line.  normal applies common sense\nrules such as not placing parallel stripes on the same PV.  inherit applies the VG\npolicy to an LV.  contiguous requires new PEs be placed adjacent to existing PEs.\ncling places new PEs on the same PV as existing PEs in the same stripe of the LV.  If\nthere are sufficient PEs for an allocation, but normal does not use them, anywhere\nwill use them even if it reduces performance, e.g. by placing two stripes on the same\nPV.  Optional positional PV args on the command line can also be used to limit which\nPVs the command will use for allocation.  See lvm(8) for more information about allo‐\ncation.\n\n#### -A --autobackup\n\nSpecifies if metadata should be backed up automatically after a change.  Enabling this\nis strongly advised! See vgcfgbackup(8) for more information.\n\n#### -H --cache\n\nSpecifies the command is handling a cache LV or cache pool.  See --type cache and\n--type cache-pool.  See lvmcache(7) for more information about LVM caching.\n\n--cachedevice PV\nThe name of a device to use for a cache.\n\n--cachemetadataformat auto|1|2\nSpecifies the cache metadata format used by cache target.\n\n--cachemode writethrough|writeback|passthrough\nSpecifies when writes to a cache LV should be considered complete.  writeback consid‐\ners a write complete as soon as it is stored in the cache pool.  writethough considers\na write complete only when it has been stored in both the cache pool and on the origin\nLV.  While writethrough may be slower for writes, it is more resilient if something\nshould happen to a device associated with the cache pool LV. With passthrough, all\nreads are served from the origin LV (all reads miss the cache) and all writes are for‐\nwarded to the origin LV; additionally, write hits cause cache block invalidates. See\nlvmcache(7) for more information.\n\n--cachepolicy String\nSpecifies the cache policy for a cache LV.  See lvmcache(7) for more information.\n\n--cachepool LV\nThe name of a cache pool.\n\n--cachesettings String\nSpecifies tunable values for a cache LV in \"Key = Value\" form.  Repeat this option to\nspecify multiple values.  (The default values should usually be adequate.)  The spe‐\ncial string value default switches settings back to their default kernel values and\nremoves them from the list of settings stored in LVM metadata.  See lvmcache(7) for\nmore information.\n\n--cachesize Size[m|UNIT]\nThe size of cache to use.\n\n--cachevol LV\nThe name of a cache volume.\n\n#### -c --chunksize\n\nThe size of chunks in a snapshot, cache pool or thin pool.  For snapshots, the value\nmust be a power of 2 between 4KiB and 512KiB and the default value is 4.  For a cache\npool the value must be between 32KiB and 1GiB and the default value is 64.  For a thin\npool the value must be between 64KiB and 1GiB and the default value starts with 64 and\nscales up to fit the pool metadata size within 128MiB, if the pool metadata size is\nnot specified.  The value must be a multiple of 64KiB.  See lvmthin(7) and lvmcache(7)\nfor more information.\n\n--commandprofile String\nThe command profile to use for command configuration.  See lvm.conf(5) for more infor‐\nmation about profiles.\n\n--compression y|n\nControls whether compression is enabled or disable for VDO volume.  See lvmvdo(7) for\nmore information about VDO usage.\n\n--config String\nConfig settings for the command. These override lvm.conf settings.  The String arg\nuses the same format as lvm.conf, or may use section/field syntax.  See lvm.conf(5)\nfor more information about config.\n\n#### -C --contiguous\n\nSets or resets the contiguous allocation policy for LVs.  Default is no contiguous al‐\nlocation based on a next free principle.  It is only possible to change a non-contigu‐\nous allocation policy to contiguous if all of the allocated physical extents in the LV\nare already contiguous.\n\n#### -d --debug\n\nSet debug level. Repeat from 1 to 6 times to increase the detail of messages sent to\nthe log file and/or syslog (if configured).\n\n--deduplication y|n\nControls whether deduplication is enabled or disable for VDO volume.  See lvmvdo(7)\nfor more information about VDO usage.\n\n--discards passdown|nopassdown|ignore\nSpecifies how the device-mapper thin pool layer in the kernel should handle discards.\nignore causes the thin pool to ignore discards.  nopassdown causes the thin pool to\nprocess discards itself to allow reuse of unneeded extents in the thin pool.  passdown\ncauses the thin pool to process discards itself (like nopassdown) and pass the dis‐\ncards to the underlying device.  See lvmthin(7) for more information.\n\n--driverloaded y|n\nIf set to no, the command will not attempt to use device-mapper.  For testing and de‐\nbugging.\n\n--errorwhenfull y|n\nSpecifies thin pool behavior when data space is exhausted.  When yes, device-mapper\nwill immediately return an error when a thin pool is full and an I/O request requires\nspace.  When no, device-mapper will queue these I/O requests for a period of time to\nallow the thin pool to be extended.  Errors are returned if no space is available af‐\nter the timeout.  (Also see dm-thin-pool kernel module option nospacetimeout.)  See\nlvmthin(7) for more information.\n\n#### -l --extents\n\nSpecifies the size of the new LV in logical extents.  The --size and --extents options\nare alternate methods of specifying size.  The total number of physical extents used\nwill be greater when redundant data is needed for RAID levels.  An alternate syntax\nallows the size to be determined indirectly as a percentage of the size of a related\nVG, LV, or set of PVs. The suffix %VG denotes the total size of the VG, the suffix\n%FREE the remaining free space in the VG, and the suffix %PVS the free space in the\nspecified PVs.  For a snapshot, the size can be expressed as a percentage of the total\nsize of the origin LV with the suffix %ORIGIN (100%ORIGIN provides space for the whole\norigin).  When expressed as a percentage, the size defines an upper limit for the num‐\nber of logical extents in the new LV. The precise number of logical extents in the new\nLV is not determined until the command has completed.\n\n#### -h --help\n\nDisplay help text.\n\n#### -K --ignoreactivationskip\n\nIgnore the \"activation skip\" LV flag during activation to allow LVs with the flag set\nto be activated.\n\n#### --ignoremonitoring\n\nDo not interact with dmeventd unless --monitor is specified.  Do not use this if\ndmeventd is already monitoring a device.\n\n--lockopt String\nUsed to pass options for special cases to lvmlockd.  See lvmlockd(8) for more informa‐\ntion.\n\n#### --longhelp\n\nDisplay long help text.\n\n#### -j --major\n\nSets the major number of an LV block device.\n\n--[raid]maxrecoveryrate Size[k|UNIT]\nSets the maximum recovery rate for a RAID LV.  The rate value is an amount of data per\nsecond for each device in the array.  Setting the rate to 0 means it will be un‐\nbounded.  See lvmraid(7) for more information.\n\n--metadataprofile String\nThe metadata profile to use for command configuration.  See lvm.conf(5) for more in‐\nformation about profiles.\n\n--minor Number\nSets the minor number of an LV block device.\n\n--[raid]minrecoveryrate Size[k|UNIT]\nSets the minimum recovery rate for a RAID LV.  The rate value is an amount of data per\nsecond for each device in the array.  Setting the rate to 0 means it will be un‐\nbounded.  See lvmraid(7) for more information.\n\n--mirrorlog core|disk\nSpecifies the type of mirror log for LVs with the \"mirror\" type (does not apply to the\n\"raid1\" type.)  disk is a persistent log and requires a small amount of storage space,\nusually on a separate device from the data being mirrored.  core is not persistent;\nthe log is kept only in memory.  In this case, the mirror must be synchronized (by\ncopying LV data from the first device to others) each time the LV is activated, e.g.\nafter reboot.  mirrored is a persistent log that is itself mirrored, but should be\navoided. Instead, use the raid1 type for log redundancy.\n\n#### -m --mirrors\n\nSpecifies the number of mirror images in addition to the original LV image, e.g.\n--mirrors 1 means there are two images of the data, the original and one mirror image.\nOptional positional PV args on the command line can specify the devices the images\nshould be placed on.  There are two mirroring implementations: \"raid1\" and \"mirror\".\nThese are the names of the corresponding LV types, or \"segment types\".  Use the --type\noption to specify which to use (raid1 is default, and mirror is legacy) Use lvm.conf\nglobal/mirrorsegtypedefault and global/raid10segtypedefault to configure the de‐\nfault types.  See the --nosync option for avoiding initial image synchronization.  See\nlvmraid(7) for more information.\n\n--monitor y|n\nStart (yes) or stop (no) monitoring an LV with dmeventd.  dmeventd monitors kernel\nevents for an LV, and performs automated maintenance for the LV in reponse to specific\nevents.  See dmeventd(8) for more information.\n\n#### -n --name\n\nSpecifies the name of a new LV.  When unspecified, a default name of \"lvol#\" is gener‐\nated, where # is a number generated by LVM.\n\n#### --nolocking\n\nDisable locking.\n\n#### --nosync\n\nCauses the creation of mirror, raid1, raid4, raid5 and raid10 to skip the initial syn‐\nchronization. In case of mirror, raid1 and raid10, any data written afterwards will be\nmirrored, but the original contents will not be copied. In case of raid4 and raid5, no\nparity blocks will be written, though any data written afterwards will cause parity\nblocks to be stored.  This is useful for skipping a potentially long and resource in‐\ntensive initial sync of an empty mirror/raid1/raid4/raid5 and raid10 LV.  This option\nis not valid for raid6, because raid6 relies on proper parity (P and Q Syndromes) be‐\ning created during initial synchronization in order to reconstruct proper user date in\ncase of device failures.  raid0 and raid0meta do not provide any data copies or par‐\nity support and thus do not support initial synchronization.\n\n#### --noudevsync\n\nDisables udev synchronisation. The process will not wait for notification from udev.\nIt will continue irrespective of any possible udev processing in the background. Only\nuse this if udev is not running or has rules that ignore the devices LVM creates.\n\n#### -p --permission\n\nSet access permission to read only r or read and write rw.\n\n#### -M --persistent\n\nWhen yes, makes the specified minor number persistent.\n\n--poolmetadatasize Size[m|UNIT]\nSpecifies the size of the new pool metadata LV.\n\n--poolmetadataspare y|n\nEnable or disable the automatic creation and management of a spare pool metadata LV in\nthe VG. A spare metadata LV is reserved space that can be used when repairing a pool.\n\n--profile String\nAn alias for --commandprofile or --metadataprofile, depending on the command.\n\n#### -q --quiet\n\nSuppress output and log messages. Overrides --debug and --verbose.  Repeat once to\nalso suppress any prompts with answer 'no'.\n\n--raidintegrity y|n\nEnable or disable data integrity checksums for raid images.\n\n--raidintegrityblocksize Number\nThe block size to use for dm-integrity on raid images.  The integrity block size\nshould usually match the device logical block size, or the file system block size.  It\nmay be less than the file system block size, but not less than the device logical\nblock size.  Possible values: 512, 1024, 2048, 4096.\n\n--raidintegritymode String\nUse a journal (default) or bitmap for keeping integrity checksums consistent in case\nof a crash. The bitmap areas are recalculated after a crash, so corruption in those\nareas would not be detected. A journal does not have this problem.  The journal mode\ndoubles writes to storage, but can improve performance for scattered writes packed\ninto a single journal write.  bitmap mode can in theory achieve full write throughput\nof the device, but would not benefit from the potential scattered write optimization.\n\n#### -r --readahead\n\nSets read ahead sector count of an LV.  auto is the default which allows the kernel to\nchoose a suitable value automatically.  none is equivalent to zero.\n\n#### -R --regionsize\n\nSize of each raid or mirror synchronization region.  lvm.conf activation/raidre‐\ngionsize can be used to configure a default.\n\n--reportformat basic|json\nOverrides current output format for reports which is defined globally by the re‐\nport/outputformat setting in lvm.conf.  basic is the original format with columns and\nrows.  If there is more than one report per command, each report is prefixed with the\nreport name for identification. json produces report output in JSON format. See lvmre‐‐\nport(7) for more information.\n\n#### -k --setactivationskip\n\nPersistently sets (yes) or clears (no) the \"activation skip\" flag on an LV.  An LV\nwith this flag set is not activated unless the --ignoreactivationskip option is used\nby the activation command.  This flag is set by default on new thin snapshot LVs.  The\nflag is not applied to deactivation.  The current value of the flag is indicated in\nthe lvs lvattr bits.\n\n#### -L --size\n\nSpecifies the size of the new LV.  The --size and --extents options are alternate\nmethods of specifying size.  The total number of physical extents used will be greater\nwhen redundant data is needed for RAID levels.\n\n#### -s --snapshot\n\nCreate a snapshot. Snapshots provide a \"frozen image\" of an origin LV.  The snapshot\nLV can be used, e.g. for backups, while the origin LV continues to be used.  This op‐\ntion can create a COW (copy on write) snapshot, or a thin snapshot (in a thin pool.)\nThin snapshots are created when the origin is a thin LV and the size option is NOT\nspecified. Thin snapshots share the same blocks in the thin pool, and do not allocate\nnew space from the VG.  Thin snapshots are created with the \"activation skip\" flag,\nsee --setactivationskip.  A thin snapshot of a non-thin \"external origin\" LV is cre‐\nated when a thin pool is specified. Unprovisioned blocks in the thin snapshot LV are\nread from the external origin LV. The external origin LV must be read-only.  See\nlvmthin(7) for more information about LVM thin provisioning.  COW snapshots are cre‐\nated when a size is specified. The size is allocated from space in the VG, and is the\namount of space that can be used for saving COW blocks as writes occur to the origin\nor snapshot.  The size chosen should depend upon the amount of writes that are ex‐\npected; often 20% of the origin LV is enough. If COW space runs low, it can be ex‐\ntended with lvextend (shrinking is also allowed with lvreduce.)  A small amount of the\nCOW snapshot LV size is used to track COW block locations, so the full size is not\navailable for COW data blocks.  Use lvs to check how much space is used, and see\n--monitor to to automatically extend the size to avoid running out of space.\n\n#### -i --stripes\n\nSpecifies the number of stripes in a striped LV. This is the number of PVs (devices)\nthat a striped LV is spread across. Data that appears sequential in the LV is spread\nacross multiple devices in units of the stripe size (see --stripesize). This does not\nchange existing allocated space, but only applies to space being allocated by the com‐\nmand.  When creating a RAID 4/5/6 LV, this number does not include the extra devices\nthat are required for parity. The largest number depends on the RAID type (raid0: 64,\nraid10: 32, raid4/5: 63, raid6: 62), and when unspecified, the default depends on the\nRAID type (raid0: 2, raid10: 2, raid4/5: 3, raid6: 5.)  To stripe a new raid LV across\nall PVs by default, see lvm.conf allocation/raidstripealldevices.\n\n#### -I --stripesize\n\nThe amount of data that is written to one device before moving to the next in a\nstriped LV.\n\n#### -t --test\n\nRun in test mode. Commands will not update metadata.  This is implemented by disabling\nall metadata writing but nevertheless returning success to the calling function. This\nmay lead to unusual error messages in multi-stage operations if a tool relies on read‐\ning back metadata it believes has changed but hasn't.\n\n#### -T --thin\n\nSpecifies the command is handling a thin LV or thin pool.  See --type thin, --type\nthin-pool, and --virtualsize.  See lvmthin(7) for more information about LVM thin pro‐\nvisioning.\n\n--thinpool LV\nThe name of a thin pool LV.\n\n--type linear|striped|snapshot|mirror|raid|thin|cache|vdo|thin-pool|cache-pool|vdo-pool\nThe LV type, also known as \"segment type\" or \"segtype\".  See usage descriptions for\nthe specific ways to use these types.  For more information about redundancy and per‐\nformance (raid<N>, mirror, striped, linear) see lvmraid(7).  For thin provisioning\n(thin, thin-pool) see lvmthin(7).  For performance caching (cache, cache-pool) see\nlvmcache(7).  For copy-on-write snapshots (snapshot) see usage definitions.  For VDO\n(vdo) see lvmvdo(7).  Several commands omit an explicit type option because the type\nis inferred from other options or shortcuts (e.g. --stripes, --mirrors, --snapshot,\n--virtualsize, --thin, --cache, --vdo).  Use inferred types with care because it can\nlead to unexpected results.\n\n#### --vdo\n\nSpecifies the command is handling VDO LV.  See --type vdo.  See lvmvdo(7) for more in‐\nformation about VDO usage.\n\n--vdopool LV\nThe name of a VDO pool LV.  See lvmvdo(7) for more information about VDO usage.\n\n#### -v --verbose\n\nSet verbose level. Repeat from 1 to 4 times to increase the detail of messages sent to\nstdout and stderr.\n\n#### --version\n\nDisplay version information.\n\n#### -V --virtualsize\n\nThe virtual size of a new thin LV.  See lvmthin(7) for more information about LVM thin\nprovisioning.  Using virtual size (-V) and actual size (-L) together creates a sparse\nLV.  lvm.conf global/sparsesegtypedefault determines the default segment type used\nto create a sparse LV.  Anything written to a sparse LV will be returned when reading\nfrom it.  Reading from other areas of the LV will return blocks of zeros.  When using\na snapshot to create a sparse LV, a hidden virtual device is created using the zero\ntarget, and the LV has the suffix vorigin.  Snapshots are less efficient than thin\nprovisioning when creating large sparse LVs (GiB).\n\n#### -W --wipesignatures\n\nControls detection and subsequent wiping of signatures on new LVs.  There is a prompt\nfor each signature detected to confirm its wiping (unless --yes is used to override\nconfirmations.)  When not specified, signatures are wiped whenever zeroing is done\n(see --zero). This behaviour can be configured with lvm.conf allocation/wipesigna‐\ntureswhenzeroingnewlvs.  If blkid wiping is used (lvm.conf alloca‐\ntion/useblkidwiping) and LVM is compiled with blkid wiping support, then the\nblkid(8) library is used to detect the signatures (use blkid -k to list the signatures\nthat are recognized).  Otherwise, native LVM code is used to detect signatures (only\nMD RAID, swap and LUKS signatures are detected in this case.)  The LV is not wiped if\nthe read only flag is set.\n\n#### -y --yes\n\nDo not prompt for confirmation interactively but always assume the answer yes. Use\nwith extreme caution.  (For automatic no, see -qq.)\n\n#### -Z --zero\n\nControls zeroing of the first 4KiB of data in the new LV.  Default is y.  Snapshot COW\nvolumes are always zeroed.  For thin pools, this controls zeroing of provisioned\nblocks.  LV is not zeroed if the read only flag is set.  Warning: trying to mount an\nunzeroed LV can cause the system to hang.\n\n### VARIABLES\n\nVG\nVolume Group name.  See lvm(8) for valid names.  For lvcreate, the required  VG  posi‐\ntional  arg may be omitted when the VG name is included in another option, e.g. --name\nVG/LV.\n\nLV\nLogical Volume name.  See lvm(8) for valid names.  An LV positional arg generally  in‐\ncludes  the VG name and LV name, e.g. VG/LV.  LV followed by <type> indicates that an\nLV of the given type is required. (raid represents raid<N> type)\n\nPV\nPhysical Volume name, a device path under /dev.  For commands  managing  physical  ex‐\ntents,  a PV positional arg generally accepts a suffix indicating a range (or multiple\nranges) of physical extents (PEs). When the first PE is omitted, it  defaults  to  the\nstart  of  the  device, and when the last PE is omitted it defaults to end.  Start and\nend range (inclusive): PV[:PE-PE]...   Start  and  length  range  (counting  from  0):\nPV[:PE+PE]...\n\nString\nSee the option description for information about the string content.\n\nSize[UNIT]\nSize is an input number that accepts an optional unit.  Input units are always treated\nas base two values, regardless of capitalization, e.g. 'k' and 'K' both refer to 1024.\nThe  default  input  unit  is specified by letter, followed by |UNIT.  UNIT represents\nother possible input units: bBsSkKmMgGtTpPeE.  b|B is bytes, s|S  is  sectors  of  512\nbytes,  k|K is KiB, m|M is MiB, g|G is GiB, t|T is TiB, p|P is PiB, e|E is EiB.  (This\nshould not be confused with the output control --units,  where  capital  letters  mean\nmultiple of 1000.)\n\n### ENVIRONMENT VARIABLES\n\nSee lvm(8) for information about environment variables used by lvm.  For example, LVMVGNAME\ncan generally be substituted for a required VG parameter.\n\n### ADVANCED USAGE\n\nAlternate command forms, advanced command usage, and listing of all  valid  syntax  for  com‐\npleteness.\n\nCreate an LV that returns errors when used.\n\nlvcreate --type error -L|--size Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ COMMONOPTIONS ]\n-\n\nCreate an LV that returns zeros when read.\n\nlvcreate --type zero -L|--size Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ COMMONOPTIONS ]\n-\n\nCreate a linear LV.\n\nlvcreate --type linear -L|--size Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a striped LV (also see lvcreate --stripes).\n\nlvcreate --type striped -L|--size Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a mirror LV (also see --type raid1).\n\nlvcreate --type mirror -L|--size Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ -m|--mirrors Number ]\n[ -R|--regionsize Size[m|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --mirrorlog core|disk ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a COW snapshot LV of an origin LV\n(also see --snapshot).\n\nlvcreate --type snapshot -L|--size Size[m|UNIT] LV\n[ -l|--extents Number[PERCENT] ]\n[ -s|--snapshot ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a sparse COW snapshot LV of a virtual origin LV\n(also see --snapshot).\n\nlvcreate --type snapshot -L|--size Size[m|UNIT]\n-V|--virtualsize Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ -s|--snapshot ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a sparse COW snapshot LV of a virtual origin LV.\n\nlvcreate -s|--snapshot -L|--size Size[m|UNIT]\n-V|--virtualsize Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ -c|--chunksize Size[k|UNIT] ]\n[    --type snapshot ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a thin pool (infers --type thin-pool).\n\nlvcreate -T|--thin -L|--size Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --type thin-pool ]\n[    --poolmetadatasize Size[m|UNIT] ]\n[    --poolmetadataspare y|n ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a thin pool named by the --thinpool arg\n(infers --type thin-pool).\n\nlvcreate -L|--size Size[m|UNIT] --thinpool LVnew VG\n[ -l|--extents Number[PERCENT] ]\n[ -T|--thin ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --type thin-pool ]\n[    --poolmetadatasize Size[m|UNIT] ]\n[    --poolmetadataspare y|n ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a cache pool named by the --cachepool arg\n(variant, uses --cachepool in place of --name).\n\nlvcreate --type cache-pool -L|--size Size[m|UNIT]\n--cachepool LVnew VG\n[ -l|--extents Number[PERCENT] ]\n[ -H|--cache ]\n[ -c|--chunksize Size[k|UNIT] ]\n[    --poolmetadatasize Size[m|UNIT] ]\n[    --poolmetadataspare y|n ]\n[    --cachemode writethrough|writeback|passthrough ]\n[    --cachepolicy String ]\n[    --cachesettings String ]\n[    --cachemetadataformat auto|1|2 ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a thin LV in a thin pool.\n\nlvcreate --type thin -V|--virtualsize Size[m|UNIT]\n--thinpool LVthinpool VG\n[ -T|--thin ]\n[ -c|--chunksize Size[k|UNIT] ]\n[    --poolmetadatasize Size[m|UNIT] ]\n[    --poolmetadataspare y|n ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n-\n\nCreate a thin LV in a thin pool named in the first arg\n(variant, also see --thinpool for naming pool).\n\nlvcreate --type thin -V|--virtualsize Size[m|UNIT] LVthinpool\n[ -T|--thin ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n-\n\nCreate a thin LV in the thin pool named in the first arg\n(variant, infers --type thin, also see --thinpool for\nnaming pool.)\n\nlvcreate -V|--virtualsize Size[m|UNIT] LVthinpool\n[ -T|--thin ]\n[    --type thin ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n-\n\nCreate a thin LV that is a snapshot of an existing thin LV.\n\nlvcreate --type thin LVthin\n[ -T|--thin ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n-\n\nCreate a thin LV that is a snapshot of an existing thin LV\n(infers --type thin).\n\nlvcreate -T|--thin LVthin\n[    --type thin ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n-\n\nCreate a thin LV that is a snapshot of an external origin LV\n(infers --type thin).\n\nlvcreate -s|--snapshot --thinpool LVthinpool LV\n[    --type thin ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n-\n\nCreate a VDO LV with VDO pool.\n\nlvcreate --vdo -L|--size Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ -V|--virtualsize Size[m|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --vdopool LVnew ]\n[    --compression y|n ]\n[    --deduplication y|n ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a VDO LV with VDO pool.\n\nlvcreate --vdopool LVnew -L|--size Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ -V|--virtualsize Size[m|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --vdo ]\n[    --type vdo ]\n[    --compression y|n ]\n[    --deduplication y|n ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a thin LV, first creating a thin pool for it,\nwhere the new thin pool is named by the --thinpool arg\n(variant, infers --type thin).\n\nlvcreate -V|--virtualsize Size[m|UNIT] -L|--size Size[m|UNIT]\n--thinpool LVnew\n[ -l|--extents Number[PERCENT] ]\n[ -T|--thin ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --poolmetadatasize Size[m|UNIT] ]\n[    --poolmetadataspare y|n ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a thin LV, first creating a thin pool for it,\nwhere the new thin pool is named by the --thinpool arg\n(variant, infers --type thin).\n\nlvcreate -V|--virtualsize Size[m|UNIT] -L|--size Size[m|UNIT]\n--thinpool LVnew VG\n[ -l|--extents Number[PERCENT] ]\n[ -T|--thin ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --poolmetadatasize Size[m|UNIT] ]\n[    --poolmetadataspare y|n ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a thin LV, first creating a thin pool for it,\nwhere the new thin pool is named in the first arg,\nor the new thin pool name is generated when the first\narg is a VG name.\n\nlvcreate --type thin -V|--virtualsize Size[m|UNIT]\n-L|--size Size[m|UNIT] VG|LVnew\n[ -l|--extents Number[PERCENT] ]\n[ -T|--thin ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --poolmetadatasize Size[m|UNIT] ]\n[    --poolmetadataspare y|n ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a thin LV, first creating a thin pool for it,\nwhere the new thin pool is named in the first arg,\nor the new thin pool name is generated when the first\narg is a VG name (variant, infers --type thin).\n\nlvcreate -T|--thin -V|--virtualsize Size[m|UNIT]\n-L|--size Size[m|UNIT] VG|LVnew\n[ -l|--extents Number[PERCENT] ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --poolmetadatasize Size[m|UNIT] ]\n[    --poolmetadataspare y|n ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a thin LV, first creating a thin pool for it\n(infers --type thin).\nCreate a sparse snapshot of a virtual origin LV\n(infers --type snapshot).\nChooses --type thin or --type snapshot according to\nconfig setting sparsesegtypedefault.\n\nlvcreate -L|--size Size[m|UNIT] -V|--virtualsize Size[m|UNIT] VG\n[ -l|--extents Number[PERCENT] ]\n[ -s|--snapshot ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --type snapshot ]\n[    --poolmetadatasize Size[m|UNIT] ]\n[    --poolmetadataspare y|n ]\n[    --discards passdown|nopassdown|ignore ]\n[    --errorwhenfull y|n ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a new LV, then attach the specified cachepool\nwhich converts the new LV to type cache\n(variant, infers --type cache.)\n\nlvcreate -L|--size Size[m|UNIT] --cachepool LVcachepool VG\n[ -l|--extents Number[PERCENT] ]\n[ -H|--cache ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --type cache ]\n[    --cachemode writethrough|writeback|passthrough ]\n[    --cachepolicy String ]\n[    --cachesettings String ]\n[    --cachemetadataformat auto|1|2 ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nCreate a new LV, then attach the specified cachepool\nwhich converts the new LV to type cache.\n(variant, also use --cachepool).\n\nlvcreate --type cache -L|--size Size[m|UNIT] LVcachepool\n[ -l|--extents Number[PERCENT] ]\n[ -H|--cache ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --poolmetadatasize Size[m|UNIT] ]\n[    --poolmetadataspare y|n ]\n[    --cachemode writethrough|writeback|passthrough ]\n[    --cachepolicy String ]\n[    --cachesettings String ]\n[    --cachemetadataformat auto|1|2 ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\nWhen the LV arg is a cachepool, then create a new LV and\nattach the cachepool arg to it.\n(variant, use --type cache and --cachepool.)\nWhen the LV arg is not a cachepool, then create a new cachepool\nand attach it to the LV arg (alternative, use lvconvert.)\n\nlvcreate -H|--cache -L|--size Size[m|UNIT] LV\n[ -l|--extents Number[PERCENT] ]\n[ -c|--chunksize Size[k|UNIT] ]\n[ -i|--stripes Number ]\n[ -I|--stripesize Size[k|UNIT] ]\n[    --cachemode writethrough|writeback|passthrough ]\n[    --cachepolicy String ]\n[    --cachesettings String ]\n[    --cachemetadataformat auto|1|2 ]\n[    --poolmetadatasize Size[m|UNIT] ]\n[    --poolmetadataspare y|n ]\n[ COMMONOPTIONS ]\n[ PV ... ]\n-\n\n### EXAMPLES\n\nCreate  a striped LV with 3 stripes, a stripe size of 8KiB and a size of 100MiB.  The LV name\nis chosen by lvcreate.\n\n#### lvcreate -i 3 -I 8 -L 100m vg00\n\nCreate a raid1 LV with two images, and a useable size of 500 MiB. This operation requires two\ndevices, one for each mirror image. RAID metadata (superblock and bitmap) is also included on\nthe two devices.\n\n#### lvcreate --type raid1 -m1 -L 500m -n mylv vg00\n\nCreate a mirror LV with two images, and a useable size of 500 MiB.  This  operation  requires\nthree devices: two for mirror images and one for a disk log.\n\n#### lvcreate --type mirror -m1 -L 500m -n mylv vg00\n\nCreate  a  mirror LV with 2 images, and a useable size of 500 MiB.  This operation requires 2\ndevices because the log is in memory.\n\n#### lvcreate --type mirror -m1 --mirrorlog core -L 500m -n mylv vg00\n\nCreate a copy-on-write snapshot of an LV:\n\n#### lvcreate --snapshot --size 100m --name mysnap vg00/mylv\n\nCreate a copy-on-write snapshot with a size sufficient for overwriting 20% of the size of the\noriginal LV.\n\n#### lvcreate -s -l 20%ORIGIN -n mysnap vg00/mylv\n\nCreate a sparse LV with 1TiB of virtual space, and actual space just under 100MiB.\n\n#### lvcreate --snapshot --virtualsize 1t --size 100m --name mylv vg00\n\nCreate a linear LV with a usable size of 64MiB on specific physical extents.\n\n#### lvcreate -L 64m -n mylv vg00 /dev/sda:0-7 /dev/sdb:0-7\n\nCreate  a RAID5 LV with a usable size of 5GiB, 3 stripes, a stripe size of 64KiB, using a to‐\ntal of 4 devices (including one for parity).\n\n#### lvcreate --type raid5 -L 5G -i 3 -I 64 -n mylv vg00\n\nCreate a RAID5 LV using all of the free space in the VG and spanning all the PVs  in  the  VG\n(note  that  the command will fail if there are more than 8 PVs in the VG, in which case -i 7\nmust be used to get to the current maximum of 8 devices including parity for RaidLVs).\nlvcreate --config allocation/raidstripealldevices=1\n--type raid5 -l 100%FREE -n mylv vg00\n\nCreate RAID10 LV with a usable size of 5GiB, using 2 stripes, each  on  a  two-image  mirror.\n(Note  that  the  -i  and  -m  arguments behave differently: -i specifies the total number of\nstripes, but -m specifies the number of images in addition to the first image).\n\n#### lvcreate --type raid10 -L 5G -i 2 -m 1 -n mylv vg00\n\nCreate a 1TiB thin LV mythin, with 256GiB thinpool tpool0 in vg00.\n\n#### lvcreate --T --size 256G --name mythin vg00/tpool0\n\nCreate a 1TiB thin LV, first creating a new thin pool for it, where the thin pool has  100MiB\nof space, uses 2 stripes, has a 64KiB stripe size, and 256KiB chunk size.\n\n#### lvcreate --type thin --name mylv --thinpool mypool\n\n-V 1t -L 100m -i 2 -I 64 -c 256 vg00\n\nCreate  a  thin  snapshot  of  a thin LV (the size option must not be used, otherwise a copy-\non-write snapshot would be created).\n\n#### lvcreate --snapshot --name mysnap vg00/thinvol\n\nCreate a thin snapshot of the read-only inactive LV named \"origin\" which becomes an  external\norigin for the thin snapshot LV.\n\n#### lvcreate --snapshot --name mysnap --thinpool mypool vg00/origin\n\nCreate  a cache pool from a fast physical device. The cache pool can then be used to cache an\nLV.\nlvcreate --type cache-pool -L 1G -n mycpool vg00 /dev/fast1\n\nCreate a cache LV, first creating a new origin LV on a slow physical device,  then  combining\nthe new origin LV with an existing cache pool.\nlvcreate --type cache --cachepool mycpool\n-L 100G -n mylv vg00 /dev/slow1\n\nCreate a VDO LV vdo0 with VDOPoolLV size of 10GiB and name vpool1.\n\n#### lvcreate --vdo --size 10G --name vdo0 vg00/vpool1\n\n### SEE ALSO\n\nlvm(8) lvm.conf(5) lvmconfig(8)\n\npvchange(8)  pvck(8)  pvcreate(8)  pvdisplay(8) pvmove(8) pvremove(8) pvresize(8) pvs(8) pvs‐‐\ncan(8)\n\nvgcfgbackup(8) vgcfgrestore(8) vgchange(8) vgck(8) vgcreate(8) vgconvert(8) vgdisplay(8)  vg‐‐\nexport(8)  vgextend(8) vgimport(8) vgimportclone(8) vgmerge(8) vgmknodes(8) vgreduce(8) vgre‐‐\nmove(8) vgrename(8) vgs(8) vgscan(8) vgsplit(8)\n\nlvcreate(8) lvchange(8) lvconvert(8) lvdisplay(8) lvextend(8) lvreduce(8)  lvremove(8)  lvre‐‐\nname(8) lvresize(8) lvs(8) lvscan(8)\n\nlvm-fullreport(8) lvm-lvpoll(8) lvm2-activation-generator(8) blkdeactivate(8) lvmdump(8)\n\ndmeventd(8) lvmpolld(8) lvmlockd(8) lvmlockctl(8) cmirrord(8) lvmdbusd(8)\n\nlvmsystemid(7) lvmreport(7) lvmraid(7) lvmthin(7) lvmcache(7)\n\n\n\nRed Hat, Inc.                     LVM TOOLS 2.03.11(2) (2021-01-08)                      LVCREATE(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "LVCREATE",
        "section": "8",
        "mode": "man",
        "summary": "lvcreate - Create a logical volume",
        "synopsis": "lvcreate optionargs positionargs\n[ optionargs ]\n[ positionargs ]\n-a|--activate y|n|ay\n--addtag Tag\n--alloc contiguous|cling|clingbytags|normal|anywhere|inherit\n-A|--autobackup y|n\n-H|--cache\n--cachedevice PV\n--cachemetadataformat auto|1|2\n--cachemode writethrough|writeback|passthrough\n--cachepolicy String\n--cachepool LV\n--cachesettings String\n--cachesize Size[m|UNIT]\n--cachevol LV\n-c|--chunksize Size[k|UNIT]\n--commandprofile String\n--compression y|n\n--config String\n-C|--contiguous y|n\n-d|--debug\n--deduplication y|n\n--discards passdown|nopassdown|ignore\n--driverloaded y|n\n--errorwhenfull y|n\n-l|--extents Number[PERCENT]\n-h|--help\n-K|--ignoreactivationskip\n--ignoremonitoring\n--lockopt String\n--longhelp\n-j|--major Number\n--[raid]maxrecoveryrate Size[k|UNIT]\n--metadataprofile String\n--minor Number\n--[raid]minrecoveryrate Size[k|UNIT]\n--mirrorlog core|disk\n-m|--mirrors Number\n--monitor y|n\n-n|--name String\n--nolocking\n--nosync\n--noudevsync\n-p|--permission rw|r\n-M|--persistent y|n\n--poolmetadatasize Size[m|UNIT]\n--poolmetadataspare y|n\n--profile String\n-q|--quiet\n--raidintegrity y|n\n--raidintegrityblocksize Number\n--raidintegritymode String\n-r|--readahead auto|none|Number\n-R|--regionsize Size[m|UNIT]\n--reportformat basic|json\n-k|--setactivationskip y|n\n-L|--size Size[m|UNIT]\n-s|--snapshot\n-i|--stripes Number\n-I|--stripesize Size[k|UNIT]\n-t|--test\n-T|--thin\n--thinpool LV\n--type linear|striped|snapshot|mirror|raid|thin|cache|vdo|thin-pool|cache-pool|vdo-pool\n--vdo\n--vdopool LV\n-v|--verbose\n--version\n-V|--virtualsize Size[m|UNIT]\n-W|--wipesignatures y|n\n-y|--yes\n-Z|--zero y|n",
        "flags": [
            {
                "flag": "-a",
                "long": "--activate",
                "arg": null,
                "description": "Controls the active state of the new LV. y makes the LV active, or available. New LVs are made active by default. n 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 ac‐ tive. If autoactivation ay is used, the LV is only activated if it matches an item in lvm.conf activation/autoactivationvolumelist. ay implies --zero n and --wipesigna‐ tures n. See lvmlockd(8) for more information about activation options for shared VGs. --addtag Tag Adds a tag to a PV, VG or LV. This option can be repeated to add multiple tags at once. See lvm(8) for information about tags. --alloc contiguous|cling|clingbytags|normal|anywhere|inherit Determines the allocation policy when a command needs to allocate Physical Extents (PEs) from the VG. Each VG and LV has an allocation policy which can be changed with vgchange/lvchange, or overriden on the command line. normal applies common sense rules such as not placing parallel stripes on the same PV. inherit applies the VG policy to an LV. contiguous requires new PEs be placed adjacent to existing PEs. cling 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, anywhere 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 lvm(8) for more information about allo‐ cation."
            },
            {
                "flag": "-A",
                "long": "--autobackup",
                "arg": null,
                "description": "Specifies if metadata should be backed up automatically after a change. Enabling this is strongly advised! See vgcfgbackup(8) for more information."
            },
            {
                "flag": "-H",
                "long": "--cache",
                "arg": null,
                "description": "Specifies the command is handling a cache LV or cache pool. See --type cache and --type cache-pool. See lvmcache(7) for more information about LVM caching. --cachedevice PV The name of a device to use for a cache. --cachemetadataformat auto|1|2 Specifies the cache metadata format used by cache target. --cachemode writethrough|writeback|passthrough Specifies when writes to a cache LV should be considered complete. writeback consid‐ ers a write complete as soon as it is stored in the cache pool. writethough 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 passthrough, all reads are served from the origin LV (all reads miss the cache) and all writes are for‐ warded to the origin LV; additionally, write hits cause cache block invalidates. See lvmcache(7) for more information. --cachepolicy String Specifies the cache policy for a cache LV. See lvmcache(7) for more information. --cachepool LV The name of a cache pool. --cachesettings String 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 spe‐ cial string value default switches settings back to their default kernel values and removes them from the list of settings stored in LVM metadata. See lvmcache(7) for more information. --cachesize Size[m|UNIT] The size of cache to use. --cachevol LV The name of a cache volume."
            },
            {
                "flag": "-c",
                "long": "--chunksize",
                "arg": null,
                "description": "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 lvmthin(7) and lvmcache(7) for more information. --commandprofile String The command profile to use for command configuration. See lvm.conf(5) for more infor‐ mation about profiles. --compression y|n Controls whether compression is enabled or disable for VDO volume. See lvmvdo(7) for more information about VDO usage. --config String Config settings for the command. These override lvm.conf settings. The String arg uses the same format as lvm.conf, or may use section/field syntax. See lvm.conf(5) for more information about config."
            },
            {
                "flag": "-C",
                "long": "--contiguous",
                "arg": null,
                "description": "Sets or resets the contiguous allocation policy for LVs. Default is no contiguous al‐ location based on a next free principle. It is only possible to change a non-contigu‐ ous allocation policy to contiguous if all of the allocated physical extents in the LV are already contiguous."
            },
            {
                "flag": "-d",
                "long": "--debug",
                "arg": null,
                "description": "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). --deduplication y|n Controls whether deduplication is enabled or disable for VDO volume. See lvmvdo(7) for more information about VDO usage. --discards passdown|nopassdown|ignore Specifies how the device-mapper thin pool layer in the kernel should handle discards. ignore causes the thin pool to ignore discards. nopassdown causes the thin pool to process discards itself to allow reuse of unneeded extents in the thin pool. passdown causes the thin pool to process discards itself (like nopassdown) and pass the dis‐ cards to the underlying device. See lvmthin(7) for more information. --driverloaded y|n If set to no, the command will not attempt to use device-mapper. For testing and de‐ bugging. --errorwhenfull y|n 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 af‐ ter the timeout. (Also see dm-thin-pool kernel module option nospacetimeout.) See lvmthin(7) for more information."
            },
            {
                "flag": "-l",
                "long": "--extents",
                "arg": null,
                "description": "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 %VG denotes the total size of the VG, the suffix %FREE the remaining free space in the VG, and the suffix %PVS 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 %ORIGIN (100%ORIGIN provides space for the whole origin). When expressed as a percentage, the size defines an upper limit for the num‐ ber 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."
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Display help text."
            },
            {
                "flag": "-K",
                "long": "--ignoreactivationskip",
                "arg": null,
                "description": "Ignore the \"activation skip\" LV flag during activation to allow LVs with the flag set to be activated."
            },
            {
                "flag": "",
                "long": "--ignoremonitoring",
                "arg": null,
                "description": "Do not interact with dmeventd unless --monitor is specified. Do not use this if dmeventd is already monitoring a device. --lockopt String Used to pass options for special cases to lvmlockd. See lvmlockd(8) for more informa‐ tion."
            },
            {
                "flag": "",
                "long": "--longhelp",
                "arg": null,
                "description": "Display long help text."
            },
            {
                "flag": "-j",
                "long": "--major",
                "arg": null,
                "description": "Sets the major number of an LV block device. --[raid]maxrecoveryrate Size[k|UNIT] 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 un‐ bounded. See lvmraid(7) for more information. --metadataprofile String The metadata profile to use for command configuration. See lvm.conf(5) for more in‐ formation about profiles. --minor Number Sets the minor number of an LV block device. --[raid]minrecoveryrate Size[k|UNIT] 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 un‐ bounded. See lvmraid(7) for more information. --mirrorlog core|disk Specifies the type of mirror log for LVs with the \"mirror\" type (does not apply to the \"raid1\" type.) disk is a persistent log and requires a small amount of storage space, usually on a separate device from the data being mirrored. core 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. mirrored is a persistent log that is itself mirrored, but should be avoided. Instead, use the raid1 type for log redundancy."
            },
            {
                "flag": "-m",
                "long": "--mirrors",
                "arg": null,
                "description": "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) Use lvm.conf global/mirrorsegtypedefault and global/raid10segtypedefault to configure the de‐ fault types. See the --nosync option for avoiding initial image synchronization. See lvmraid(7) for more information. --monitor y|n 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 dmeventd(8) for more information."
            },
            {
                "flag": "-n",
                "long": "--name",
                "arg": null,
                "description": "Specifies the name of a new LV. When unspecified, a default name of \"lvol#\" is gener‐ ated, where # is a number generated by LVM."
            },
            {
                "flag": "",
                "long": "--nolocking",
                "arg": null,
                "description": "Disable locking."
            },
            {
                "flag": "",
                "long": "--nosync",
                "arg": null,
                "description": "Causes the creation of mirror, raid1, raid4, raid5 and raid10 to skip the initial syn‐ chronization. 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 in‐ tensive 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) be‐ ing created during initial synchronization in order to reconstruct proper user date in case of device failures. raid0 and raid0meta do not provide any data copies or par‐ ity support and thus do not support initial synchronization."
            },
            {
                "flag": "",
                "long": "--noudevsync",
                "arg": null,
                "description": "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."
            },
            {
                "flag": "-p",
                "long": "--permission",
                "arg": null,
                "description": "Set access permission to read only r or read and write rw."
            },
            {
                "flag": "-M",
                "long": "--persistent",
                "arg": null,
                "description": "When yes, makes the specified minor number persistent. --poolmetadatasize Size[m|UNIT] Specifies the size of the new pool metadata LV. --poolmetadataspare y|n 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. --profile String An alias for --commandprofile or --metadataprofile, depending on the command."
            },
            {
                "flag": "-q",
                "long": "--quiet",
                "arg": null,
                "description": "Suppress output and log messages. Overrides --debug and --verbose. Repeat once to also suppress any prompts with answer 'no'. --raidintegrity y|n Enable or disable data integrity checksums for raid images. --raidintegrityblocksize Number 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. --raidintegritymode String 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."
            },
            {
                "flag": "-r",
                "long": "--readahead",
                "arg": null,
                "description": "Sets read ahead sector count of an LV. auto is the default which allows the kernel to choose a suitable value automatically. none is equivalent to zero."
            },
            {
                "flag": "-R",
                "long": "--regionsize",
                "arg": null,
                "description": "Size of each raid or mirror synchronization region. lvm.conf activation/raidre‐ gionsize can be used to configure a default. --reportformat basic|json Overrides current output format for reports which is defined globally by the re‐ port/outputformat setting in lvm.conf. basic 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. json produces report output in JSON format. See lvmre‐‐ port(7) for more information."
            },
            {
                "flag": "-k",
                "long": "--setactivationskip",
                "arg": null,
                "description": "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 lvattr bits."
            },
            {
                "flag": "-L",
                "long": "--size",
                "arg": null,
                "description": "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."
            },
            {
                "flag": "-s",
                "long": "--snapshot",
                "arg": null,
                "description": "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 op‐ tion 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 cre‐ ated 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 lvmthin(7) for more information about LVM thin provisioning. COW snapshots are cre‐ ated 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 ex‐ pected; often 20% of the origin LV is enough. If COW space runs low, it can be ex‐ tended 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."
            },
            {
                "flag": "-i",
                "long": "--stripes",
                "arg": null,
                "description": "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 com‐ mand. 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, see lvm.conf allocation/raidstripealldevices."
            },
            {
                "flag": "-I",
                "long": "--stripesize",
                "arg": null,
                "description": "The amount of data that is written to one device before moving to the next in a striped LV."
            },
            {
                "flag": "-t",
                "long": "--test",
                "arg": null,
                "description": "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 read‐ ing back metadata it believes has changed but hasn't."
            },
            {
                "flag": "-T",
                "long": "--thin",
                "arg": null,
                "description": "Specifies the command is handling a thin LV or thin pool. See --type thin, --type thin-pool, and --virtualsize. See lvmthin(7) for more information about LVM thin pro‐ visioning. --thinpool LV The name of a thin pool LV. --type linear|striped|snapshot|mirror|raid|thin|cache|vdo|thin-pool|cache-pool|vdo-pool 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 per‐ formance (raid<N>, mirror, striped, linear) see lvmraid(7). For thin provisioning (thin, thin-pool) see lvmthin(7). For performance caching (cache, cache-pool) see lvmcache(7). For copy-on-write snapshots (snapshot) see usage definitions. For VDO (vdo) see lvmvdo(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."
            },
            {
                "flag": "",
                "long": "--vdo",
                "arg": null,
                "description": "Specifies the command is handling VDO LV. See --type vdo. See lvmvdo(7) for more in‐ formation about VDO usage. --vdopool LV The name of a VDO pool LV. See lvmvdo(7) for more information about VDO usage."
            },
            {
                "flag": "-v",
                "long": "--verbose",
                "arg": null,
                "description": "Set verbose level. Repeat from 1 to 4 times to increase the detail of messages sent to stdout and stderr."
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "Display version information."
            },
            {
                "flag": "-V",
                "long": "--virtualsize",
                "arg": null,
                "description": "The virtual size of a new thin LV. See lvmthin(7) for more information about LVM thin provisioning. Using virtual size (-V) and actual size (-L) together creates a sparse LV. lvm.conf global/sparsesegtypedefault 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)."
            },
            {
                "flag": "-W",
                "long": "--wipesignatures",
                "arg": null,
                "description": "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 lvm.conf allocation/wipesigna‐ tureswhenzeroingnewlvs. If blkid wiping is used (lvm.conf alloca‐ tion/useblkidwiping) 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."
            },
            {
                "flag": "-y",
                "long": "--yes",
                "arg": null,
                "description": "Do not prompt for confirmation interactively but always assume the answer yes. Use with extreme caution. (For automatic no, see -qq.)"
            },
            {
                "flag": "-Z",
                "long": "--zero",
                "arg": null,
                "description": "Controls zeroing of the first 4KiB of data in the new LV. Default is y. 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."
            }
        ],
        "examples": [
            "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 to‐",
            "tal 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).",
            "lvcreate --config allocation/raidstripealldevices=1",
            "--type raid5 -l 100%FREE -n mylv vg00",
            "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.",
            "-V 1t -L 100m -i 2 -I 64 -c 256 vg00",
            "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.",
            "lvcreate --type cache-pool -L 1G -n mycpool vg00 /dev/fast1",
            "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.",
            "lvcreate --type cache --cachepool mycpool",
            "-L 100G -n mylv vg00 /dev/slow1",
            "Create a VDO LV vdo0 with VDOPoolLV size of 10GiB and name vpool1."
        ],
        "see_also": [
            {
                "name": "lvm",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvm/8/json"
            },
            {
                "name": "lvm.conf",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/lvm.conf/5/json"
            },
            {
                "name": "lvmconfig",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvmconfig/8/json"
            },
            {
                "name": "pvchange",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvchange/8/json"
            },
            {
                "name": "pvck",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvck/8/json"
            },
            {
                "name": "pvcreate",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvcreate/8/json"
            },
            {
                "name": "pvdisplay",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvdisplay/8/json"
            },
            {
                "name": "pvmove",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvmove/8/json"
            },
            {
                "name": "pvremove",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvremove/8/json"
            },
            {
                "name": "pvresize",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvresize/8/json"
            },
            {
                "name": "pvs",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pvs/8/json"
            },
            {
                "name": "can",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/can/8/json"
            },
            {
                "name": "vgcfgbackup",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgcfgbackup/8/json"
            },
            {
                "name": "vgcfgrestore",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgcfgrestore/8/json"
            },
            {
                "name": "vgchange",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgchange/8/json"
            },
            {
                "name": "vgck",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgck/8/json"
            },
            {
                "name": "vgcreate",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgcreate/8/json"
            },
            {
                "name": "vgconvert",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgconvert/8/json"
            },
            {
                "name": "vgdisplay",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgdisplay/8/json"
            },
            {
                "name": "export",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/export/8/json"
            },
            {
                "name": "vgextend",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgextend/8/json"
            },
            {
                "name": "vgimport",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgimport/8/json"
            },
            {
                "name": "vgimportclone",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgimportclone/8/json"
            },
            {
                "name": "vgmerge",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgmerge/8/json"
            },
            {
                "name": "vgmknodes",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgmknodes/8/json"
            },
            {
                "name": "vgreduce",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgreduce/8/json"
            },
            {
                "name": "move",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/move/8/json"
            },
            {
                "name": "vgrename",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgrename/8/json"
            },
            {
                "name": "vgs",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgs/8/json"
            },
            {
                "name": "vgscan",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgscan/8/json"
            },
            {
                "name": "vgsplit",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vgsplit/8/json"
            },
            {
                "name": "lvcreate",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvcreate/8/json"
            },
            {
                "name": "lvchange",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvchange/8/json"
            },
            {
                "name": "lvconvert",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvconvert/8/json"
            },
            {
                "name": "lvdisplay",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvdisplay/8/json"
            },
            {
                "name": "lvextend",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvextend/8/json"
            },
            {
                "name": "lvreduce",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvreduce/8/json"
            },
            {
                "name": "lvremove",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvremove/8/json"
            },
            {
                "name": "name",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/name/8/json"
            },
            {
                "name": "lvresize",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvresize/8/json"
            },
            {
                "name": "lvs",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvs/8/json"
            },
            {
                "name": "lvscan",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvscan/8/json"
            },
            {
                "name": "lvm-fullreport",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvm-fullreport/8/json"
            },
            {
                "name": "lvm-lvpoll",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvm-lvpoll/8/json"
            },
            {
                "name": "lvm2-activation-generator",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvm2-activation-generator/8/json"
            },
            {
                "name": "blkdeactivate",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/blkdeactivate/8/json"
            },
            {
                "name": "lvmdump",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvmdump/8/json"
            },
            {
                "name": "dmeventd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/dmeventd/8/json"
            },
            {
                "name": "lvmpolld",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvmpolld/8/json"
            },
            {
                "name": "lvmlockd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvmlockd/8/json"
            },
            {
                "name": "lvmlockctl",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvmlockctl/8/json"
            },
            {
                "name": "cmirrord",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/cmirrord/8/json"
            },
            {
                "name": "lvmdbusd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lvmdbusd/8/json"
            },
            {
                "name": "lvmsystemid",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/lvmsystemid/7/json"
            },
            {
                "name": "lvmreport",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/lvmreport/7/json"
            },
            {
                "name": "lvmraid",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/lvmraid/7/json"
            },
            {
                "name": "lvmthin",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/lvmthin/7/json"
            },
            {
                "name": "lvmcache",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/lvmcache/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 75,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 28,
                "subsections": [
                    {
                        "name": "Usage notes",
                        "lines": 12
                    }
                ]
            },
            {
                "name": "USAGE",
                "lines": 292,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-a --activate",
                        "lines": 27,
                        "flag": "-a",
                        "long": "--activate"
                    },
                    {
                        "name": "-A --autobackup",
                        "lines": 3,
                        "flag": "-A",
                        "long": "--autobackup"
                    },
                    {
                        "name": "-H --cache",
                        "lines": 38,
                        "flag": "-H",
                        "long": "--cache"
                    },
                    {
                        "name": "-c --chunksize",
                        "lines": 21,
                        "flag": "-c",
                        "long": "--chunksize"
                    },
                    {
                        "name": "-C --contiguous",
                        "lines": 5,
                        "flag": "-C",
                        "long": "--contiguous"
                    },
                    {
                        "name": "-d --debug",
                        "lines": 26,
                        "flag": "-d",
                        "long": "--debug"
                    },
                    {
                        "name": "-l --extents",
                        "lines": 12,
                        "flag": "-l",
                        "long": "--extents"
                    },
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-K --ignoreactivationskip",
                        "lines": 3,
                        "flag": "-K",
                        "long": "--ignoreactivationskip"
                    },
                    {
                        "name": "--ignoremonitoring",
                        "lines": 7,
                        "long": "--ignoremonitoring"
                    },
                    {
                        "name": "--longhelp",
                        "lines": 2,
                        "long": "--longhelp"
                    },
                    {
                        "name": "-j --major",
                        "lines": 28,
                        "flag": "-j",
                        "long": "--major"
                    },
                    {
                        "name": "-m --mirrors",
                        "lines": 15,
                        "flag": "-m",
                        "long": "--mirrors"
                    },
                    {
                        "name": "-n --name",
                        "lines": 3,
                        "flag": "-n",
                        "long": "--name"
                    },
                    {
                        "name": "--nolocking",
                        "lines": 2,
                        "long": "--nolocking"
                    },
                    {
                        "name": "--nosync",
                        "lines": 11,
                        "long": "--nosync"
                    },
                    {
                        "name": "--noudevsync",
                        "lines": 4,
                        "long": "--noudevsync"
                    },
                    {
                        "name": "-p --permission",
                        "lines": 2,
                        "flag": "-p",
                        "long": "--permission"
                    },
                    {
                        "name": "-M --persistent",
                        "lines": 12,
                        "flag": "-M",
                        "long": "--persistent"
                    },
                    {
                        "name": "-q --quiet",
                        "lines": 20,
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "name": "-r --readahead",
                        "lines": 3,
                        "flag": "-r",
                        "long": "--readahead"
                    },
                    {
                        "name": "-R --regionsize",
                        "lines": 10,
                        "flag": "-R",
                        "long": "--regionsize"
                    },
                    {
                        "name": "-k --setactivationskip",
                        "lines": 6,
                        "flag": "-k",
                        "long": "--setactivationskip"
                    },
                    {
                        "name": "-L --size",
                        "lines": 4,
                        "flag": "-L",
                        "long": "--size"
                    },
                    {
                        "name": "-s --snapshot",
                        "lines": 19,
                        "flag": "-s",
                        "long": "--snapshot"
                    },
                    {
                        "name": "-i --stripes",
                        "lines": 10,
                        "flag": "-i",
                        "long": "--stripes"
                    },
                    {
                        "name": "-I --stripesize",
                        "lines": 3,
                        "flag": "-I",
                        "long": "--stripesize"
                    },
                    {
                        "name": "-t --test",
                        "lines": 5,
                        "flag": "-t",
                        "long": "--test"
                    },
                    {
                        "name": "-T --thin",
                        "lines": 18,
                        "flag": "-T",
                        "long": "--thin"
                    },
                    {
                        "name": "--vdo",
                        "lines": 6,
                        "long": "--vdo"
                    },
                    {
                        "name": "-v --verbose",
                        "lines": 3,
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    },
                    {
                        "name": "-V --virtualsize",
                        "lines": 9,
                        "flag": "-V",
                        "long": "--virtualsize"
                    },
                    {
                        "name": "-W --wipesignatures",
                        "lines": 11,
                        "flag": "-W",
                        "long": "--wipesignatures"
                    },
                    {
                        "name": "-y --yes",
                        "lines": 3,
                        "flag": "-y",
                        "long": "--yes"
                    },
                    {
                        "name": "-Z --zero",
                        "lines": 5,
                        "flag": "-Z",
                        "long": "--zero"
                    }
                ]
            },
            {
                "name": "VARIABLES",
                "lines": 30,
                "subsections": []
            },
            {
                "name": "ENVIRONMENT VARIABLES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "ADVANCED USAGE",
                "lines": 389,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 2,
                "subsections": [
                    {
                        "name": "lvcreate -i 3 -I 8 -L 100m vg00",
                        "lines": 3
                    },
                    {
                        "name": "lvcreate --type raid1 -m1 -L 500m -n mylv vg00",
                        "lines": 2
                    },
                    {
                        "name": "lvcreate --type mirror -m1 -L 500m -n mylv vg00",
                        "lines": 2
                    },
                    {
                        "name": "lvcreate --type mirror -m1 --mirrorlog core -L 500m -n mylv vg00",
                        "lines": 1
                    },
                    {
                        "name": "lvcreate --snapshot --size 100m --name mysnap vg00/mylv",
                        "lines": 2
                    },
                    {
                        "name": "lvcreate -s -l 20%ORIGIN -n mysnap vg00/mylv",
                        "lines": 1
                    },
                    {
                        "name": "lvcreate --snapshot --virtualsize 1t --size 100m --name mylv vg00",
                        "lines": 1
                    },
                    {
                        "name": "lvcreate -L 64m -n mylv vg00 /dev/sda:0-7 /dev/sdb:0-7",
                        "lines": 2
                    },
                    {
                        "name": "lvcreate --type raid5 -L 5G -i 3 -I 64 -n mylv vg00",
                        "lines": 9
                    },
                    {
                        "name": "lvcreate --type raid10 -L 5G -i 2 -m 1 -n mylv vg00",
                        "lines": 1
                    },
                    {
                        "name": "lvcreate --T --size 256G --name mythin vg00/tpool0",
                        "lines": 2
                    },
                    {
                        "name": "lvcreate --type thin --name mylv --thinpool mypool",
                        "lines": 4
                    },
                    {
                        "name": "lvcreate --snapshot --name mysnap vg00/thinvol",
                        "lines": 2
                    },
                    {
                        "name": "lvcreate --snapshot --name mysnap --thinpool mypool vg00/origin",
                        "lines": 10
                    },
                    {
                        "name": "lvcreate --vdo --size 10G --name vdo0 vg00/vpool1",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 21,
                "subsections": []
            }
        ]
    }
}