shrink local and enlarge loval-lvm

themanfrommoon

New Member
Mar 30, 2024
3
1
1
Hi there,

I'm brand new to PROXMOX and don't know much about Linux. Therefore, please formulate the answers in a very beginner-friendly way, thank you in advance!

I am running PROXMOX on a Chromebox with a 64GB SSD.
Unfortunately, the distribution of "local" and "local-lvm" does not match my application.
"local" is allocated 26.18GB, of which only 9.22GB are used.
23.01GB are allocated to "local-lvm", of which 22.89GB are used.

I would therefore like to reduce "local" by 12GB.
And increase "local-lvm" by 12GB.

...how do I do this?

Many thanks and best regards,
Chris
 
Keep in mind that that you need some free space on your root filesystem. Otherwise you risk your server to stop working and stuff like uploading ISOs won't work. If you for example want to upload a 6GB ISO you need 12GB of free space.
I wouldn't go below 16GB and usually recommend to have 32GB.
 
Yes, I know, I will upgrade the SSD to 1TB in the near future, but I would like to test some software (Pi-Hole and Home Assistant, they are installed but fail some updates because to less "local-lvm" diskspace) right now.
I will not upload any ISO in the next months.

Thank you and best regards,
Chris
 
I would therefore like to reduce "local" by 12GB.
And increase "local-lvm" by 12GB.
You can start by reading this article carefully:
https://access.redhat.com/documenta...gical_volume_manager_administration/lv_reduce

How well it applies to you, depends on the choices you made during installation. In a pinch, you can also reduce/remove "swap" instead of mocking around with root volume (lvs). None of this is Proxmox specific, the key search words are: lvm, swap, reduce lvm, shrink filesystem, expand lvm

Whether you want to experiment and learn something new vs reinstall your system - is up to you and how you want to spend your weekend.

Good luck.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: Kingneutron

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!