Passing mount options (like vfs-cache-mode) when using "rclone rc mount/mount"

rclone rcd --rc-serve --rc-no-auth --rc-addr 127.0.0.1:5572 --config /mnt/sda1/rclone/rclone.conf --log-level INFO --log-file /tmp/rclone_mount.log --buffer-size 32M --user-agent aliefapp &

/mnt/sda1/rclone/rclone rc mount/mount fs=encrypt_team_1: mountPoint=/mnt/rclone/A_Avengers mountType=mount vfsOpt='{"PollInterval": 15000000000,"Umask": 0,"DirCacheTime": 3600000000000000,"ChunkSize": 33554432} mountOpt='{"AllowOther": true}''

rclone v1.52.2-250-g8634002c-build-beta

  • os/arch: linux/arm64
  • go version: go1.14.4

vfsOpt don't work

rclone rc options/get output :::

"vfs": {
"CacheMaxAge": 3600000000000,
"CacheMaxSize": -1,
"CacheMode": 0,
"CachePollInterval": 60000000000,
"CaseInsensitive": false,
"ChunkSize": 134217728,
"ChunkSizeLimit": -1,
"DirCacheTime": 300000000000,
"DirPerms": 511,
"FilePerms": 438,
"GID": 0,
"NoChecksum": false,
"NoModTime": false,
"NoSeek": false,
"PollInterval": 60000000000,
"ReadOnly": false,
"ReadWait": 20000000,
"UID": 0,
"Umask": 18,
"WriteBack": 5000000000,
"WriteWait": 1000000000
}

help me

They don't set the global vfs options, then set specific ones for the mount. Check the output of mount/listmounts.

I make service don't work.

[Unit]
Description=RClone Service
Wants=network-online.target
After=network-online.target

[Service]
Type=notify
KillMode=none
RestartSec=5
ExecStart=/usr/bin/rclone rcd \
--config /mnt/config/rclone/rclone.conf \
--log-level INFO \
--log-file /tmp/rclone_mount.log \
--user-agent neunghaha28app \
--rc-serve \
--rc-no-auth \
--rc-addr 127.0.0.1:5572 \
--buffer-size 16M \
--use-mmap
ExecStartPost=/usr/bin/rclone rc mount/mount fs=Encrypt_TD1: mountPoint=/mnt/stuff/gdrive/A_Avengers mountType=mount vfsOpt='{"PollInterval": 15000000000,"Umask": 0,"DirCacheTime": 3600000000000000,"ChunkSize": 33554432}' mountOpt='{"AllowOther": true}'
ExecStartPost=/usr/bin/rclone rc mount/mount fs=win1: mountPoint=/mnt/stuff/gdrive/A_Win1 mountType=mount vfsOpt='{"PollInterval": 15000000000,"Umask": 0,"DirCacheTime": 3600000000000000,"ChunkSize": 33554432}' mountOpt='{"AllowOther": true}'
ExecStartPost=/usr/bin/rclone rc mount/mount fs=nas2: mountPoint=/mnt/stuff/gdrive/A_Nas2 mountType=mount vfsOpt='{"PollInterval": 15000000000,"Umask": 0,"DirCacheTime": 3600000000000000,"ChunkSize": 33554432}' mountOpt='{"AllowOther": true}'
ExecStartPost=/usr/bin/rclone rc mount/mount fs=sleepmizer: vfsOpt='{"PollInterval": 15000000000,"Umask": 0,"DirCacheTime": 3600000000000000,"ChunkSize": 33554432}' mountOpt='{"AllowOther": true}' mountPoint=/mnt/stuff/gdrive/A_Sleepmizer mountType=mount
ExecStartPost=/usr/bin/rclone rc vfs/refresh recursive=true --rc-addr 127.0.0.1:5572 _async=true
ExecStop=/usr/bin/rclone rc mount/unmountall
ExecStop=/usr/bin/pgrep -a rclone | awk '{ print $1 }' | xargs kill
Restart=on-failure

[Install]
WantedBy=multi-user.target

Can you share a log ? Some output?

logs rclone :::

root@up2you:~# cat /tmp/rclone_mount.log
2020/07/25 22:22:01 NOTICE: Serving remote control on http://127.0.0.1:5572/

rclone start rcd only
don't start rclone rc mount

Thanks for help :heart_eyes:

Can we put it in debug and share the full log like for any issue we normally help you with as you've been through the process before, right?

ok log debug

2020/07/26 06:34:42 DEBUG : rclone: Version "v1.52.2-250-g8634002c-build-beta" starting with parameters ["/usr/bin/rclone" "rcd" "--config" "/mnt/config/rclone/rclone.conf" "--log-level" "DEBUG" "--log-file" "/tmp/rclone_mount.log" "--user-agent" "neunghaha28app" "--rc-serve" "--rc-no-auth" "--rc-addr" "127.0.0.1:5572" "--buffer-size" "16M" "--use-mmap"]
2020/07/26 06:34:42 NOTICE: Serving remote control on http://127.0.0.1:5572/

rclone start rcd only
don't start rclone rc mount

