Shagon
Members
-
Joined
-
Last visited
Solutions
-
Shagon's post in Hardlinks are not working? was marked as the answerManaged 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