Wrong total storage space is reported

Hi,
I am using LXD 3.0.3 in Ubuntu 18.04. On one of my production server, I see that the ‘total space’ is reported not correctly by the ‘lxc storage info’ command:
# lxc storage info default
info:
description: “”
driver: zfs
name: default
space used: 75.47GB
total space: 48.31GB
used by:
containers:
- AVX
- Demovtl
- ITRIXBOX1
- Preventa
- TODASH
- vozt
- continex
- demoitxone
- medithor
- nord
- ticbridge
- tmc
- vpsol
images:
- 62450c686b136d2d6b913eb42368fd9ce57781fd496bd1d9ba9916c23d46e5a6
profiles:
- default

 # zpool list
NAME      SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
default   119G  70.3G  48.7G         -    59%    59%  1.00x  ONLINE  -

As you can see, the ‘space used’ is greater than ‘total space’. Also, the ‘total space’ is much less than ZFS pool size.

Any idea how can I fix it?

Thank you,
Leonid

Thank you, Stephane. You are quick. Any chance the fix will be backported to the LXD stable? If yes, then when?
Leonid

I’ve pushed a matching commit in the local copy I have of the stable-3.0 branch. So it will be in LXD 3.0.5 whenever we get around to releasing that.

Right now we’re focused on preparing for 4.0 LTS, so 3.0.5 may be a few months away still.