[solved] resizing pve node partitions

Is booting from gparted live and doing it via the gui a possible solution?
As far as I am aware, gparted is not really the right tool for this. As mentioned in the thread linked, you might want to look at the tools for manipulating LVMs here, like lvresize.

The problem is that the pve-data thin pool can not be shrinked. Therefore, if you want to assign some more space to the root lvm you would need to backup or migrate all your VM disks somewhere else, delete the thin-pool, increase the size of the root partition and subsequently recreate the pve-data partition.

However, depending on what you want to use the storage for, you don't really need to do that. You could also create another LVM within the thin-pool and mount it somewhere on your root partition. Especially in cases where you only have a couple of big files, or are in complete control of where they will be written to, this should be a work-around without much hassle.

PS: The thread you linked talks about an installation on an SD card, if you are doing the same, please note that this is not a recommended setup at all. Proxmox installations on flash media like USB sticks and SD cards usually start failing after just a few weeks due to its frequent write operations and extensive logging.
 
Last edited:
As far as I am aware, gparted is not really the right tool for this. As mentioned in the thread linked, you might want to look at the tools for manipulating LVMs here, like lvresize.

The problem is that the pve-data thin pool can not be shrinked. Therefore, if you want to assign some more space to the root lvm you would need to backup or migrate all your VM disks somewhere else, delete the thin-pool, increase the size of the root partition and subsequently recreate the pve-data partition.

However, depending on what you want to use the storage for, you don't really need to do that. You could also create another LVM within the thin-pool and mount it somewhere on your root partition. Especially in cases where you only have a couple of big files, or are in complete control of where they will be written to, this should be a work-around without much hassle.

PS: The thread you linked talks about an installation on an SD card, if you are doing the same, please note that this is not a recommended setup at all. Proxmox installations on flash media like USB sticks and SD cards usually start failing after just a few weeks due to its frequent write operations and extensive logging.

I was not considering SD card installation, but rather referencing to this bit of info


Code:
# remove the entry from PVE storage config first (this is not destructive)
pvesm remove local-lvm

# remove Thin LVM itself - this is destructive, but should be OK as long as you
# did not created any VM's on that storage
lvremove /dev/pve/data

# optional: remove swap, which may not be that good to have on a slow(er) USB drive
lvremove /dev/pve/data
# avoid mounting now nonexistent swap on boot
sed -i '/ swap /d' /etc/fstab

# resize root LV including the filesystem to the maximal free space available
lvresize -l +100%FREE --resizefs /dev/pve/root

Thanks again
 
  • Like
Reactions: datschlatscher

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!