I realized I was running out of space on my current partition and decided to create an lvm group with a single thin pool volume on it. Unfortunately, I can’t seem to figure out how to do this and the way I’m currently trying is unsupported by the kernel (interestingly enough.) Searching, using modprobe with the keywords “mapper” or “device” is not turning anything up either.
Note that the UUIDs were changed for anticracker reasons but everything else is correct.
sudo lvm
lvm> pvcreate --pvmetadatacopies 2 /dev/sda4
lvm> vgcreate --clustered n --maxlogicalvolumes 7 --maxphysicalvolumes 255 --vgmetadatacopies 2 sda44 /dev/sda4
lvcreate -a ay --chunksize 512KiB -L 400G -V 773.92G --thinpool sda44
Cannot read thin-pool target version.
thin: Required device-mapper target(s) not detected in your kernel
lvm> lvdisplay
lvm> pvdisplay
--- Physical volume ---
PV Name /dev/sda4
VG Name sda44
PV Size 773.93 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 198124
Free PE 198124
Allocated PE 0
PV UUID xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
lvm> vgdisplay
--- Volume group ---
VG Name sda44
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 7
Cur LV 0
Open LV 0
Max PV 255
Cur PV 1
Act PV 1
VG Size 773.92 GiB
PE Size 4.00 MiB
Total PE 198124
Alloc PE / Size 0 / 0
Free PE / Size 198124 / 773.92 GiB
VG UUID xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
lvm>