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

--poolmetadatasize

--poolmetadatasize MetadataVolumeSize[b|B|s|S|k|K|m|M|g|G]

Sets the size of pool's metadata logical volume. Supported values are in range between 2MiB and 16GiB for thin pool, and upto 16GiB for cache pool. The minimum value is computed from pool's data size. Default value for thin pool is (Pool_LV_size / Pool_LV_chunk_size * 64b). To work with a thin pool, there should be at least 25% of free space when the size of metadata is smaller then 16MiB, or at least 4MiB of free space otherwise. Default unit is megabytes.

Create a Thin Pool Logical Volume

lvcreate -y --type thin-pool --zero n --chunksize $CHUNK_SIZE_ARG --poolmetadatasize ${META_SIZE}s $DATA_SIZE_ARG -n $POOL_LV_NAME docker_vg