"mount: File exists" when trying to mount a second NFS4/krb5 shares

Joachim Selke lists at joachim-selke.de
Sun Oct 22 15:35:17 EDT 2006


Trond Myklebust wrote:
> Why are you doing this in the first place? If you use nohide, then it
> should be quite unnecessary to do the above since that tells the server
> to allow your client to transparently cross the mountpoint.
> 
> In fact, the reason why you are seeing an EEXIST error there, is very
> likely to be because the 2.6.18 kernel on your client has already
> automounted it for you: 'cat /proc/mounts'.

Thanks for your comment. Unfortunately I don't see what I have to
change. If I just remove the "nohide" options then the mounted
directories are empty and the problem when trying to do the second mount
("file exists") is still there.

Hm, I think I got something wrong with NFS4, it seems to be quite
difficult to me. Maybe it is the best when I describe what I want to do.
It would be nice if you (or someone else) could give me a hint on how to
configure my client and server.

I have some directories on my server that I want to export to clients
using the krb5 security flavor. Say these directories are /dir1, /dir2
and /dir3.

I want two of these directories to be mounted by some client, say /dir1
(server) should be mounted to /import/dir1 (client) and /dir2 (server)
should be mounted to /import/dir2 (client). The directory /dir3 (server)
should not be mounted by the client.

What do I have to do?

Thanks,
Joachim


More information about the NFSv4 mailing list