Help With Hardlinks

Sonarr version (exact version): 2.0.0.4753
Mono version (if Sonarr is not running on Windows): 4.6.1
OS: OSX 10.11.6
((Debug logs)):
https://pastebin.com/SDzna0MH - sonarr.debug.txt
https://gist.github.com/iluvdirt/1417e54bf95a55cd5081bb139295a22e - sonarr.txt
Description of issue:

I have ‘Use Hardlinks Instead of Copy’ set to ‘Yes’, but it isn’t working (I get a copy instead of a hardlink). I read somewhere that this might be a file permission issue so I tried enabling ‘Set Permissions’ and setting a chown User, but that didn’t seem to do the trick either.

I was wondering if anyone had any other ideas as to what it could be? Or maybe there’s something in my logs that can shed some light on the problem?

Any help would be greatly appreciated, thanks!

Neither log file shows anything importing.

What leads you to believe it’s not hardlinking? One way to check if it’s hardlinking or not is to check the inode of both files, if they are the same then it’s a hardlink, otherwise a copy. A hardlink also requires files to be on the same volume to be successful.

Yea I was worried about the logs not having anything since I don’t have too many shows going right now. Maybe I could download something to see what the logs say?

The reason I think it’s not hardlinking is the size of the destination folder. To be fair this is my first experience with hardlinking, so I’m not totally sure how they are supposed to work, but my destination folder is ~130gbs, which leads me to believe that it’s just copying the episodes instead of hardlinking. All the files are on the same volume, however.

As far as the inode, how would I go about checking that?

That’d work.

If you check the folder it should show the file size on disk, even if it’s a hardlink since it looks like a full file, unlike a symlink which is a smaller file pointing at the actual file.[quote=“dirt, post:3, topic:14908”]
As far as the inode, how would I go about checking that?
[/quote]

ls -li works under most linux distros, not sure if it will work under macOS.

That’s interesting![quote=“markus101, post:4, topic:14908”]
ls -li works under most linux distros, not sure if it will work under macOS.
[/quote]

Welp, looks like they are the same after all. Thanks so much for walking me through this! Sorry it wasn’t much of anything, but I suppose that’s better than the alternative!

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.