Recommended Dropbox (Formally Google Drive) and Plex Mount Settings

Yeah was just wondering why would a lot of these kind of project uses rc but like you said its just the same. Anyway will go ask them why.

They use it because they use remote control commands on the mount.

Hey there,

Firstly big thanks for this howto and also to ncw for the excellent rclone tool.

I've read through @Animosity022's github page and created a similar rclone/mergerfs/gcrypt/sonarr/radarr set up which is working well, with the exception of radarr.

Radarr is initiating a full 'Movies' library scan after it post-processes a download. Radarr calls Plex Media Scanner with an --activity flag that doesn't seem to exist in the Plex support article (Plex Media Scanner via command line) - this is an extract from the scanner log file:

DEBUG - "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe" --scan --refresh --section 3 **--activity e95817fc-6eba-4926-b4fb-d18d5e58840f**

This is different to sonarr which uses the --directory flag instead to limit the scope of the scan:

DEBUG - "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe" --scan --section 4 --directory "\\fat-hp-ubuntu\mergemedia\TV\TV Show" --refresh --item 10995 --force

Do you have any advice on where I may be going wrong please?

Appreciate diagnosing this could be difficult without log files, so please let me know what log files could be relevant.

Key information:
"fat-hp-ubuntu" (old HP Microserver N36L)
OS: Ubuntu 20.04 LTS
Local Storage: /media/3TB-HDD/
Google Drive (crypt): /media/GD/
mergerFS mount (shared over samba): /mergemedia/
Sonarr: v3.0.3.896
Sonarr -> Settings -> Download Clients -> Remote Path Mappings:
x.x.x.x \\fat-hp-ubuntu\mergemedia\sabnzbd\complete /mergemedia/sabnzbd/complete
Sonarr -> Settings -> Connect -> Plex settings:

  • On Grab: No
  • On Import: Yes
  • On Upgrade: Yes
  • On Rename: Yes
  • Update Library: Yes

Radarr: v0.2.0.1480
Radarr -> Settings -> Download Clients -> Remote Path Mappings:
x.x.x.x \\fat-hp-ubuntu\mergemedia\sabnzbd\complete /mergemedia/sabnzbd/complete
Radarr -> Settings -> Connect -> Plex settings:

  • On Grab: No
  • On Download: Yes
  • On Upgrade: Yes
  • On Rename: Yes
  • Update Library: Yes

"lounge-laptop" (Intel i5-5300U @ 2.3GHz)
OS: Windows 10
Download client: SABnzbd
Download location: \\fat-hp-ubuntu\mergemedia\sabnzbd\complete

The CPU in fat-hp is weak (especially with par2 repairs on large downloads), hence the additional system. There is a dream to move everything to a single machine running Ubuntu one day..!

Thanks in advance for any help offered.

Best to always post a new thread as your question is not related to any of my settings.

You can check out plex autoscan maybe as full scans aren't an issue really so not sure what problem you are trying to solve.

Hi there.

I made great progress in my setup with a lot of help from yours.
Something is bothering me thou. I pointed qBit download folder to the mergerfs mount. qBit sees the GDrive space as free space, but the disk it is really writing to is the local one. I’m worried that when I start downloading stuff qBit will ignore space restrictions and will crash my server. Have you dealt with that issue?

Thanks

I actually don't as I have a large slow storage that seeds and my rules automatically clean up things in QBit after a period of time.

I do preallocate in QBIt so if my data volume filled up, only thing that would break is torrents.

You can also monitor the local disk as well and alert on that.

I’m also preallocating torrent space (on qbit config) but will the preallocation consider the local disk? If so I have nothing to worry about.

If I monitor the local disk won’t sonarr/radarr have to move files between filesystems?

You can still fill the disk up, but the new torrent would just fail to preallocate. A disk filling up doesn't crash a system unless you are filling up your / partition, which I'd guess you are using a different mount.

I monitor my local mount so if something does creep up, I can take action. Everything still points to my mergerfs mount.

@Animosity022, will you have a look at the new vfs feature in 1.53 and test it with your Plex setup?

Once it is released, sure :slight_smile:

1 Like

Sorry if this a dumb question, just starting this. Following the guides I have foo, and crypt (mounted in foo:bucket). Do I set this client ID for foo, for crypt, for both?

Edit, nevermind I don't think crypt actually has client_ID.

You are correct, no client ID is needed for the crypt remote as it's a really considered part fo the Google drive remote.

1 Like

I will also give it a try but am looking forward to your profound testing.
Thanks in advance for the effort! :slight_smile:

Start a new post rather than hijacking mine. If you have a question regarding any of my settings, I'm happy to help answer them.

Can you take a look at the following and tell me if I'm doing this right. I've followed your setup but still not getting it right. The imports take over and I'm not sure the hardlinks are working.

Layout:

  • local - /data/local/
    (this has the following folders: movies, shows, sabmovies, sabshows, temp)

  • rclone mount mount - /GD/
    (this has the following folders: movies, shows, sabmovies, sabshows, temp)

  • mergerfs mount - /gmedia
    (the above folders are shown here)

Process:

  • Radarr searches for a movie and sends to SABnzb, Sabnzb downloads the movie to /gmedia/temp

  • SABnzbd moves the file to /gmedia/sabshows

  • Radarr takes the movie and moves it to /gmedia/movies

Now as I understand all of this should just be hard linked but for me it takes a really long time to import and I suspect it's copying the file.

That seems right.

You'd want to capture a debug from Radarr and see what it's doing. It still has to unrar/uncompress the file so that would take some time if you are using newgroups.

Good idea. I'll look at those.

But, does the setup above seem right? Moving from temp -> sabmovies/sabshows -> movies/shows? Everything pointing to /gmedia.

Yep.

As long as you are under the mergerfs mount point, it should be fine as you have it all on /gmedia.

Sweet. Thanks, man. Learnt a lot from your posts and this thread in general.

1 Like

Sorry man, just a follow-up if you don't mind...

I looked into it further and noticed the inodes are not the same between /data/local/shows/ and /gmedia/shows/ so I'm confident they are not linking and instead copying.

I looked into my setup again and it is exactly the same as yours except for the following:

  • Mergerfs - ExecStart=/usr/bin/mergerfs /local:/GD /gmedia -o rw,use_ino,allow_other,func.getattr=newest,category.action=all,category.create=ff,cache.files=auto-full

In the above mergerfs mount you point your local directory to /local whereas I point it to /data/local. I wasn't able to mount without the /data. Can you please explain how it knows to look in the data without listing it?

  • LOCAL=/local

Same for the rclone mount. It is pointing to /local whereas mine is pointing to /data/local/