rclone rc mount/listmounts
{
"mountPoints": [
{
"Fs": "nas2",
"MountOpt": {
"AllowNonEmpty": false,
"AllowOther": true,
"AllowRoot": false,
"AsyncRead": true,
"AttrTimeout": 1000000000,
"Daemon": false,
"DaemonTimeout": 0,
"DebugFUSE": false,
"DefaultPermissions": false,
"ExtraFlags": [],
"ExtraOptions": [],
"MaxReadAhead": 131072,
"NoAppleDouble": true,
"NoAppleXattr": false,
"VolumeName": "",
"WritebackCache": false
},
"MountPoint": "/mnt/stuff/gdrive/A_Nas2",
"MountedOn": "2020-07-26T06:57:16.732051104+07:00",
"VFSOpt": {
"CacheMaxAge": 3600000000000,
"CacheMaxSize": -1,
"CacheMode": 0,
"CachePollInterval": 60000000000,
"CaseInsensitive": false,
"ChunkSize": 33554432,
"ChunkSizeLimit": -1,
"DirCacheTime": 3600000000000000,
"DirPerms": 511,
"FilePerms": 438,
"GID": 1000,
"NoChecksum": false,
"NoModTime": false,
"NoSeek": false,
"PollInterval": 15000000000,
"ReadOnly": false,
"ReadWait": 20000000,
"UID": 1000,
"Umask": 0,
"WriteBack": 5000000000,
"WriteWait": 1000000000
}
},
{
"Fs": "sleepmizer",
"MountOpt": {
"AllowNonEmpty": false,
"AllowOther": true,
"AllowRoot": false,
"AsyncRead": true,
"AttrTimeout": 1000000000,
"Daemon": false,
"DaemonTimeout": 0,
"DebugFUSE": false,
"DefaultPermissions": false,
"ExtraFlags": [],
"ExtraOptions": [],
"MaxReadAhead": 131072,
"NoAppleDouble": true,
"NoAppleXattr": false,
"VolumeName": "",
"WritebackCache": false
},
"MountPoint": "/mnt/stuff/gdrive/A_Sleepmizer",
"MountedOn": "2020-07-26T06:57:17.264350559+07:00",
"VFSOpt": {
"CacheMaxAge": 3600000000000,
"CacheMaxSize": -1,
"CacheMode": 0,
"CachePollInterval": 60000000000,
"CaseInsensitive": false,
"ChunkSize": 33554432,
"ChunkSizeLimit": -1,
"DirCacheTime": 3600000000000000,
"DirPerms": 511,
"FilePerms": 438,
"GID": 1000,
"NoChecksum": false,
"NoModTime": false,
"NoSeek": false,
"PollInterval": 15000000000,
"ReadOnly": false,
"ReadWait": 20000000,
"UID": 1000,
"Umask": 0,
"WriteBack": 5000000000,
"WriteWait": 1000000000
}
},
{
"Fs": "Encrypt_TD1",
"MountOpt": {
"AllowNonEmpty": false,
"AllowOther": true,
"AllowRoot": false,
"AsyncRead": true,
"AttrTimeout": 1000000000,
"Daemon": false,
"DaemonTimeout": 0,
"DebugFUSE": false,
"DefaultPermissions": false,
"ExtraFlags": [],
"ExtraOptions": [],
"MaxReadAhead": 131072,
"NoAppleDouble": true,
"NoAppleXattr": false,
"VolumeName": "",
"WritebackCache": false
},
"MountPoint": "/mnt/stuff/gdrive/A_Avengers",
"MountedOn": "2020-07-26T06:57:15.848705072+07:00",
"VFSOpt": {
"CacheMaxAge": 3600000000000,
"CacheMaxSize": -1,
"CacheMode": 0,
"CachePollInterval": 60000000000,
"CaseInsensitive": false,
"ChunkSize": 33554432,
"ChunkSizeLimit": -1,
"DirCacheTime": 3600000000000000,
"DirPerms": 511,
"FilePerms": 438,
"GID": 1000,
"NoChecksum": false,
"NoModTime": false,
"NoSeek": false,
"PollInterval": 15000000000,
"ReadOnly": false,
"ReadWait": 20000000,
"UID": 1000,
"Umask": 0,
"WriteBack": 5000000000,
"WriteWait": 1000000000
}
},
{
"Fs": "win1",
"MountOpt": {
"AllowNonEmpty": false,
"AllowOther": true,
"AllowRoot": false,
"AsyncRead": true,
"AttrTimeout": 1000000000,
"Daemon": false,
"DaemonTimeout": 0,
"DebugFUSE": false,
"DefaultPermissions": false,
"ExtraFlags": [],
"ExtraOptions": [],
"MaxReadAhead": 131072,
"NoAppleDouble": true,
"NoAppleXattr": false,
"VolumeName": "",
"WritebackCache": false
},
"MountPoint": "/mnt/stuff/gdrive/A_Win1",
"MountedOn": "2020-07-26T06:57:16.284241079+07:00",
"VFSOpt": {
"CacheMaxAge": 3600000000000,
"CacheMaxSize": -1,
"CacheMode": 0,
"CachePollInterval": 60000000000,
"CaseInsensitive": false,
"ChunkSize": 33554432,
"ChunkSizeLimit": -1,
"DirCacheTime": 3600000000000000,
"DirPerms": 511,
"FilePerms": 438,
"GID": 1000,
"NoChecksum": false,
"NoModTime": false,
"NoSeek": false,
"PollInterval": 15000000000,
"ReadOnly": false,
"ReadWait": 20000000,
"UID": 1000,
"Umask": 0,
"WriteBack": 5000000000,
"WriteWait": 1000000000
}
}
]
}

ok working good job help me for make service. T-T

Good those appear to be working :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.