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
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.


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:

Hope that this helps! Regards, Bobby