1y
Hey people: it’s occurring to me that might not actually be the best way to do what I’m doing. So: if you had two Debian servers on a vpn, both with 1 gig fiber links to the internet, in cities 100 km apart, how would you go about having shared filesystems between them? Right now I am using rclone mount with sftp. Is there a less janky way?
8
7
1
0

User avatar
Russ O @russ@cupoftea.social
1y
@fastfinge are you aware rclone has a cache mount type (I forget details)? You could stack that on top of the sftp mount and it might be a bit smoother.
1
0
1
0
@russ I am! But nfs looks more like what I wanted.
0
0
0
0
User avatar
Adam MacLeod @adam@adamm.cc
1y
@fastfinge cifs, nfs, sshfs? Lots of ways less janky than rclone mount.
0
0
0
0
1y
Thanks for the help, everyone! is the way to go, and a lot simpler than I thought. For anyone discovering this later, the guide I'm using is this one: github.com/zilexa/Homeserver/tree/master/Filesystems-guide/networkshares_HowTo-NFSv4.2 Credits to everyone for the suggestions, ideas, and assurance that this isn't going to be as hard as I thought it would be: @yo, @dlakelan, @tripplehelix@fosstodon.org, @quanin, @modulux,
1
7
7
0
User avatar
Daniel Lakeland @dlakelan@mastodon.sdf.org
1y
@fastfinge
BTW Pretty sure the /srv stuff isn't even necessary anymore if you share more than one folder.
@yo @tripplehelix@fosstodon.org @quanin @modulux
0
0
1
0
User avatar
James Scholes @jscholes@dragonscave.space
1y
@fastfinge Do they need to be shared, or are you looking for eventual consistency? Because my first answer is that I wouldn't; I'd locally cache the data for some period of time be it seconds, minutes, hours or days, and then batch-sync it on a schedule. Removes an entire layer of complexity from proceedings.
1
0
0
0
@jscholes They need to be shared. The machine that needs to act on the files doesn't have enough space to store the files.
1
0
0
0
User avatar
James Scholes @jscholes@dragonscave.space
1y
@fastfinge I'd probably still be looking at a rotating sync. Grab some files, work on them, upload the results, delete and repeat.
1
0
0
0
@jscholes Right, but we don't know what files we're going to need until we need them. And we need to know what files are available at all times. So now we're into keeping an updated list in sync between two machines, and doing caching and batch syncs, and this is all starting to sound like a filesystem.
1
0
0
0
User avatar
James Scholes @jscholes@dragonscave.space
1y
@fastfinge Fair enough. Not knowing what you're trying to achieve, I can't offer much more.
1
0
0
0
@jscholes NFS is pretty much what I want. In short, I'm managing my dozens of Linux ISO's and hours of public domain video, but the box that actually downloads the ISO's is on a different network from the one that requests, serves, and indexes them.
0
0
0
0
User avatar
James H @quanin@allovertheplace.ca
1y
@fastfinge I feel like you might be able to accomplish it with an NFS mount, but I need to know more about how that shared filesystem is handled. Is it hosted on a drive belonging to one of your servers? Is it in object storage?
1
0
0
0
@quanin One server has all the storage, and the other has all the cpu and ram. The first server is just packed with 20 tb spinning discs, and enough cpu and ram to serve files.
0
0
0
0
User avatar
modulux @modulux@node.isonomia.net
1y
@fastfinge I haven't actually set this up before, but NFS seems like the way to go around this (network filesystem).
1
0
0
0
@modulux The thing that scares me about nfs is that it’s an ancient protocol, and authentication and encryption feel like a bolted on mess. Especially because I haven’t set up Pam or whatever to share accounts between the systems. So I’m confused about what happens when nfs tries to sync permissions.
2
0
0
0
User avatar
modulux @modulux@node.isonomia.net
1y
@fastfinge It's ancient, but there's been relatively newer versions. That said I'm only talking from second-hand knowledge since I never needed to set this up. Another option you might consider is sshfs.
2
0
0
0
@modulux I think sshfs is what rclone uses underneath?
0
0
0
0
User avatar
Alex @yo@alex.femto.pub
1y
@modulux @fastfinge NFS (even v3) with a VPN would be fine. I use it and works fine. I proposed Syncthing in the top post of this thread too.

There's a distinct lack of WAN-friendly shared filesystems. So I would suggest either VPN + traditional shared filesystem, syncthing, or something SSH-based (like the rclone you are already using, or the already suggested sshfs).
0
0
1
0