Disk Usage Question

no1jam

Cadet
Joined
Feb 22, 2021
Messages
6
Hi,

I setup a 4x1TB ZFS1 on the latest version of TrueNAS and noticed some variation between what the pool says it has, and what Windows thinks I have. I believe this is due to the pool seeing all the drives, but ZFS1 sits on top of the storage and I lose a disk worth of space (as expected). Also, the size of the iocage impacts the usable space since it resides on the only pool I have.

My question is: Am I seeing the correct amount of storage space, and maybe some technical knowledge of why?

- 1 pool called "Pool_1"
- 1 dataset called media
- 1 SMB share to media
- 1 iocage for plex

First, the zpool list, which looks OK.

Code:
root@truenas[~]# zpool list
NAME        SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
Pool_1     3.62T   587G  3.05T        -         -     0%    15%  1.00x    ONLINE  /mnt
boot-pool    29G  2.32G  26.7G        -         -     0%     8%  1.00x    ONLINE  -

Second, df -h to list file system details.

Code:
root@truenas[~]# df -h
Filesystem                                                   Size    Used   Avail Capacity  Mounted on
boot-pool/ROOT/12.0-U2.1                                      27G    1.2G     26G     4%    /
devfs                                                        1.0K    1.0K      0B   100%    /dev
tmpfs                                                         32M    9.8M     22M    31%    /etc
tmpfs                                                        4.0M    8.0K    4.0M     0%    /mnt
tmpfs                                                         16G     26M     16G     0%    /var
fdescfs                                                      1.0K    1.0K      0B   100%    /dev/fd
Pool_1                                                       2.1T    326K    2.1T     0%    /mnt/Pool_1
Pool_1/media                                                 2.4T    266G    2.1T    11%    /mnt/Pool_1/media
Pool_1/iocage                                                2.1T    8.7M    2.1T     0%    /mnt/Pool_1/iocage
Pool_1/iocage/releases                                       2.1T    279K    2.1T     0%    /mnt/Pool_1/iocage/releases
Pool_1/iocage/releases/12.1-RELEASE                          2.1T    279K    2.1T     0%    /mnt/Pool_1/iocage/releases/12.1-RELEASE
Pool_1/iocage/releases/12.1-RELEASE/root                     2.1T    1.8G    2.1T     0%    /mnt/Pool_1/iocage/releases/12.1-RELEASE/root
Pool_1/iocage/download                                       2.1T    279K    2.1T     0%    /mnt/Pool_1/iocage/download
Pool_1/iocage/download/12.1-RELEASE                          2.1T    371M    2.1T     0%    /mnt/Pool_1/iocage/download/12.1-RELEASE
Pool_1/iocage/templates                                      2.1T    268K    2.1T     0%    /mnt/Pool_1/iocage/templates
Pool_1/iocage/images                                         2.1T    268K    2.1T     0%    /mnt/Pool_1/iocage/images
Pool_1/iocage/jails                                          2.1T    314K    2.1T     0%    /mnt/Pool_1/iocage/jails
Pool_1/iocage/jails/media                                    2.1T    971K    2.1T     0%    /mnt/Pool_1/iocage/jails/media
Pool_1/iocage/jails/media/root                               2.1T    7.6G    2.1T     0%    /mnt/Pool_1/iocage/jails/media/root
Pool_1/iocage/log                                            2.1T    308K    2.1T     0%    /mnt/Pool_1/iocage/log
Pool_1/.system                                               2.1T    430K    2.1T     0%    /var/db/system
Pool_1/.system/cores                                         1.0G    268K    1.0G     0%    /var/db/system/cores
Pool_1/.system/samba4                                        2.1T    954K    2.1T     0%    /var/db/system/samba4
Pool_1/.system/syslog-2ea8debdc0fe4c24a1cec545fb42a148       2.1T    1.0M    2.1T     0%    /var/db/system/syslog-2ea8debdc0fe4c24a1cec545fb42a148
Pool_1/.system/rrd-2ea8debdc0fe4c24a1cec545fb42a148          2.1T     23M    2.1T     0%    /var/db/system/rrd-2ea8debdc0fe4c24a1cec545fb42a148
Pool_1/.system/configs-2ea8debdc0fe4c24a1cec545fb42a148      2.1T    698K    2.1T     0%    /var/db/system/configs-2ea8debdc0fe4c24a1cec545fb42a148
Pool_1/.system/webui                                         2.1T    268K    2.1T     0%    /var/db/system/webui
Pool_1/.system/services                                      2.1T    268K    2.1T     0%    /var/db/system/services
/mnt/Pool_1/iocage/releases/12.1-RELEASE/root/bin            2.1T    1.8G    2.1T     0%    /mnt/Pool_1/iocage/jails/media/root/bin
/mnt/Pool_1/iocage/releases/12.1-RELEASE/root/boot           2.1T    1.8G    2.1T     0%    /mnt/Pool_1/iocage/jails/media/root/boot
/mnt/Pool_1/iocage/releases/12.1-RELEASE/root/lib            2.1T    1.8G    2.1T     0%    /mnt/Pool_1/iocage/jails/media/root/lib
/mnt/Pool_1/iocage/releases/12.1-RELEASE/root/libexec        2.1T    1.8G    2.1T     0%    /mnt/Pool_1/iocage/jails/media/root/libexec
/mnt/Pool_1/iocage/releases/12.1-RELEASE/root/rescue         2.1T    1.8G    2.1T     0%    /mnt/Pool_1/iocage/jails/media/root/rescue
/mnt/Pool_1/iocage/releases/12.1-RELEASE/root/sbin           2.1T    1.8G    2.1T     0%    /mnt/Pool_1/iocage/jails/media/root/sbin
/mnt/Pool_1/iocage/releases/12.1-RELEASE/root/usr/bin        2.1T    1.8G    2.1T     0%    /mnt/Pool_1/iocage/jails/media/root/usr/bin
/mnt/Pool_1/iocage/releases/12.1-RELEASE/root/usr/include    2.1T    1.8G    2.1T     0%    /mnt/Pool_1/iocage/jails/media/root/usr/include
/mnt/Pool_1/iocage/releases/12.1-RELEASE/root/usr/lib        2.1T    1.8G    2.1T     0%    /mnt/Pool_1/iocage/jails/media/root/usr/lib
/mnt/Pool_1/iocage/releases/12.1-RELEASE/root/usr/libexec    2.1T    1.8G    2.1T     0%    /mnt/Pool_1/iocage/jails/media/root/usr/libexec
/mnt/Pool_1/iocage/releases/12.1-RELEASE/root/usr/sbin       2.1T    1.8G    2.1T     0%    /mnt/Pool_1/iocage/jails/media/root/usr/sbin
/mnt/Pool_1/iocage/releases/12.1-RELEASE/root/usr/share      2.1T    1.8G    2.1T     0%    /mnt/Pool_1/iocage/jails/media/root/usr/share
/mnt/Pool_1/iocage/releases/12.1-RELEASE/root/usr/libdata    2.1T    1.8G    2.1T     0%    /mnt/Pool_1/iocage/jails/media/root/usr/libdata
/mnt/Pool_1/iocage/releases/12.1-RELEASE/root/usr/lib32      2.1T    1.8G    2.1T     0%    /mnt/Pool_1/iocage/jails/media/root/usr/lib32
/mnt/Pool_1/media                                            2.4T    266G    2.1T    11%    /mnt/Pool_1/iocage/jails/media/root/media
devfs                                                        1.0K    1.0K      0B   100%    /mnt/Pool_1/iocage/jails/media/root/dev
fdescfs                                                      1.0K    1.0K      0B   100%    /mnt/Pool_1/iocage/jails/media/root/dev/fd


And attached a picture of what Windows see's via the network share:
1614433621121.png
 
Joined
Jan 7, 2015
Messages
1,155
This seems very accurate to me. In theory your expecting 3TB but youll lose to the jails, and other system usage (snapshots, release downloads, etc). Then theres the simple fact a 1TB disk is going to come in at ~930gb, and your losing one to parity. So in reality that is 2.8TB of usable space, then subtract what iocage and existing media are using and you arrive at what windows is reporting to you.

Does that help?
 

no1jam

Cadet
Joined
Feb 22, 2021
Messages
6
This seems very accurate to me. In theory your expecting 3TB but youll lose to the jails, and other system usage (snapshots, release downloads, etc). Then theres the simple fact a 1TB disk is going to come in at ~930gb, and your losing one to parity. So in reality that is 2.8TB of usable space, then subtract what iocage and existing media are using and you arrive at what windows is reporting to you.

Does that help?

Yea, that confirms what I was suspecting. Thank you for the reply
 
Top