Shrink LXC Container Storage

redjohn

Well-Known Member
Apr 22, 2016
132
4
58
27
Hi Everyone,

My LXC Container have 1000 GB but I only need 150 GB. How can I shrink the storage?

I used this pct resize 101 rootfs 150
unable to shrink disk size


Can anyone explain me how can I shrink the LXC Container to only 150 GB.

Best regards and thanks for help,

Oliver
 
I don't know really because i haven't this problem before, but what should work:

Stop the container, create a new one with same MAC and the other things and with your right size. Then Copy the whole content from the old to the new one. I think this should work. Test it.
 

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!