1. Storage Layout
Now, the installation of the Arr stack is not all that hard but it is important to choose a good storage layout. There are different methods each with its pros and cons. The one method that we will discuss in the setup is the Hardlink method, which basically means that the downloads and tv and movie folders are linked together instead of seen separately. That means instead of storing 2 times a movie you only store it once. But if you use HDD drives for your media (which most of us do) then this also means that downloads will use the slow HDD's instead of separate fast SSD drives. Now, if you will only use Usenet and not BitTorrent I would recommend to go down the path of a divided setup for which you can find a guide here. For now, we will follow the famous Trash Guides setup here that has only one /mnt/data:/data volume.
1. Create an NFS share on TrueNas scale
2. Go inside your arr stack vm via SSH
3. Then we want to make to give ownership of the /mnt folder to our user that is not root.
4. If you have not added any users then your base user and did not change your user ID it most likely will be 1000. However, you can be sure by using the command
id myuser
5. Then we make myuser owner of the mnt folder with
sudo chown -R myuser:myuser /mnt
sudo chmod -R 770 /mnt
6. Then create the data folder inside the mnt folder with
mkdir /mnt/data
7.
Inside a container, a bind mount is a filesystem boundary. Mount /mnt/data/torrents as /downloads and /mnt/data/media as /tv, and even though both live on one host disk, Sonarr sees two separate mounts and refuses to link across them. The official LinuxServer.io image documentation says this directly: using the separate /downloads and /tv paths sacrifices the ability to hardlink.
The fix is one mount. Every container that touches media gets the same single volume, /mnt/data:/data, and every path they use is a folder inside it. One mount point, one filesystem, working hardlinks.
So the first step is to create an NFS share on your favorite NAS system which in our case is on TrueNas Scale. You can find how to create NFS shares in TrueNas scale here
2.