Shrink LXC Container Storage

redjohn

Renowned Member
Apr 22, 2016
132
4
83
29
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.