Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Hardlinks are not working?

Featured Replies

I have the following setup:

 

radarr

/config = /mnt/user/appdata/radarr
/movies = /mnt/user/media/Movies/
/downloads = /mnt/user/torrent/

 

sonarr

/tv = /mnt/user/media/TV Shows/
/downloads = /mnt/user/torrent/
/config = /mnt/user/appdata/sonarr

 

deluge

/downloads = /mnt/user/torrent/
/config = /mnt/user/appdata/deluge

 

However, once a file is downloaded it is moved from "/mnt/user/torrent/" to a "/mnt/user/media/Movies" without a hardlink.

 

"/mnt/user/torrent" and "/mnt/user/media" are 2 user shares. For hardlinks to work - do I need to have torrents inside the same share?

 

Additionally, do I need to make any changes to the volume mappings? For example to have:

 

radarr
/data/movies = /mnt/user/media/Movies/
/data/downloads = /mnt/user/media/torrent/

 

sonarr

/data/tv = /mnt/user/media/TV Shows/
/data/downloads = /mnt/user/media/torrent/

 

deluge

/data/downloads = /mnt/user/media/torrent/

 

I am not sure if I would need to have sonarr and radarr re-index my library if I make this change?

 

Solved by Shagon

  • Author

Tried the following setup:

 

Deluge:

- /data/torrent => /mnt/user/media/torrent

 

Sonarr

- /data => /mnt/user/media

 

So technically sonarr should see both however atomic movies / hardlinks are not working as the contents get deleted after the move, which is not ideal at all since we have extra io and we can't seed the files.

 

Used

docker exec -it sonarr /bin/bash

to jump into the container however, one interesting thing is that I could run "ln /data/torrent/something /data/TV Shows/something" so technically it works when manually running it, however sonarr seems to always just move, even though in the UI hardlinks are checked.

 

Hopefully someone has a working guide on how we can properly use hardlinks.

Edited by Shagon

  • Author
  • Solution

Managed to get it working.

 

 

# Steps

 

Given the layout on disk:

 

```shell

/mnt/user/media

├── ebooks

├── downloads

├── Movies

├── Music

└── TV Shows

```

 

The container view should be:

 

## Deluge

 

```shell

/media

└── downloads

```

 

## Sonarr

 

```shell

/media

├── ebooks

├── downloads

├── Movies

├── Music

└── TV Shows

```

 

## The switch

 

1. Backup `/appdata`

2. Turn off plex scanning

3. Turn off plex garbage collection (1, 2, 4, 5)

4. Turn off plex

5. Change sonarr volume binding

  1. Remove `/tv` => `/mnt/user/media/TV Shows` volume binding

  2. Add volume binding `/media` => `/mnt/user/media`

6. Change Deluge volume binding

  1. Remove `/downloads` => `/mnt/user/torrent/`

  2. Add volume binding `/media/downloads` => `/mnt/user/media/downloads`

7. Test manual volume binding

  1. `docker exec -it sonarr /bin/bash`

  2. `echo "something" > /media/downloads/something`

  3. `ln /media/downloads/something /media/TV\ Shows/something`

  4. `stat /media/downloads/something` should return "Links: 2"

8. Going back to Sonarr change the root directory from `/tv` to `/media/TV\ Shows` making sure **NOT** to move the files as the naming scheme is correct

9. Ensure Sonarr is set to use hardlinks

10. Ensure Sonarr is set **NOT** to remove downloaded files

11. Configure Deluge to seed for at least 1:1 ratio

12. Configure Deluge to use `/media/downloads` directory for downloads

13. Find a random episode on Sonarr and download it

14. Observe the import in Sonarr

15. Confirm the link exists by looking into the `/media/downloads` directory and doing `stat` on the downloaded file

16. Remove `something` file used for testing `rm /media/TV\ Shows/something`

17. Turn on plex and enable garbage collection (settings 1,2,4,5)

 

 

Repeat the above for Radarr as the core seems to be NAMING to be the same, so media in the container and media in unraid, or data in unraid and data in the container - the names MUST match

  • Author
7 hours ago, Killabee44 said:

Hi,

I have a similar issue which I am trying to resolve. For Sonarr, where did you change the binding setting? in the appdata config file? Thanks.

In unraid itself

 

image.png.a73d9cbc6916490222c2d8ed4539c5d4.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.