Run the command 'rclone version' and share the full output of the command.
rclone v1.65.0
os/version: ubuntu 22.04 (64 bit)
os/kernel: 5.15.0-105-generic (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.21.4
go/linking: static
go/tags: none
Are you on the latest version of rclone? You can validate by checking the version listed here: Rclone downloads
--> no
Which cloud storage system are you using?
SMB
Question
Currently, I use the configuration that I will detail below. What I need is the following:
I have a VPS server with Plex installed.
I have WireGuard configured with my home router and the VPS server.
Currently, the network drives are shared to the VPS from my home NAS, but the scans are really slow through the WireGuard tunnel (the transfer speed is fast).
Can SMB be configured with rclone so that the VPS disk caches SMB drives?
Config
[Unit]
Description=SMB Mount Service
Wants=network-online.target
After=network-online.target
should get better results with --vfs-cache-mode full and maybe tweak --buffer-size and --vfs-read-ahead
it depends on what you have plex scanning. just small amount of data per file such as basic metadata
or large amounts to generate thumbnails, Perform extensive media analysis during maintenance and whatnot
first, with your current setup, i would change --vfs-cache-mode writes to --vfs-cache-mode full
i suggested that today to another forum member and that solved the speed issue.
yes, rclone will cache whatever you point the mount to. /usr/bin/rclone mount smbdrive: /mnt/smbdrive
or /usr/bin/rclone mount /mnt/share /mnt/smbdrive
I'm testing right now. but i think scans are still slow.
There is something about wireguard tunnel i think, because testing plex in the same subnet (home) than my nas, nfs shares and smb shares are really fast scanning libraries.
--buffer-size uses RAM and --vfs-read-ahead uses disk. Only use one of them and leave the other default. Especially set --buffer-size not to high when use --vfs-read-ahead.
my advice:
use a high --buffer-size when you have enough RAM. Calculate with buffer-size * transfers for total RAM usage by rclone mount. If you haven't enough RAM use the disk to buffer. This can be set via --vfs-read-ahead. Notice that you need --vfs-cache-mode full to enable buffering to disk.
when Plex reads the file notice that the whole buffer (256M) per file are downloaded.
finally jump over to this thread and spend some time to understand how rclone works in interaction with Plex/Emby