I have one droplet that is a NFS host and others that are clients. I’d like to create clients dynamically. However, the NFS host requires a list of clients. Is there any way to use NFS when the number of clients will change dynamically? It doesn’t seem realistic to modify the files on the host and restart NFS.
I’m wondering whether I could use a range of IP addresses and use a private network for the clients? Or do I just have to use some other storage solution?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
Yes, in your /etc/exports file you should be able to specify an IP range, for example:
/mnt/your_shared_folder your_subnet/24(rw,sync,no_subtree_check)
Another thing that I could suggest is using the DigitalOcean block storage instead:
https://www.digitalocean.com/docs/volumes/
Hope that this helps! Regards, Bobby
Heya,
Yes, you can certainly design a dynamic setup for NFS clients, and using a private network with a range of IP addresses is a reasonable approach. This allows you to add and remove clients without manually modifying configuration files on the NFS server each time.
Here’s a high-level guide on how you might achieve this:
Example /etc/exports on the NFS server:
/path/to/export 10.0.0.0/24(rw,sync,no_root_squash)
This example allows any IP in the range 10.0.0.1 to 10.0.0.254 to connect with read-write access.
Remember to test this setup in a controlled environment to ensure that it meets your security and performance requirements. Also, make sure to have proper backups and monitoring in place.
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.