is it possible to export more than one nfs share for a single client? in my /etc/export i have:

 /share/dir1  client1_hostname*(rw,fsid=0,sync,no_root_squash)
 /share/dir2  client1_hostname*(rw,fsid=0,sync,no_root_squash)

on the client side when i mount the directries

 mount -t  nfs server_ip:/share/dir1 /client/dir1
 mount -t  nfs server_ip:/share/dir2 /client/dir2

the mount is successfuly, but both mounts end up looking at the first exported directory from the server.

is what i am trying to do possible?

Regards and thanks.


The method is valid but I believe the issue is that you've got fsid=0 set on both. You do not need to set fsid. Remove it, and rexport with exportfs -r -a

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.