Lvcreate: Difference between revisions
(→--size) |
|||
Line 24: | Line 24: | ||
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. | 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. | ||
==--poolmetadatasize== | |||
<pre> | |||
--poolmetadatasize MetadataVolumeSize[b|B|s|S|k|K|m|M|g|G] | |||
</pre> | |||
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= | =Create a Thin Pool Logical Volume= |
Revision as of 05:12, 23 May 2017
Internal
Options
--type
The segment type for the logical volume:
- linear
- striped
- thin-pool
- thin
- snapshot
For more details, see:
--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.
--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 --size LogicalVolumeSize --chunksize $CHUNK_SIZE_ARG --poolmetadatasize ${META_SIZE}s -n <thin-pool-name> docker_vg