Lvcreate: Difference between revisions
Jump to navigation
Jump to search
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}} | ||
==--size== | ==--size== |
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.
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