How can I dynamically create NFS clients?

October 31, 2019 74 views

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?

1 Answer


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!

Have another answer? Share your knowledge.