[SOLVED] Migration to nvme success; but lvm-thin enlargement?

unf0rg0tt3n

Well-Known Member
Sep 28, 2016
42
0
46
32
Netherlands
Hi Guys,

Just clonezilla'd my old SSD with broken connector to a new NVME drive.
Was Legacy but after clone it went full UEFI, HBA stopped working blabla everything okay now :)

But, the only thing which still is a problem, can't get to figure out why I still only have 240 GB ssd space on the 1TB NVME.
How do I make the storage space bigger?

CFDISK command says:
001.JPG

While: vgdisplay pve | grep Free says:
Code:
Free  PE / Size       40785 / <159.32 GiB

The whole command without the grep part:

Code:
--- Volume group ---
  VG Name               pve
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  1424
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               <223.07 GiB
  PE Size               4.00 MiB
  Total PE              57105
  Alloc PE / Size       16320 / 63.75 GiB
  Free  PE / Size       40785 / <159.32 GiB

How do I get the full drive? I want to store my VM's on this fast storage, the VM's currently are sitting on a 3TB HDD.

Thanks!
Dennis
 
Okay, when I did this post I couldn't figure out... but what nobody tells is the following: (for future reference)

1) When cloning your disk to a new one you need to reboot and open gparted live CD
2) right click the partition > deactivate
3) right click partition > check
4) apply
5) activate and reboot.

To add it to proxmox:

1) lvcreate -l 1 -n data pve
2) lvconvert --type thin-pool pve/data
3) lvextend -l +99%FREE pve/data
4) from within datacenter > storage: add lvm-thin

even though you extend the size with cfdisk or fdisk, it's not done. You actually need to do the thing with gparted or equivalent.

Solved. thanks!