[SOLVED] How to shrink mount point in proxmox ve?

xtim

Member
Oct 11, 2020
12
0
21
25
Hi,

I tryed to shrink the size of the data mountpoint for my cloud service vm. As I tryed around with resize option in the resource overlay I ended up with an increas from 200GB to 300GB.

Is there an option to decreas it to 100GB by the overlay or do I need to do some freakn' shit in the command promt (btw. its a gpt tabel and zfs datasystem)?
 
Last edited:
Hi,

Proxmox VE does not support shrinking a mp.
But you are lucky that you use ZFS so it is not that hard.
Just use this command to set the size you want.

Code:
zfs set refquota=<wanted size> <poolname>/path/to/subvol-<VMID>-disk-<DiskID>
[Code]

then you should edit the pct.conf at /etc/pve/lxc/<vmid>.conf and replace the old size on the mp against the new.
 
Thanks a lot wolfgang,

I got it! Now I have space for new projects and upcomming questions;)

EDIT for beginners as me: Use nano (or editor of your chois) bevor second collum in the upper code, to do edits.