Shrink BTRFS LXC container?

chicagonyc

Member
Jan 28, 2023
18
4
8
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