We moved this page to our Documentation Portal. You can find the latest updates here. |
Question
In some instances you may wish for LVM datastore to not utilize the entire block device.
For example: Under-provisioning SSD storage to avoid performance degradation.
Answer
To achieve this, you can use the following command to create the datastore:
pvcreate --setphysicalvolumesize <limited datastore size> --metadatasize 50M /dev/sdX
Example:
pvcreate --setphysicalvolumesize 100G --metadatasize 50M /dev/sdb