This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

RaidZ3 and Available Space Issue

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
spl3001
NewUser
NewUser
Posts: 3
Joined: 12 May 2015 18:16
Status: Offline

RaidZ3 and Available Space Issue

Post by spl3001 »

Hi all,

This was the first forum I found that looked like a relatively general ZFS forum.

I've scoured the Internet before I decided to post this question, so I'm sorry if this is a ZFS noob kind of thing to ask.

I've constructed a 9 disk raid from a set of identical model 6 TB hard drives (Western Digital RED). I've put this into a RaidZ3 configuration, leaving me with 6 disks available for storage (Note: I realize optimally that it should be 2^n + parity, or in other words it should be an 11 disk system, 8 for storage and 3 for parity, but with the computer tower I have and the current arrangement of hard ware inside combined with other requirements, this is the best I can do right now).

My problem is the available space seems around 3TB short of what I'd expect.

See zpool status and zfs list output:

Code: Select all

admin@box:~$ sudo zfs list
NAME                USED  AVAIL  REFER  MOUNTPOINT
tank               3.95T  25.7T   236K  /mnt/tank
tank/public        3.95T  16.1T  3.95T  /mnt/tank/public
tank/backup         236K  4.00T   236K  /mnt/tank/backup

admin@box:~$ sudo zpool list
NAME      SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
tank       49T  6.41T  42.6T         -     8%    13%  1.00x  ONLINE  -

admin@box:~$ sudo zpool status
  pool: tank
 state: ONLINE
  scan: none requested
config:

        NAME                        STATE     READ WRITE CKSUM
        tank                     ONLINE       0     0     0
          raidz3-0                  ONLINE       0     0     0
            wwn-0x50014ee20bc64dd3  ONLINE       0     0     0
            wwn-0x50014ee20bc9017a  ONLINE       0     0     0
            wwn-0x50014ee20bc9598d  ONLINE       0     0     0
            wwn-0x50014ee2611b5bf8  ONLINE       0     0     0
            wwn-0x50014ee2611b62fc  ONLINE       0     0     0
            wwn-0x50014ee2611e0e13  ONLINE       0     0     0
            wwn-0x50014ee2611e1948  ONLINE       0     0     0
            wwn-0x50014ee2b6715238  ONLINE       0     0     0
            wwn-0x50014ee2b6715691  ONLINE       0     0     0

errors: No known data errors
Note: the "tank" pool is the entire set, and tank/public and tank/backup have quotes of 20T and 4T, respectively. I'm concerned with the parent pool "tank"

Adding up USED + AVAIL gives: 3.95T + 25.7T = 29.65T. I understand the disk size is listed as 6 * 10^12 bytes on the drive label, yielding approximately 5.46T (5 * 2^40, or 5.46 TebiBytes) bytes per disk. Or multiplied by the 6 disks available for storage, should give about 32.74T of space, not 29.65T. This is a difference of around 3.09T, or more than half of the 5.46T on one disk. I also understand there is always overhead with any file system, but this seems to be an excessive amount, nearly 10% of the expected capacity. Where did this extra space go?

Also, an interesting this to point out: The SIZE in "zpool list" gives 49T, which if you do the calculation of 9 disks * 5.46 T per disk yields 49.11T, or 49T rounded. That seems to actually be correct. Any advice would be great, and thanks in advance.

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: RaidZ3 and Available Space Issue

Post by b0ssman »

Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

spl3001
NewUser
NewUser
Posts: 3
Joined: 12 May 2015 18:16
Status: Offline

Re: RaidZ3 and Available Space Issue

Post by spl3001 »

In that thread, he has listed 953,870 MB per drive on a 14X1TB RaidZ3, leaving 11 disks for storage. 11 * 953,870 MB = 10,492,570 MB or dividing by 1024 twice gives 10.01 TB, but displays 9.03 TB (all binary representations I assume, where TB in this case is 2^40 bytes). So does ZFS just have a 10% available capacity overhead in RaidZ3? Or in all configurations? Is this more clearly documented somewhere?

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: RaidZ3 and Available Space Issue

Post by b0ssman »

post the info from
http://wiki.nas4free.org/doku.php?id=do ... nformation
and see the parameter reservation
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

spl3001
NewUser
NewUser
Posts: 3
Joined: 12 May 2015 18:16
Status: Offline

Re: RaidZ3 and Available Space Issue

Post by spl3001 »

Here's the info:

Code: Select all

