Hi there,
I’m new to the TrueNAS, having recently switched from Synology.
Initially, my pool consisted of 3 × 8TB disks. After copying all my data, I added 2 × 8TB disks to the pool.
Now, I’m seeing different capacity values:
In the GUI:
Data Topology: 1 × RAIDZ1 | 5-wide | 7.28 TiB
Usable Capacity: 24.1 TiB
Via SSH:
sudo zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
boot-pool 464G 5.42G 459G - - 0% 1% 1.00x ONLINE -
data 36.4T 5.34T 31.0T - - 0% 14% 1.00x ONLINE /mnt
sudo du -sh /mnt/data
3.6T /mnt/data
Can someone help me understand these differences in reported capacity?
Regards Helle
CLI is correct. GUI is a known issue with expansion and reporting
2 Likes
Thanks for you quick response. Is there anything I can do to fix it?
No fixes. Browse the forums for the posts about it. I don’t have a specific link to share quickly.
It may be fixed in the future of TrueNAS and ZFS, or may not… Expansion and reporting is a bit complicated as you will read
iamwoz, thanks for posting the links
1 Like
iamwoz
January 29, 2025, 6:40am
5
Welcome fellow expansionist
RaidZ Expansion Space Reporting is wonky.
@etorix is right.
Raidz Expansion space accounting is incorrect. There is more free space available than indicated and it’s not just because existing data is stored with the old parity ratio.
Rebalancing will not correct.
This is the explanation
3 Likes
iamwoz
January 29, 2025, 6:43am
6
BTW there’s a veritable goldmine of ZFS RAIDZ expansion content here:
3 Likes
Thanks for your replies.
As i a love everything clean, I have to think about to rebuild the system from the scratch…
iamwoz
January 29, 2025, 8:13am
8
Have you come across this yet? If not its definitely worth doing:
Simple bash script to rebalance pool data between all mirrors when adding vdevs to a pool.
Yes, I saw Lawrence Systems Youtube Video about this, but red different experiences with this Script…
1 Like
iamwoz
January 29, 2025, 6:19pm
10
Interested in any issues / negatives (apart from it taking forever on big pools ) as I’m doing lots of this - can you point me at anything?
No, sorry, as I have been using TrueNAS for only 1-2 weeks.
Right now, I’ m testing it, but only the free space is changing, not the overall space.
So I’m thinking about starting over again.
After reinstalling, would it be enough to simply import the settings and recover all data via Cloud Sync?
iamwoz
January 29, 2025, 6:56pm
12
From reading this appears to be a very straightforward process (certainly the backup and restore of configuration) although have never done it myself.
Ok, first error, if you create a new pool after new installation, you will NOT get the Datasets back, if you import the Config File…
If you think a bit about it, the “rebalance” script is really a “rewrite every file on your pool and remove the originals” script, which means that if you do it on a system that has:
snapshots
already low available space
You can get yourself into some trouble.
1 Like
Stux
January 30, 2025, 9:48pm
15
derhelle:
Ok, first error, if you create a new pool after new installation, you will NOT get the Datasets back
The datasets are on the pool. If you erase the pool, you erase the datasets.
1 Like
Had to learn it the hard way