Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable id_mapping on the client #185

Closed
kayiwa opened this issue Feb 8, 2024 · 1 comment · Fixed by #232
Closed

enable id_mapping on the client #185

kayiwa opened this issue Feb 8, 2024 · 1 comment · Fixed by #232
Assignees

Comments

@kayiwa
Copy link
Collaborator

kayiwa commented Feb 8, 2024

nfs needs id_mapping enabled. In order to do this the client file at

/sys/module/nfs/parameters/nfs4_disable_idmapping should be set to N

this may need a copy file instead of a line in file.

@rlskoeser
Copy link
Contributor

I think I've finally figured out the last piece of the nfs + idmap puzzle, and why it was apparently working in production but not staging. The config mentioned above apparently does not matter (it's only used when some other configuration is set that we're not using (?!)). What does matter is the domain in the idmapd.conf file - and because of the way we're setting it (using lineinfile), we ended up with multiple domains, which confused things (or at least confused me).

I figured out that you can check cached nfs-idmap resolver keys by running:

sudo nfsidmap -l

example output:

3 .id_resolver keys found:
  gid:users@lib-fs-staging.princeton.edu
  gid:conan@lib-fs-staging.princeton.edu
  uid:conan@lib-fs-staging.princeton.edu

It seems that these are only loaded after you've listed the contents of the files on the mount point. When I ran it before doing that I didn't get any values.

The domain in the idmap file needs to match that domain - i.e., it needs to match the nfs server name and not use the .princeton.edu domain as I'd thought was necessary at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants