What is the problem you are having with rclone?
I am exporting two directories over NFS on a linux server: a regular one on the filesystem (/mnt/B) , the second (/mnt/A) mounted from a Google drive (see rclone config below):
/mnt/folder1 *(rw,sync,no_subtree_check,fsid=4,insecure) [this is the google drive rclone mount]
/mnt/folder2 *(rw,sync,no_subtree_check,fsid=6,insecure) [regular directory on filesystem]
Problem:
-
When i create/copy/any file modification on the rclone mounted directory on the nfs server (server A), the file doesn't appear on the exported mount (on a different remote server with access to the nfs share, lets call it server B) when running ls -l DIRECTORY, unless I "touch" the directory where the file was created on server A. Touching the directory on server B also resolves the issue.
-
The same approach (creating/copying a file on server A and reading it on server B) for a non-rclone mounted directory is not a problem.
-Creating/copying a file on server B on the exported NFS mount of the rclone mount is also not a problem; files appear immediately.
Now, the strange part: Although the file doesn't appear when running a ls -l on the directory, the file is visible when running a ls -l FILENAME from server B!
I found this old post related to a old NovelL fs (NFS: client does not see new files created on server (caching?) - Server Fault), and I am wondering if rclone mount doesnt "mess" with the ctime/mtime parameters of the directory, and the nfs client gets confused.
Thanks for your help
Run the command 'rclone version' and share the full output of the command.
rclone v1.61.1
- os/version: debian 11.6 (64 bit)
- os/kernel: 5.15.64-1-pve (x86_64)
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The rclone config contents with secrets removed.
rclone mount --drive-impersonate admin@xxx --config=/root/.config/rclone/rclone_VFS.conf GdriveBackups: /var/lib/vz/GDriveBackup --allow-other --allow-non-empty --vfs-cache-mode writes --cache-dir /mnt/storage1tb/rclone_cache --drive-use-trash=false
[GdriveBackups]
type = drive
scope = drive
service_account_file = /root/gdrivejson.json
team_drive =