New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Best way to expand NextCloud storage?
Hello,
I have vps1 (4c/8GB/60GB SSD) and vps2 (1c/1GB/1TB HDD)
Want to install NextCloud on vps1, but use the storage from vps2 as default, instead of mounting as an external drive. (Since mounting will be common storage, this NC instance will be shared with a few friends, we'd like to have it like how Google Drive Family plan works)
I tried to mount a directory from vps2 using sshfs, but it was painfully slow and unusable.
Is there any way to do this?
Any ideas or suggestions are appreciated!
Comments
Mount via NFS or iSCSI.
There are faster than sshfs due to absence of FUSE layer.
I would go the NFS over Wireguard route. NFS should not be used directly over an untrusted network, and Wireguard is the way to make NFS secure with the smallest footprint.
Hope that your vps1 and vps2 have close location
I've done with nfs + wireguard as Val mentioned.
Reference:
https://d.sb/2020/12/nfs-howto
https://alexdelorenzo.dev/linux/2020/01/28/nfs-over-wireguard.html
Why not install Minio on the storage VPS (vps2) and configure Nextcloud to use it as an S3-compatible storage as primary storage? Docs here: https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/primary_storage.html
You probably don't want to hear this, but I suspect that the most robust/reliable/carefree solution longer term would be to replace vps1 and vps2 with a dedi (or with a VPS like vps1 but with much more storage).
Unless you have private networking between them, you'll probably eat up the lower bandwidth limit on the smaller VPS.
In other words, you can do this on HostHatch in same datacenter and likely won't experience noticeable lag.