@Bartosz it seems you were lucky with 24GB ends being with a multiple of
16KiB (ZFS uses K and G to mean KiB and GiB btw):

$ lxc config device override testvm root size=24GB
Device root overridden for testvm
$ zfs get -p volsize default/virtual-machines/testvm.block
NAME                                   PROPERTY  VALUE    SOURCE
default/virtual-machines/testvm.block  volsize   24000004096  local

15 and 16GB are not multiple of 16KiB. You can generally avoid such
issues by defining the storage sizes by using MiB or GiB units. Like
here:

$ lxc config device override testvm root size=15GiB
Device root overridden for testvm
$ lxc config device set testvm root size=16GiB


Could you check if using GiB works for you too? I'll mark the bug as incomplete 
until you can test and report. Thank you.

** Changed in: lxd (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2063105

Title:
  LXD 5.0.3 does not handle root disk sizes in ZFS correctly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/2063105/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to