[SOLVED] How to remove LVM-thin and then expand local

0x2c4

New Member
Jul 16, 2023
8
0
1
Hi all,

I'm new to Proxmox, I need some help.
BY mistake, when installing Proxmox on my server, I allowed Proxmox to auto split the drives as it wanted, without realizing that now I have a very small partition for backups.

I have two drives:
sda: 2.2TB
sdb: 2.2TB

sdb is fully used for VMs
sda was supposed to be used for ISO and backups, but Proxmox split it into two 'local' (100GB) and 'lvm-thin'(2TB), and is allowing me to store backups only on 'local'

How can I fix this, remove LVM-thin and expand 'local'? If yes, how?

Some terminal output:
sda 8:0 0 2.2T 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 1G 0 part
└─sda3 8:3 0 2.2T 0 part
├─pve-swap 253:0 0 8G 0 lvm [SWAP]
├─pve-root 253:1 0 96G 0 lvm /
├─pve-data_tmeta 253:2 0 15.9G 0 lvm
│ └─pve-data-tpool 253:11 0 2T 0 lvm
│ ├─pve-data 253:12 0 2T 1 lvm
│ └─pve-vm--101--disk--0 253:13 0 32G 0 lvm
└─pve-data_tdata 253:3 0 2T 0 lvm
└─pve-data-tpool 253:11 0 2T 0 lvm
├─pve-data 253:12 0 2T 1 lvm
└─pve-vm--101--disk--0 253:13 0 32G 0 lvm
sdb 8:16 0 2.2T 0 disk
├─main-vm--101--disk--0 253:4 0 32G 0 lvm
├─main-vm--100--disk--0 253:5 0 64G 0 lvm
├─main-vm--105--disk--0 253:6 0 32G 0 lvm
├─main-vm--124--disk--0 253:7 0 32G 0 lvm
├─main-vm--137--disk--0 253:8 0 32G 0 lvm
├─main-vm--138--disk--0 253:9 0 32G 0 lvm
└─main-vm--121--disk--0 253:10 0 64G 0 lvm
sdc 8:32 1 29.7G 0 disk
root@001x:~# pvs
PV VG Fmt Attr PSize PFree
/dev/sda3 pve lvm2 a-- <2.18t 16.24g
/dev/sdb main lvm2 a-- 2.18t <1.90t


screen shot attached from webUI as well.


Thank you
 

Attachments

  • Screenshot 2024-03-11 at 13.12.30.png
    Screenshot 2024-03-11 at 13.12.30.png
    297.3 KB · Views: 22
  • Screenshot 2024-03-11 at 13.12.38.png
    Screenshot 2024-03-11 at 13.12.38.png
    313.3 KB · Views: 18
Dont beat yourself up about not doing the best partitioning at the time of the install. You are not the first one, so the topic has been covered a lot. This google search may help "proxmox remove local-lvm and expand root"
A few sample results:
https://forum.proxmox.com/threads/can-i-remove-local-and-local-lvm.122850/
https://www.reddit.com/r/toordotone/comments/souiub/remove_locallvm_from_proxmox/
https://forum.proxmox.com/threads/need-to-delete-local-lvm-and-reuse-the-size.34087/


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: 0x2c4
Dont beat yourself up about not doing the best partitioning at the time of the install. You are not the first one, so the topic has been covered a lot. This google search may help "proxmox remove local-lvm and expand root"
A few sample results:
https://forum.proxmox.com/threads/can-i-remove-local-and-local-lvm.122850/
https://www.reddit.com/r/toordotone/comments/souiub/remove_locallvm_from_proxmox/
https://forum.proxmox.com/threads/need-to-delete-local-lvm-and-reuse-the-size.34087/


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
WOW, three lines of code, and the job is done:
lvremove /dev/pve/data
lvresize -l +100%FREE /dev/pve/root
resize2fs /dev/mapper/pve-root


Massive THANK YOU :)