Sharing between 2 servers for storage.
I am quickly running out of space due to new signups I host with hostinger where the price is great, I have a KVM 8 server with them with 400gb of space,the biggest they do and none expandable on disk space. I keep reading a lot on here especially @Romulus posts and questions, Now I do not have much time left to make decissions I would like to stay with hostinger self hosted KVM8 as the price is great, I have a few KVM 8 servers with them one of them is empty , How can I use this for storage to daisy chain them just for hard drive usage purpose. Also I want to limit down time on the server while I do this .
I look forward to any response and guidance and thank you I appreciate your knowledge
Simon
- 128
Comments
https://www.youtube.com/watch?v=ncQBiCCXehs
Also a simple setup for Permanent NFS Setup for UNA APP on Debian
NFS Server Setup
sudo apt update sudo apt install -y nfs-kernel-server
sudo mkdir -p /mnt/storage sudo chown -R nobody:nogroup /mnt/storage sudo chmod 775 /mnt/storage
Edit
/etc/exports
:10.0.0.0/24
→ your private networkall_squash, anonuid=33, anongid=33
→ maps all files towww-data
(uid 33) for proper UNA APP permissionssudo ufw allow from 10.0.0.0/24 to any port nfs
NFS Client Setup (UNA APP Server)
sudo apt update sudo apt install -y nfs-common
sudo mkdir -p /var/www/una/storage sudo chown www-data:www-data /var/www/una/storage sudo chmod 775 /var/www/una/storage
sudo mount -t nfs <NFS_SERVER_IP>:/mnt/storage /var/www/una/storage
Check:
Make NFS Mount Permanent
/etc/fstab
:<NFS_SERVER_IP>:/mnt/storage /var/www/una/storage nfs defaults,_netdev,auto 0 0
_netdev
→ ensures mount waits for networkauto
→ mounts automatically on bootNo errors → mount will survive reboots.
Summary
/var/www/una/storage
www-data
💡 Recommendations for NFS Setup
nofile
limits to avoid errors such as “Too many open files”.⚠️ Note:
NFS is a simple and functional solution for temporary storage or basic setups. However, it does not scale well with multiple volumes or high traffic. If you want a cloud-ready setup, NFS can be a starting point, but the recommended long-term approach is OpenStack with a dedicated storage backend for performance and scalability.
👉 In short: dedicate hardware for NFS, configure limits, isolate storage traffic, and use NFS as a stepping stone toward a scalable cloud infrastructure.
⚠️ IMPORTANT NOTICE
✨ Happy coding!
Absolutely amazing, What a great asset to una @Romulus
⚠️ Disclaimer
nofile
limits to avoid errors such as “Too many open files”.On a VPS, the open files limit (
nofile
) can be set by the provider, and in many cases, it cannot be fully modified by a normal user or even by root.Some details:
/etc/security/limits.conf
or/etc/systemd/system.conf
//etc/systemd/user.conf
, but on a VPS these changes may be ignored if the provider enforces restrictions./etc/security/limits.conf
:If you use a VPS and the
nofile
limit is too low, you won’t be able to run NFS + UNA at full capacity without restrictions. A dedicated server or fully controllable VPS is recommended.For optimal performance and reliability, a dedicated server with two disks in RAID for the operating system and two separate disks in RAID for NFS storage is recommended. You need to be aware that on a VPS even KVM-based, you have limited control and can’t do too much. Also, make sure to read your provider’s terms and conditions: modifying limits could be considered a violation of their usage policies, and your contract could be terminated. Therefore, always request permission from your provider first.
DOCS:
I really appreciate your help. With kindest appreciation Simon. I will study and come back to you Thanks
Simon, honestly, instead of paying for multiple KVM servers and creating extra points of failure, you’d be better off with a dedicated server at Hetzner.
Comparison:
2x Hostinger KVM 8 – €19.99/month (renews at €49.99/month)
Hetzner Auction Dedicated (Budget option) – €41.29/month
Hetzner Auction Dedicated (Performance / Long-term option) – ~ €103.17/month
👉 For nearly the same price as two KVM 8s, the i7 option gives you far more RAM and storage, with no need to daisy-chain servers.
👉 And if you want something more powerful and future-proof, the i9 option with nearly 9 TB of total SSD storage is still very reasonable at ~€103/month.
I also recommend enabling Hetzner’s backup service then you’ll be fully covered.
Hetzner also provides an S3-compatible storage API you can use as a CDN. You can even create internal private networks between servers to scale later.
Honestly, I don’t see any reason to stay stuck with VPS when you’re past the beginner stage. VPS is fine for tuild cheap private cloud , or testing apps, but not for production. Spending time trying to daisy chain VPS instances for storage is, in my opinion, a mistake.
You can read all the documentation you want, but without real power your site will stay in the same place. If you want to grow profesional website, go to dedicated servers, an then plan ahead and build a private cloud, and you’ll be in a much stronger position. If you don't like Hetzner, there are other providers.
Without investment you can't have expectations. From my point of view, this topic is closed. Good luck