You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
TRaSH-Guides/docs/Hardlinks/How-to-setup-for/Unraid.md

181 lines
7.0 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# unRAID
!!! warning "**DO NOT** use the template paths from unRAID or the suggested paths from SpaceInvader One."
SpaceInvader One YouTube guides are great for learning how to start with unRAID or how to set up certain applications - and yes I did and still do use them.<br><br>The main reason why he's probably using those paths is because they are predefined in the templates.
------
## Preparation
Make sure `Tunable (support Hard Links)` is enabled in your `Settings` => `Global Share Settings`.
=== "unRAID 6.12"
![Enable Hardlink support (New)](images/unraid-enable-hardlinks_612.png)
=== "unRAID 6.11"
![Enable Hardlink support](images/unraid-enable-hardlinks.png)
## Create the main share
!!! warning "To get Hardlinks and Atomic-Moves working with unRAID,<br>You will need to make use of <u>**ONE**</u> share with subfolders."
In this example, I'm using my own setup and the preferred share `data`.
Go to your dashboard and select `Shares` on the navigation bar, then choose `Add Share`.
=== "unRAID 6.12 (No Cache)"
![!unraid-main-share-array-6-12](images/unraid_main_share_array_612.png)
=== "unRAID 6.12 (Cache)"
![!unraid-main-share-cache-6-12](images/unraid_main_share_cache_612.png)
=== "unRAID 6.11"
![!unraid-main-share](images/unraid-main-share.png)
1. Use `data`
1. Set up your share with the applicable settings.
=== "unRAID 6.12 (No Cache)"
Select the `Primary storage` as `Array` (shown in the `No Cache` tab above).
=== "unRAID 6.12 (Cache)"
1. Select the `Primary storage` as `Cache` (shown in the `Cache` tab above).
1. Select the `Secondary storage` as `Array`
1. Make sure `Mover action` is set to `Cache -> Array`
=== "unRAID 6.11"
Choose `Yes` on step (2) (unRAID 6.11 tab above). If not using a cache drive, keep this option disabled.
!!! info "Hardlinks will stay intact if you're using a cache"
1. Click on `ADD SHARE`
!!! note
Keep in mind, regarding the use of the cache drive, unRAID's integrated mover cannot move files that are in use, like seeding torrents. You will need to stop/pause the torrents so the mover can move the files from the cache to your array.
!!! tip "If you use qBittorrent you can automate the process by following the following Guide [HERE](/Downloaders/qBittorrent/Tips/How-to-run-the-unRaid-mover-for-qBittorrent/){:target="_blank" rel="noopener noreferrer"}<br>If you use Deluge you can automate the process by following the following Guide [HERE](/Downloaders/Deluge/Tips/Unraid-Mover/){:target="_blank" rel="noopener noreferrer"}"
With Usenet, you won't have any issues.
------
## Folder Structure
On the host (unRAID) you will need to add `/mnt/user` before it. **So `/mnt/user/data`**
The `data` folder has sub-folders for `torrents` and `usenet`, and each of these has sub-folders for `tv`, `movie` and `music` downloads to keep things organized. The `media` folder has nicely named `TV`, `Movies` and `Music` sub-folders, this is where your library resides, and what youd pass to Plex, Emby or JellyFin.
You will need to create these subfolders yourself. You can do this any way you prefer, but Krusader or WinSCP are popular choices if you are unsure.
{! include-markdown "../../../includes/hardlinks/docker-tree-full.md" !}
*I'm using lower-case on all folders on purpose, being Linux is case-sensitive.*
------
### Breakdown of the Folder Structure
{! include-markdown "../../../includes/hardlinks/bad-path-suggestion.md" !}
<!-- --8<-- "includes/hardlinks/bad-path-suggestion.md" -->
## Setting up the containers
After you've created all the necessary folders, it's time to set up the Docker container's paths.
Go to your dashboard and select the Docker container you want to edit, or, if you're starting fresh, add the container/App you want to use.
unRAID makes it pretty clear which is the Host Path and Container Path.
`Container Path:` => The path that will be used from inside the container.
`Host Path:` => The actual/absolute path used on your unRAID Server (The Host).
------
### Torrent clients
qBittorrent, Deluge, ruTorrent
![unraid-torrent-clients](images/unraid-torrent-clients.png)
`Container Path:` => `/data/torrents/`
`Host Path:` => `/mnt/user/data/torrents/`
!!! info
The reason why we use `/data/torrents/` for the torrent client is because it only needs access to the torrent data. In the torrent software settings, youll need to configure your categories/labels to utilize the right path for specific content. You can sort into sub-folders like `/data/torrents/{tv|movies|music}`.
{! include-markdown "../../../includes/hardlinks/docker-tree-torrents.md" !}
------
### Usenet clients
NZBGet or SABnzbd
![unraid-usenet-client](images/unraid-usenet-client.png)
`Container Path:` => `/data/usenet/`
`Host Path:` => `/mnt/user/data/usenet/`
!!! info
The reason why we use `/data/usenet/` for the usenet client is that it only needs access to the usenet data. In the usenet software settings, youll need to configure your paths to sort content into sub-folders like `/data/usenet/{tv|movies|music}`.
{! include-markdown "../../../includes/hardlinks/docker-tree-usenet.md" !}
------
### The Starr Apps
Sonarr, Radarr and Lidarr
![unraid-arr](images/unraid-arr.png)
`Container Path:` => `/data`
`Host Path:` => `/mnt/user/data/`
!!! info
Sonarr, Radarr and Lidarr get access to everything because the download folder(s) and media folder will need to look like, and be one mount, on the file system. Hard links will work properly and any moves will be atomic, rather than copying and deleting.
{! include-markdown "../../../includes/hardlinks/docker-tree-full.md" !}
------
### Media Server
Plex, Emby, JellyFin and Bazarr
![unraid-media-server](images/unraid-media-server.png)
`Container Path:` => `/data/media`
`Host Path:` => `/mnt/user/data/media/`
!!! info
Plex, Emby, JellyFin and Bazarr only need access to your media library, which can have any number of sub-folders (Movies, Kids Movies, TV, Documentary TV and/or Music).
{! include-markdown "../../../includes/hardlinks/docker-tree-media.md" !}
------
## Final Result
![!unraid-final-result](images/unraid-final-result.png)
**Don't forget to look at the [Examples](/Hardlinks/Examples/) of how to set up your paths INSIDE your applications.**
### Video Tutorial
!!! tip ""
Big Thanks to IBRACORP for noticing this Guide and creating a Video covering this unRAID section.
The reason why I have this video at the end is because I want the users to ACTUALLY LEARN and UNDERSTAND why it's recommended to use this folder structure prior to going straight to a YouTube video.
<iframe width="560" height="315" src="https://www.youtube.com/embed/AMcHsQJ7My0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Check out other videos from IBRACORP [HERE](https://www.youtube.com/c/IBRACORP/videos){:target="_blank" rel="noopener noreferrer"}
{! include-markdown "../../../includes/support.md" !}
<!-- --8<-- "includes/support.md" -->