So we have multiple levels of information here.

If you have 64GB of "drive space" I believe you are referring to the
partition size. If one allocates a whole pool to this then some of the
space is used as overhead to make the pool.  This includes labelling,
alignment usage, metaslab allocation overhead, slop space reservations
and other sundries. For example, a 1000 GiB disk with just a single pool
may end up with ~960 GiB of usable pool space [ see
https://wintelguy.com/2017/zfs-storage-overhead.html and
https://wintelguy.com/zfs-calc.pl ]

Next you have zfs file systems inside the pool. Again there is some
overhead for this.

Secondly, the file system stats that are shown by the desktop are most
probably not ZFS aware and probably just use the generic statvfs()
family of system calls to get file system sizes. This probably won't
show the correct free space as ZFS can't properly represent this data
over these with these older system calls because we may have compression
on and dedup that can skew the stats.  The only real way to figure out
the disc size and free space with zfs is with zpool list.

Note also that zpool list shows the size in GiB (Gibibytes) based on 1K
= 1024.  The GUI disk tool shows the size in GB (Gigabytes) based on 1K
= 1000.  Hence zpool list size will appear also to be smaller. Use zpool
list -p to show the sizes in bytes.


** Changed in: zfs-linux (Ubuntu)
       Status: Incomplete => Won't Fix

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to zfs-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1897464

Title:
  Problems with disk size with zfs

Status in zfs-linux package in Ubuntu:
  Won't Fix

Bug description:
  I created a VM that has 64GB of hard drive space and I used zfs during
  install.

  Now here is what I see via desktop GUI:
  Disks => 69 GB
  Computer => 23.6 GB

  Two pools:
  zpool list
  NAME    SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  
ALTROOT
  bpool  1.88G   427M  1.46G        -         -     0%    22%  1.00x    ONLINE  
-
  rpool    59G  38.7G  20.3G        -         -    36%    65%  1.00x    ONLINE  
-

  
  As a result I run out of space.

  So I am confused, why is my disk size only 23.6 GB ?

  Definitely seems like a bug in how Computer shows the disk size.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1897464/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to