admin@tank:~$ sudo zfs get all
NAME               PROPERTY              VALUE                   SOURCE
tank               type                  filesystem              -
tank               creation              Mon May 11 14:36 2015   -
tank               used                  8.19T                   -
tank               available             21.5T                   -
tank               referenced            236K                    -
tank               compressratio         1.05x                   -
tank               mounted               yes                     -
tank               quota                 none                    default
tank               reservation           none                    default
tank               recordsize            128K                    default
tank               mountpoint            /mnt/tank            local
tank               sharenfs              off                     default
tank               checksum              on                      default
tank               compression           off                     default
tank               atime                 on                      default
tank               devices               on                      default
tank               exec                  on                      default
tank               setuid                on                      default
tank               readonly              off                     default
tank               zoned                 off                     default
tank               snapdir               hidden                  default
tank               aclinherit            restricted              default
tank               canmount              on                      default
tank               xattr                 on                      default
tank               copies                1                       default
tank               version               5                       -
tank               utf8only              off                     -
tank               normalization         none                    -
tank               casesensitivity       sensitive               -
tank               vscan                 off                     default
tank               nbmand                off                     default
tank               sharesmb              off                     default
tank               refquota              none                    default
tank               refreservation        none                    default
tank               primarycache          all                     default
tank               secondarycache        all                     default
tank               usedbysnapshots       0                       -
tank               usedbydataset         236K                    -
tank               usedbychildren        8.19T                   -
tank               usedbyrefreservation  0                       -
tank               logbias               latency                 default
tank               dedup                 off                     default
tank               mlslabel              none                    default
tank               sync                  standard                default
tank               refcompressratio      1.00x                   -
tank               written               236K                    -
tank               logicalused           8.59T                   -
tank               logicalreferenced     9.50K                   -
tank               snapdev               hidden                  default
tank               acltype               off                     default
tank               context               none                    default
tank               fscontext             none                    default
tank               defcontext            none                    default
tank               rootcontext           none                    default
tank               relatime              off                     default
tank               redundant_metadata    all                     default
tank               overlay               off                     default
tank/public        type                  filesystem              -
tank/public        creation              Mon May 11 15:02 2015   -
tank/public        used                  7.11T                   -
tank/public        available             12.9T                   -
tank/public        referenced            7.11T                   -
tank/public        compressratio         1.05x                   -
tank/public        mounted               yes                     -
tank/public        quota                 20T                     local
tank/public        reservation           none                    default
tank/public        recordsize            128K                    default
tank/public        mountpoint            /mnt/tank/public  inherited from                                       tank
tank/public        sharenfs              off                     default
tank/public        checksum              on                      default
tank/public        compression           on                      local
tank/public        atime                 on                      default
tank/public        devices               on                      default
tank/public        exec                  on                      default
tank/public        setuid                on                      default
tank/public        readonly              off                     default
tank/public        zoned                 off                     default
tank/public        snapdir               hidden                  default
tank/public        aclinherit            restricted              default
tank/public        canmount              on                      default
tank/public        xattr                 on                      default
tank/public        copies                1                       default
tank/public        version               5                       -
tank/public        utf8only              off                     -
tank/public        normalization         none                    -
tank/public        casesensitivity       sensitive               -
tank/public        vscan                 off                     default
tank/public        nbmand                off                     default
tank/public        sharesmb              off                     default
tank/public        refquota              none                    default
tank/public        refreservation        none                    default
tank/public        primarycache          all                     default
tank/public        secondarycache        all                     default
tank/public        usedbysnapshots       0                       -
tank/public        usedbydataset         7.11T                   -
tank/public        usedbychildren        0                       -
tank/public        usedbyrefreservation  0                       -
tank/public        logbias               latency                 default
tank/public        dedup                 off                     default
tank/public        mlslabel              none                    default
tank/public        sync                  standard                default
tank/public        refcompressratio      1.05x                   -
tank/public        written               7.11T                   -
tank/public        logicalused           7.43T                   -
tank/public        logicalreferenced     7.43T                   -
tank/public        snapdev               hidden                  default
tank/public        acltype               off                     default
tank/public        context               none                    default
tank/public        fscontext             none                    default
tank/public        defcontext            none                    default
tank/public        rootcontext           none                    default
tank/public        relatime              off                     default
tank/public        redundant_metadata    all                     default
tank/public        overlay               off                     default
tank/backup        type                  filesystem              -
tank/backup        creation              Mon May 11 15:03 2015   -
tank/backup        used                  1.08T                   -
tank/backup        available             2.92T                   -
tank/backup        referenced            1.08T                   -
tank/backup        compressratio         1.08x                   -
tank/backup        mounted               yes                     -
tank/backup        quota                 4T                      local
tank/backup        reservation           none                    default
tank/backup        recordsize            128K                    default
tank/backup        mountpoint            /mnt/tank/backup  inherited from                                       tank
tank/backup        sharenfs              off                     default
tank/backup        checksum              on                      default
tank/backup        compression           on                      local
tank/backup        atime                 on                      default
tank/backup        devices               on                      default
tank/backup        exec                  on                      default
tank/backup        setuid                on                      default
tank/backup        readonly              off                     default
tank/backup        zoned                 off                     default
tank/backup        snapdir               hidden                  default
tank/backup        aclinherit            restricted              default
tank/backup        canmount              on                      default
tank/backup        xattr                 on                      default
tank/backup        copies                1                       default
tank/backup        version               5                       -
tank/backup        utf8only              off                     -
tank/backup        normalization         none                    -
tank/backup        casesensitivity       sensitive               -
tank/backup        vscan                 off                     default
tank/backup        nbmand                off                     default
tank/backup        sharesmb              off                     default
tank/backup        refquota              none                    default
tank/backup        refreservation        none                    default
tank/backup        primarycache          all                     default
tank/backup        secondarycache        all                     default
tank/backup        usedbysnapshots       0                       -
tank/backup        usedbydataset         1.08T                   -
tank/backup        usedbychildren        0                       -
tank/backup        usedbyrefreservation  0                       -
tank/backup        logbias               latency                 default
tank/backup        dedup                 off                     default
tank/backup        mlslabel              none                    default
tank/backup        sync                  standard                default
tank/backup        refcompressratio      1.08x                   -
tank/backup        written               1.08T                   -
tank/backup        logicalused           1.16T                   -
tank/backup        logicalreferenced     1.16T                   -
tank/backup        snapdev               hidden                  default
tank/backup        acltype               off                     default
tank/backup        context               none                    default
tank/backup        fscontext             none                    default
tank/backup        defcontext            none                    default
tank/backup        rootcontext           none                    default
tank/backup        relatime              off                     default
tank/backup        redundant_metadata    all                     default
tank/backup        overlay               off                     default

NAME                USED  AVAIL  REFER  MOUNTPOINT
tank               8.19T  21.5T   236K  /mnt/tank
tank/public        7.11T  12.9T  7.11T  /mnt/tank/public
tank/backup        1.08T  2.92T  1.08T  /mnt/tank/backup
The reservation parameter on all three pools say "none".

Post Reply

Return to “ZFS (only!)”