More LVM issues
by sgosnell from LinuxQuestions.org on (#56SYV)
Encrypted LVM installation on Debian 10 (Buster)
I've been reading lots of docs, but I've been unable to solve my current issue. I have plenty of space on my internal SSD, and I want to remove the SD card that is part of the root volume. I formatted the entire SSD as an LVM volume, so there is no space left on it outside the volume. The system insists that there are extents on the SD card that are in use, and there may well be. I've tried using pvmove but there are no extents available for allocation. Code:root@chromebox:/home/stan# pvmove /dev/sdc1
No extents available for allocation.
root@chromebox:/home/stan# pvdisplay
--- Physical volume ---
PV Name /dev/mapper/sda5_crypt
VG Name chromebox-vg
PV Size <118.99 GiB / not usable 3.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 30460
Free PE 0
Allocated PE 30460
PV UUID gIr9xa-CrBR-7e9g-TZBT-y0ne-VSpe-5gNna3
--- Physical volume ---
PV Name /dev/sdc1
VG Name chromebox-vg
PV Size <117.32 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 30033
Free PE 0
Allocated PE 30033
PV UUID 9GGAaS-62jT-y053-5zMU-nnff-26oO-HXYqKC
root@chromebox:/home/stan#
root@chromebox:/home/stan# vgdisplay
--- Volume group ---
VG Name chromebox-vg
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 2
Act PV 2
VG Size 236.30 GiB
PE Size 4.00 MiB
Total PE 60493
Alloc PE / Size 60493 / 236.30 GiB
Free PE / Size 0 / 0
VG UUID TBjew3-h2m8-drWJ-tA10-ilQ6-uJCH-RxaU2J
root@chromebox:/home/stan# vgs
VG #PV #LV #SN Attr VSize VFree
chromebox-vg 2 3 0 wz--n- 236.30g 0
root@chromebox:/home/stan#How can I get the extents on the SD moved to the internal drive? Resize the internal volume? Buster removed the GUI tools, and my LVM experience is rather new and limited.


I've been reading lots of docs, but I've been unable to solve my current issue. I have plenty of space on my internal SSD, and I want to remove the SD card that is part of the root volume. I formatted the entire SSD as an LVM volume, so there is no space left on it outside the volume. The system insists that there are extents on the SD card that are in use, and there may well be. I've tried using pvmove but there are no extents available for allocation. Code:root@chromebox:/home/stan# pvmove /dev/sdc1
No extents available for allocation.
root@chromebox:/home/stan# pvdisplay
--- Physical volume ---
PV Name /dev/mapper/sda5_crypt
VG Name chromebox-vg
PV Size <118.99 GiB / not usable 3.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 30460
Free PE 0
Allocated PE 30460
PV UUID gIr9xa-CrBR-7e9g-TZBT-y0ne-VSpe-5gNna3
--- Physical volume ---
PV Name /dev/sdc1
VG Name chromebox-vg
PV Size <117.32 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 30033
Free PE 0
Allocated PE 30033
PV UUID 9GGAaS-62jT-y053-5zMU-nnff-26oO-HXYqKC
root@chromebox:/home/stan#
root@chromebox:/home/stan# vgdisplay
--- Volume group ---
VG Name chromebox-vg
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 2
Act PV 2
VG Size 236.30 GiB
PE Size 4.00 MiB
Total PE 60493
Alloc PE / Size 60493 / 236.30 GiB
Free PE / Size 0 / 0
VG UUID TBjew3-h2m8-drWJ-tA10-ilQ6-uJCH-RxaU2J
root@chromebox:/home/stan# vgs
VG #PV #LV #SN Attr VSize VFree
chromebox-vg 2 3 0 wz--n- 236.30g 0
root@chromebox:/home/stan#How can I get the extents on the SD moved to the internal drive? Resize the internal volume? Buster removed the GUI tools, and my LVM experience is rather new and limited.