Lvcreate

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Options

--type

The segment type for the logical volume:

  • linear
  • striped
  • thin-pool
  • thin
  • snapshot

For more details, see:

Logical Volume Types

--size

--size LogicalVolumeSize[b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E]

Gives the size to allocate for the new logical volume. A size suffix of B for bytes, S for sectors as 512 bytes, K for kilobytes, M for megabytes, G for gigabytes, T for terabytes, P for petabytes or E for exabytes is optional. Default unit is megabytes.

Create a Thin Pool Logical Volume

lvcreate -y --type thin-pool --zero n --size LogicalVolumeSize --chunksize $CHUNK_SIZE_ARG --poolmetadatasize ${META_SIZE}s -n <thin-pool-name> docker_vg