Re: Run 4 separate NFSv4.0/.1/.2 servers on 4 separate TCP ports on one Linux machine?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/25/25 11:04 AM, Takeshi Nishimura wrote:
> how can I run 4 separate NFSv4.0/4.1/4.2 servers on 4 separate TCP
> ports, say 2049, 12049, 22049, 32049, on the same Linux kernel, and
> have a separate exports file for each of them?

This question has been asked in the past. We've explored implementing it
with a single NFSD instance, but it looks difficult to impossible
without massive code changes.

The solution we recommend is to run separate NFSD instances in guests
(containers or qemu). The host system might provide a NAT routing
service that makes the guests appear on the same IP address but
different ports.

This has the benefit of providing administrative isolation between the
NFS services. It would work well with NFSv4, but would be somewhat
awkward for NFSv2/3 due to the required use of auxiliary protocols such
as MNT and NLM (and of course rpcbind).


-- 
Chuck Lever




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux