remote file source #141
Replies: 1 comment 1 reply
|
cool scenario! alright, say you have two servers, ST1 running copyparty and ST2 with additional storage. I think the most surefire way to solve this is with nbd, but it will have several disadvantages:
there is another approach, i think mergerfs should be fine as long as you keep the up2k databases on ST1 and only use it for data, but i'm still wary of recommending it, since I don't know how well it deals with the chunked uploading and stuff... Meanwhile, nbd is way simpler tech, and way easier to reason about and be confident that it will definitely work as intended, so let's continue with the nbd idea... run the following two commands on ST1, in two separate shells, to share ssh -L 5951:127.0.0.1:5951 root@ST2 'echo 127.0.0.1/32 >/tmp/nbd-allowlist; killall nbd-server; nbd-server -M 1 -l /tmp/nbd-whitelist -d 127.0.0.1:5951 /dev/sdc2'
rmmod nbd; modprobe nbd max_part=8; nbd-client 127.0.0.1 5951 /dev/nbd0 -b 4096; lsblkand then to explain what we just did -- on ST1, it created an ssh-tunnel for port 5951 to ST2 (so anything connecting to port 5951 on ST1 automagically connects to port 5951 on ST2 instead), and the tunnel performed some setup on ST2 before launching the nbd-server:
the second command connected to the nbd-server through port 5951 on ST1 (which is actually port 5951 on ST2), which created a virtual blockdevice on ST1 which mirrors the contents of the one on ST2 you'll see nbd0 listed on ST1 as a new blockdevice, with the same size as the physical device on ST2. At this point you can either one super-important thing is that
"primary stream" in old norwegian :D started using it as a joke but my coworkers love it hehe |
Uh oh!
There was an error while loading. Please reload this page.
bit of a weird situation here: my storage box provider caps each individual machine to 8tb, and adding more is only possible with another server.
ideally i would be able to access each machine from the same instance. i know i can do this with rclone's docker plugin and using something like a SFTP volume mount, but the storage box's docker interface doesn't allow me to install that. if this isn't possible then i'll probably just move copyparty to an actual server.
unrelated but what is "hovudstraum"? i couldn't find any results by searching lol
All reactions