ZFS Is the zpool size an integer multiple of GB?

No.​
  1. Bash:
    truncate -s $((64 * 1024 * 1024)) testpool
  2. Bash:
    zpool create $_ `pwd`/$_
  3. Code:
    zpool get -p size testpool
    reports 50331648. That is 48 MiB, i. e. not even a whole GB or GiB.​
Why would you even care?​
 
Why use the -p flag if you want human-readable numbers? zpool-list(8) without any arguments shows all numbers with M/G/T[...] suffixes.

And to answer your question: as pretty much any other tool, zpool- p also uses bytes as the standard, 'non-suffixed'/'non-human' unit. This prevents any misconceptions about the 1000/1024 multiples (e.g kB/MB/GB vs kiB/MiB/GiB)
 
I use a 476g partition and a 475g partition to create a zpool.
They are the same size, 472g
29797.jpg
 
don't post pictures of text; its extremely inconvenient and wasteful. use the [code][/code] tags.

also: give the output of gpart show for each partition scheme and give the pools different names to avoid any stale cache/metadata issues (and/or issue a zpool labelclear after pool destruction)
 
don't post pictures of text; its extremely inconvenient and wasteful. use the [code][/code] tags.

also: give the output of gpart show for each partition scheme and give the pools different names to avoid any stale cache/metadata issues (and/or issue a zpool labelclear after pool destruction)
Sorry, typing manually is too trouble.
Code:
# zpool destroy r
# zpool labelclear nda1
# zpool create -m none rp nda1p1
zpool get -p size
NAME PRIPERTY VALUE SOURCE -
rp size 506806140928 -
29807.jpg

it's the same result
 
Back
Top