Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2016 00:49:40 +0500
From:      "Eugene M. Zheganin" <emz@norma.perm.ru>
To:        "stable@freebsd.org" <stable@freebsd.org>
Subject:   Re: zfs/raidz: seems like I'm failing with math
Message-ID:  <75ef50fa-0e0a-c576-c558-145ddcb32f0b@norma.perm.ru>
In-Reply-To: <CAOtMX2hfWMoC5_aQCd7mS9zXF3qg=AZ70Z3Q9bGVoeY7eG0Rrg@mail.gmail.com>
References:  <fa71cc53-83f3-2315-d047-36679700dd18@norma.perm.ru> <CAOtMX2hfWMoC5_aQCd7mS9zXF3qg=AZ70Z3Q9bGVoeY7eG0Rrg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi.

On 16.10.2016 22:06, Alan Somers wrote:
> It's raw size, but the discrepancy is between 1000 and 1024.  Smartctl
> is reporting base 10 size, but zpool is reporting base 1024..
> 960197124096.0*6/1024**4 = 5.24 TB, which is pretty close to what
> zpool says.
Thanks ! It does explain it. But then again, on a pool that has been 
just created, I check the properties of the root dataset (I'm posting 
all the properties, just to display there's no child datasets or data on 
the pool):

===Cut===
# zfs get all gamestop
NAME      PROPERTY              VALUE                      SOURCE
gamestop  type                  filesystem                 -
gamestop  creation              sun oct 16 19:02 2016  -
gamestop  used                  403K                       -
gamestop  available             4,04T                      -
gamestop  referenced            153K                       -
gamestop  compressratio         1.00x                      -
gamestop  mounted               yes                        -
gamestop  quota                 none                       default
gamestop  reservation           none                       default
gamestop  recordsize            128K                       default
gamestop  mountpoint            /gamestop                  default
gamestop  sharenfs              off                        default
gamestop  checksum              on                         default
gamestop  compression           off                        default
gamestop  atime                 on                         default
gamestop  devices               on                         default
gamestop  exec                  on                         default
gamestop  setuid                on                         default
gamestop  readonly              off                        default
gamestop  jailed                off                        default
gamestop  snapdir               hidden                     default
gamestop  aclmode               discard                    default
gamestop  aclinherit            restricted                 default
gamestop  canmount              on                         default
gamestop  xattr                 off                        temporary
gamestop  copies                1                          default
gamestop  version               5                          -
gamestop  utf8only              off                        -
gamestop  normalization         none                       -
gamestop  casesensitivity       sensitive                  -
gamestop  vscan                 off                        default
gamestop  nbmand                off                        default
gamestop  sharesmb              off                        default
gamestop  refquota              none                       default
gamestop  refreservation        none                       default
gamestop  primarycache          all                        default
gamestop  secondarycache        all                        default
gamestop  usedbysnapshots       0                          -
gamestop  usedbydataset         153K                       -
gamestop  usedbychildren        249K                       -
gamestop  usedbyrefreservation  0                          -
gamestop  logbias               latency                    default
gamestop  dedup                 off                        default
gamestop  mlslabel                                         -
gamestop  sync                  standard                   default
gamestop  refcompressratio      1.00x                      -
gamestop  written               153K                       -
gamestop  logicalused           26,5K                      -
gamestop  logicalreferenced     9,50K                      -
gamestop  volmode               default                    default
gamestop  filesystem_limit      none                       default
gamestop  snapshot_limit        none                       default
gamestop  filesystem_count      none                       default
gamestop  snapshot_count        none                       default
gamestop  redundant_metadata    all                        default
===Cut===

Only 4.03T is available. Looks like it's the actual size, since it's zfs 
and not zpool. But 960197124096 bytes * 5 / 1024^4 gives me 4.366 Tb, 
and not the 4.03 T. Where did about 300 gigs go ? I'm really trying to 
understand, not to catch some questionable logic or find errors.

Thanks.
Eugene.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?75ef50fa-0e0a-c576-c558-145ddcb32f0b>