Expand LXC container filesystem

I figured it out. Finally found another thread with a similar issue.

It’s not clear from any documentation, but you have to run the truncate command to arbitrarily increase the zpool image size. Then you have to stop and restart LXD, so it “sees” the new ZFS pool size.

My container filesystem appears larger now, inside the container.

1 Like