Page 1 of 1
[Solved] Add secondary drive to YAMS
Posted: Sun Nov 26, 2023 1:15 pm
by Bauw
Hello!
Got my server up and running and its working perfectly yet, so I try not to touch too much stuff I dont understand completly.
Therefore my question, how would you go about adding a secondary USB drive so that radarr/sonarr/plex can find the folder?
As I understand all the containers are all in its own little environment and I guess you would have to edit the composer file to add the secondary drive?
I see that the variable is used to map correctly to the real mount I guesss? {MEDIA_DIRECTORY}
Would you need to create another variable like the one above?
Re: Add secondary drive to YAMS
Posted: Mon Nov 27, 2023 1:53 pm
by rogs
Hey @Bauw!
To add a secondary drive to YAMS, you must:
- Set your drive mountpoint using your
fstab
file. Google is your friend here
- Open your docker-compose file located in
/your/install/location/docker-compose.yaml
- Add the volumes pointing to your second USB drive mountpoint. Here's an extract of my own configuration:
Code: Select all
...
volumes:
- ${MEDIA_DIRECTORY}/movies:/data/movies
- /mnt/my-usb-2/Movies:/data/movies2
- ${MEDIA_DIRECTORY}/tvshows:/data/tvshows
- /mnt/my-usb-2/TV:/data/tvshows2
...
Do this whenever you see the media folder referenced in the docker-compose.yaml
file.
Some caveats!
You won't be able to use yams update
if you make this change. The update command will overwrite this configurations so be careful!
Re: Add secondary drive to YAMS
Posted: Tue Nov 28, 2023 10:23 pm
by Bauw
Hello again,
Thanks for the instructions, I am absolutely stupid tho
I tried for some time to add ALL the lines that you sent, then I got an error that "data/movies is already a folder-ish".
After implementing the code as you suggested it now looks like below(with the original lines) and works without any problems, I guess if i were to add books like readarr I would just point the mount to books folder instead and /data/books2
Code: Select all
- /mnt/Elements/MediaYams/movies2:/data/movies2
- /mnt/Elements/MediaYams/tvshows2:/data/tvshows2
After a frustrating time with ChatGPT and realizing Im not very smart I'm satisfied
Am now gonna read up on how Radarr and Sonarr are handling multiple folders.
Thanks for all the help again rogs, much appreciated.
Re: Add secondary drive to YAMS
Posted: Wed Nov 29, 2023 12:09 am
by rogs
No worries! I'm really happy it works now
If you have any other question, just create another post!
I'm marking this one as solved