Shrink BTRFS LXC container?

chicagonyc

New Member
Jan 28, 2023
16
3
3
By mistake, I expanded my LXC container which is located on a BTRFS file system far beyond what I intended (I put in 10000 GB). But now I don't know how to shrink it. All the documentation online assume ext4 or ZFS. Any ideas?

Update: I fixed it! First, I changed the size of the container in the *.conf file in the rootfs line. Then I backed up the container and restored it. When I restored it, it became the new size I specified in the rootfs line.
 
Last edited:
  • Like
Reactions: leesteken

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!