Question

How can I dynamically create NFS clients?

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?


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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