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

xtim

New Member
Oct 11, 2020
12
0
1
24
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.
 

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!