this post was submitted on 26 Jul 2023
25 points (93.1% liked)
Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ
54577 readers
267 users here now
⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.
Rules • Full Version
1. Posts must be related to the discussion of digital piracy
2. Don't request invites, trade, sell, or self-promote
3. Don't request or link to specific pirated titles, including DMs
4. Don't submit low-quality posts, be entitled, or harass others
Loot, Pillage, & Plunder
📜 c/Piracy Wiki (Community Edition):
💰 Please help cover server costs.
Ko-fi | Liberapay |
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Sonarr/Radarr can be set up to use hardlinks instead of copying files. That way the file will appear in both places but it will only take up the storage space a single time. I believe it's one of the advanced options under media management.
This is correct. Hard linking is also enabled by default.
Given that it's not enabled makes me think that they've got some sort of weird setup like network drives or separate mounts (Docker?) or gasp they're running the *arrs on Windows.
Well, that or they just didn't notice that hardlinks were already working.
one caveat is the need for *rr apps to have direct access to the storage filesystem, and not connect through some filesharing protocol (smb, NFS, etc..) afaik. ISCSI might be good since it's presented as an actual system drive, speculating.
Can't you use a docker CIFS volume?
CIFS is SMB under a diferent name, and it might be that inside a share you can hardlink, but not across shares in the same filesystem.
I'm aware that CIFS is essentially SMB. Is the issue on the host or the container side?
It's neither, it's a limitation of SMB, if you have multiple shares set-up that mount to the root of the SMB share, you can't hardlink accross them, but inside a single share in the root of the SMB share apparently it's not an issue.
Fun fact, just encountered this very issue myself lol. I hate the fact that I had to set up share per dataset, but it works and with smb enumeration they at least don't show up for other users.
Works fine over smb and NFS. *arr apps have no way of knowing if a folder is a mounted share or not
Sure *are apps might not have a way of knowing but they are still limited by SMB's limitations. If you're sharing individual folders you simply can't hardlink across them. But my bad for thinking SMB didn't allow hardlink inside the same share mount point.
I have my arrs connected through SMB and hardlinks work fine.
I'd guess it's more about the underlying filesystem, I've got ext4.
Are you sharing the top folder holding both folders where you're creating the hardlinks or are you creating individual shares for each folder?
The former.
You cannot hardlink across drives, and I'm guessing the OS might not know it's one drive if you've got multiple shares.
For sure! Yeah I was just remembering that shares get mounted as a drive when you access them. So makes sense.