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. For this guide we will follow the famous Trash Guides setup here that has only one /mnt/data:/data volume with the following structure
data
├── torrents
│ ├── books
│ ├── movies
│ ├── music
│ └── tv
├── usenet
│ ├── incomplete
│ └── complete
│ ├── books
│ ├── movies
│ ├── music
│ └── tv
└── media
├── books
├── movies
├── music
└── tv
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. Sweet, then now we need to install nfs tools such that we can mount the nfs share to /mnt/data
sudo apt install nfs-common
8. Then we will mount the NFS share by entering the /etc/fstab with nano
sudo nano /etc/fstab
9. There we copy paste in the nfs share credentials as follows
NAS-IP:/mnt/storagepool/media /mnt/data nfs defaults 0 0
10. Then to make the changes permanent we use
sudo systemctl daemon-reload
11. Then to mount the drives we use
sudo mount -a
12. You can then check if the mount occured properly by using the command
mount
13. You should then see that your /mnt/data folder is mounted to your NFS share
14. Now that that is done we will add all the folders inside the /mnt/data directory. Go inside the /mnt/directory and use the following command to create the whole structure with one command
mkdir -p torrents/{tv,movies,music,books} && mkdir -p usenet/{incompleted,completed,intermediate} && mkdir -p usenet/completed/{tv,movies,music,books} && mkdir -p media/{tv,movies,music,books}
Perfect! Then now in the next chapter we will start creating the docker compose file for our Arr stack ;)