Lvcreate: Difference between revisions
Jump to navigation
Jump to search
(→--type) |
|||
Line 16: | Line 16: | ||
For more details, see: {{Internal|Linux_Logical_Volume_Management_Concepts#Logical_Volume_.28LV.29|Logical Volume Types}} | For more details, see: {{Internal|Linux_Logical_Volume_Management_Concepts#Logical_Volume_.28LV.29|Logical Volume Types}} | ||
==--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:08, 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 --chunksize $CHUNK_SIZE_ARG --poolmetadatasize ${META_SIZE}s $DATA_SIZE_ARG -n $POOL_LV_NAME docker_vg