[Solved] Add secondary drive to YAMS

Not necessarily related to YAMS, but anything related with Linux and other issues


Post Reply
Bauw
Posts: 6
Joined: Sat Nov 25, 2023 3:03 pm
Sweden

[Solved] Add secondary drive to YAMS

Post 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. :D

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?

User avatar
rogs
Site Admin
Posts: 151
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: Add secondary drive to YAMS

Post 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!

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
Bauw
Posts: 6
Joined: Sat Nov 25, 2023 3:03 pm
Sweden

Re: Add secondary drive to YAMS

Post by Bauw »

Hello again,

Thanks for the instructions, I am absolutely stupid tho :D

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.

User avatar
rogs
Site Admin
Posts: 151
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: Add secondary drive to YAMS

Post by rogs »

No worries! I'm really happy it works now :mrgreen:

If you have any other question, just create another post!

I'm marking this one as solved 8-)

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
Post Reply