[SOLVED] Reduce size of local-lvm on Proxmox Cluster

patcas

New Member
Feb 22, 2020
10
4
3
34
Hello,

We using a proxmox cluster consisting of several nodes, which uses HA and CephFS for most of the VMs. Also, we use an off-site proxmox backup server and since local backups are faster reloaded after configuration mistakes, we also want to keep daily backups stored locally on the respective nodes where the VM is running on.

Since the local storage is by default only about 90 GB in size and our local backups exceed this limit and the local-lvm is barely used and thus wasted, we would like to shrink local-lvm and enlarge the local one.


We found the following threat related to this issue: https://forum.proxmox.com/threads/reduce-size-of-local-lvm.78676/


Since we are using proxmox HA cluster and thus all nodes posses a local-lvm, I wanted to ask if there are any troubles (like instability) coming into our direction, if we follow the following steps (hopefully without the need to reboot any hosts):

For each node:
1) Move all local VMs away to other nodes
2) # lvremove pve/data
3) # lvcreate -L 200G -ndata pve
4) # lvconvert --type thin-pool --poolmetadatasize 1G pve/data
5) # lvextend -l +100%FREE --resizefs pve/root



Thank you very much for your expertise on this subject.



Best
patcas
 
Last edited:
We have tested now the process on a virtualized testing cluster and everything went good, so we decieded to perform it on the running cluster and there, as well, everything went smoothly.
 
  • Like
Reactions: Polyphemus

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!