TrueNAS not Accounting for Hardlinks

Hey peeps,

I’m pretty clueless with regards to TrueNAS and hardlinks.
But I seem to be having an issue where hardlinks are counting toward the total space being taken on my TrueNAS server.

I have a storage pool, which is shared via SMB:

I then have that directory mounted in a VM running my ARR stack etc.
Here is the folder structure:

Share
├── torrents
│   ├── books
│   ├── movies
│   ├── music
│   └── tv
│
└── media
    ├── books
    ├── movies
    ├── music
    └── tv

When I download something, it get’s put into “/Share/torrents”
When complete, it’s meant to hardlink to “/Share/media”

However, when adding up all the space used on each folder, it adds up to the total TrueNAS says I am using, even though everything in “/Share/torrents” should be hardlinked to somewhere in “/Share/media”

I should only be using ~2TB combined with everything on that pool.
But TrueNAS is reporting a 2.3TB usage in the dashboard.

How can I find where that other ~300GB is coming from.
Or which files are not really hardlinked?
Can my folder structure even handle hardlinks?

Perhaps snapshots?

1 Like

I understood very little of the claimed problem. Please post the output of zfs list -o space

1 Like

Are you “hardlinking” across datasets?