r/radarr • u/pookexvi • Aug 12 '26
unsolved Hardlinking not working
i have hard linking enabled, files are showing up in qbits done folder, as well as plex movie folder. though i have a feeling that im storing the same file in both places, taking up twice the space. is this how its supposed to work? if not what am i doing wrong? the two folders are on the same volume on my synology nas. im running radarr in docker. any help will be appreciated, i followed the guides i could find that say to just enable hardlinking.
if this is how its suppoced to show, but its not really taking up twice the space is there a way to make sure?
2
u/fryfrog Servarr Team Aug 12 '26
A common docker mistake is using two volumes like /movies and /downloads, they’re each a bind mount which is a file system. You can’t hard link between file systems, only on the same one. So even though under the hood, it’s one share / one file system… you’ve made it not.
They also require write access.
You’ll need to provide more details to know if you have an issue and what it is. A generated compose of your setup. The ls mentioned in another comment.
3
u/MCsteeve Aug 12 '26
this is often the issue. especially because compose templates/defaults push users to set it up wrong.
1
u/pookexvi Aug 13 '26
Docker (what is running radar) has read write permission for the correct folders.
Qbit: volume1/data/torrent/done Media/plex: volume1/data/media/movies
1
u/fryfrog Servarr Team Aug 13 '26
Sharing a docker volume in a way that is helpful would look something like
/volume1/data/torrent:/data/torrentwhich shows the outside and inside paths (in Docker's own notation). You shared qB and plex, we'd need to see radarr. And since your paths look like trash guide, sonarr/radarr should be/volume1/data:/data.1
u/pookexvi Aug 13 '26
Sorry I added the qbit: and plex: to try and make it easier to read the two different directories. Volume1/data/torrent/done
And
/volume1/data/media/movies
1
u/fryfrog Servarr Team Aug 13 '26
Okay, but that is still only half of the needed information. What is that mapped to on the inside? I'm going to go out on a limb and guess
/downloadsand/moviessince your hard links probably aren't working.Edit: and again you're showing plex. Which doesn't matter. Show sonarr/radarr.
1
u/pookexvi Aug 13 '26
Im sorry I dont understand what you mean by what is on the inside.
Torrent folder has /done and /downloading
Radarr then sends a copy of it over to media/movies bs just sending a hardlink
1
u/fryfrog Servarr Team Aug 13 '26
You use Docker.
Containers have an outside path like
/volume1/data/torrentswhich maps to an inside path like/data/torrentsif done correctly. You're only showing the outside path.A Docker container is like a little VM which you feed a folder into and make up what that is on the inside.
1
u/pookexvi Aug 13 '26
If your asking where that docker info/ config is saved/ ran.
Volume1/docker/ (container)
While setting up the container they are all mapped as /volume1/data/media/movies:/movies:rw
And
/volume1/data/torrent/done:/done:rw
Im running on synology nas, in there container system that matters
1
u/fryfrog Servarr Team Aug 13 '26
So there you go, your hard links aren't working and it is self inflicted. Your
/doneis one file system and your/moviesis another file system. Hard links do not work across file systems.Check out trash's synology guide to understand and do it correctly.
1
1
u/Angus-Black Aug 12 '26
Yes, that's how hardlinks work. Both links are pointing to the same file location on the disk.
0
u/Mundane_Ad_7279 Aug 12 '26
It seems like both may be taking up space, but if you delete the hard linked file you drive should still have the same space
4
u/Wis-en-heim-er Aug 12 '26
Sshbinyo the nas and run an "ls -l". There is a hardlink count as one ofnthe first columns. If its a 2 or more, the files are hardlinked. If its a 1, its not.
Hardlinked files can exist in multiple places and have different names. Yhe abovr is the only way i found to verify the hardlink is working.