我正在重新分区现有磁盘并尝试创建设备映射器。所以我的VG组看起来如下:
root@my:~# vgdisplay
--- Volume group ---
VG Name my-vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 5
Open LV 5
Max PV 0
Cur PV 1
Act PV 1
VG Size 111.55 GiB
PE Size 4.00 MiB
Total PE 28556
Alloc PE / Size 28556 / 111.55 GiB
Free PE / Size 0 / 0
VG UUID vu1I7v-RBkJ-FFfE-dyg2-xTzW-RBhy-lyvBUi
我无法创建一个瘦池,可能是因为Free PE Size为零。
root@my:~# lvcreate --wipesignatures y -n thinpool my-vg -l 45%VG
Insufficient suitable allocatable extents found for logical volume thinpool.
如何在不添加新硬盘的情况下解决此类问题?
我需要这样做,因为Docker根据以下链接推荐了Thinpool: https://docs.docker.com/engine/userguide/storagedriver/device-mapper-driver/#configure-direct-lvm-mode-for-production