i am surprised to run into problems with the following attempt:
#/etc/exports
/path/to/dir1 10.10.2.3 (...)
/path/to/dir2 10.10.4.10 (...)
# server host
ip a
eth0 10.10.2.20
eth1 10.10.4.20
# client host
ip a
eth0 10.10.2.3
eth1 10.10.4.10
Setup:
- Server and client are configured both for NFSv4.2 only.
- Serverhost and client host both have a NIC in each of the above networks.
- Background: i hoped to improve performance and reliability by isolating the traffic generated by access to one of both directories, where bandwith saturation may occur.
Problem:
Only one of each share can be mounted at a time (each of them work individually equally well), but not both of them at the same time, from the same client.
Any attempt to mount the second share always throws:
mount.nfs: mounting 10.10.{2|4}.20:/path/to/dir{1“} failed, \
reason given by server: No such file or directory
Is this supposed to fail?
I expected to be able to access the shares from same client host via different NICs.