You can create custom thin pools to have a better control over the storage.
Procedure
-
Display available volume groups:
-
List available devices:
-
Create a LV to hold the thin pool data:
# lvcreate --name ThinPoolDataName --size Size VolumeGroupName /DevicePath
Replace ThinPoolDataName with the name for your thin pool data LV. Replace Size with the size for your LV. Replace VolumeGroupName with the name of your volume group. Replace /DevicePath with your device path.
-
Create a LV to hold the thin pool metadata:
# lvcreate --name ThinPoolMetadataName --size Size VolumeGroupName /DevicePath
-
Combine the LVs into a thin pool:
# lvconvert --type thin-pool --poolmetadata ThinPoolMetadataName VolumeGroupName/ThinPoolDataName
Results
- Verify that the custom thin pool is created:
# lvs -o lv_name,seg_type
LV Type
ThinPoolDataName thin-pool