Lvcreate: Difference between revisions
Jump to navigation
Jump to search
(→--type) |
|||
Line 28: | Line 28: | ||
<pre> | <pre> | ||
lvcreate -y --type thin-pool --zero n --chunksize $CHUNK_SIZE_ARG --poolmetadatasize ${META_SIZE}s | lvcreate -y --type thin-pool --zero n --size LogicalVolumeSize --chunksize $CHUNK_SIZE_ARG --poolmetadatasize ${META_SIZE}s -n <thin-pool-name> docker_vg | ||
</pre> | </pre> |
Revision as of 05:10, 23 May 2017
Internal
Options
--type
The segment type for the logical volume:
- linear
- striped
- thin-pool
- thin
- snapshot
For more details, see:
--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