-
Notifications
You must be signed in to change notification settings - Fork 908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating a snapshot of a ZFS backed container with 0 bytes free results in hung lxd when doing snapshot operations #13466
Comments
I see this one on my machine too. My lxd hung and it got me really confused. I couldn't understand what happened until I saw this issue. Any fix or thoughts on this? |
Just wanted to check up on this. Any update on this? |
I've reproduced this; I grabbed a stacktrace from all goroutines (
Indeed, the |
Thanks Tom for making me aware of https://documentation.ubuntu.com/lxd/en/latest/server/#server-core:core.debug_address |
Ubuntu Noble
LXD 5.21.1 LTS
Creating an LXD container on a zfs backed filesystem, where you've set a quota (we set refquota flag on the pool as well, not sure if it matters) and then completely fill up the disk with dd - where profile disk is set to:
size: 450GB
And df shows
If we then do
dd if=/dev/zero of=temp.bin bs=1G count=420
And make sure df shows 0 byes available, and on the host zfs list also shows 0 bytes available
And then do
lxc snapshot --reuse --no-expiry bigdata mysnapshot
LXD will hang forever. You should see the command just sitting there if you do
ps aux
. What's worse, if you kill the snapshot operation, and other operations like snapshot delete will also hang. Only remedy was to dosnap restart lxd
and then lxd perked up immediately, we could free some space and redo the snapshot (which worked fine as soon as some space was free on disk).Just snapshotting with zfs works instantly, so I suspect LXD is trying to write some data to the instance and this is what's hanging. How much space free on a zfs volume is required for a snapshot to work?
The text was updated successfully, but these errors were encountered: