this post was submitted on 31 Mar 2024
8 points (83.3% liked)

Self Hosted - Self-hosting your services.

11390 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules

Important

Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!

Cross-posting

If you see a rule-breaker please DM the mods!

founded 3 years ago
MODERATORS
 

I'm dangerously close to running out of space for my VMs on local-lvm, but noticed I have a lot of free space in my local storage where I only have a dozen ISOs stored.

Can anybody help me figure out how I'd go about shrinking the local storage so I can extend my local-lvm?

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 7 months ago* (last edited 7 months ago) (1 children)

Create a new storage pool with bigger disk(s) and migrate your stuff

Much less of a headache.

You could also add a directory to your local-lvm storage and set that to be your iso store in datacenter-> storage

[–] [email protected] 1 points 7 months ago (1 children)

It’s really that much of a hassle to fiddle with the volume sizes?

[–] [email protected] 1 points 7 months ago (1 children)

Its definitely more of a hassle than adding another storage pool or creating a directory in local-lvm.

[–] [email protected] 1 points 7 months ago (1 children)

You suggested just adding the ISOs to local-lvm. Do you think it would be feasible to simply delete the local storage completely and then extend the local-lvm after, storing the ISOs there? I know extending volumes is much simpler than shrinking. And I imagine deleting completely is also easier than shrinking?

[–] [email protected] 2 points 7 months ago* (last edited 7 months ago)

Search engines are your friend

https://old.reddit.com/comments/vj6u54/comment/idhfltv?context=3

From the comment:

This is how I do it:

boot into gparted (make bootable usb https://gparted.org/liveusb.php)

open terminal

run lvdisplay to check the proxmox root and data lv name and path
sudo lvdisplay

resize the root lv (choose size, no curly brackets)
sudo lvreduce --resizefs -L {size}G /dev/pve/root

resize the data lv to use all available space
sudo lvresize -l +100%FREE /dev/pve/data

reboot into proxmox
pray

I do not suggest doing this. Just add another disk.

also: https://forum.proxmox.com/threads/can-i-remove-local-and-local-lvm.122850/#post-534378