Question

How can I dynamically create NFS clients?

Posted October 31, 2019 303 views
Storage

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?

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.

×
1 answer

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

Submit an Answer