Hi,
I have an LVM2 thin pool on my Proxmox system that contains multiple thin volumes. Occasionally, one of the volumes unexpectedly grows very large, causing the thin pool to run out of space. This usually isn't a big problem, I just delete some data, maybe reboot the system, and I’ve never experienced any corruption from it.
However, there's one specific thin volume (root) that I’d like to always be able to write to, even when the thin pool is full. It doesn’t need much, reserving just 1 GB of space would be enough.
Is there a way to reserve space for a specific thin volume like root, so that it still has 1 GB of writable space available when the rest of the thin pool is full and goes read-only?
I am very space constrained on a 256gb ssd and given ssd prices it does not look like I will be able to upgrade any time soon. I also can't reserve a large amount of empty space for this volume as a thick volume either.
One potential solution, was to create 5 dummy volumes of 1gb each, and somehow setup a script when space is running out, to delete these dummy volumes and send me a warning email. Maybe also shut down VMs that have grown in size recently into the buffer space of my thin volume.
I also HAVE to use LVM, can't use zfs or ceph.
Thanks!
I have an LVM2 thin pool on my Proxmox system that contains multiple thin volumes. Occasionally, one of the volumes unexpectedly grows very large, causing the thin pool to run out of space. This usually isn't a big problem, I just delete some data, maybe reboot the system, and I’ve never experienced any corruption from it.
However, there's one specific thin volume (root) that I’d like to always be able to write to, even when the thin pool is full. It doesn’t need much, reserving just 1 GB of space would be enough.
Is there a way to reserve space for a specific thin volume like root, so that it still has 1 GB of writable space available when the rest of the thin pool is full and goes read-only?
I am very space constrained on a 256gb ssd and given ssd prices it does not look like I will be able to upgrade any time soon. I also can't reserve a large amount of empty space for this volume as a thick volume either.
One potential solution, was to create 5 dummy volumes of 1gb each, and somehow setup a script when space is running out, to delete these dummy volumes and send me a warning email. Maybe also shut down VMs that have grown in size recently into the buffer space of my thin volume.
I also HAVE to use LVM, can't use zfs or ceph.
Thanks!