I'm having some strange issues with my nfs setup, both speed and mount
I am running an ldap/kerberos/nfs4 environment with ubuntu 10.04 servers
and clients only.
- one kdap/kerberos(mit) host
- one nfs host
- one dhcp/dns host
- a number of other servers running ldap authentication and nfs4/krb mounts
- a number of clients running the same setup
All machines, which are a member of the ldap domain, mounts users home
directories from the fileserver using kerberos nfs4 shares. The mounting
is done by autofs which gets its mount definitions from the ldap directory.
Most of the time, it all works flawlessly, but every now and then,
machines (clients and servers) starts to lock up when logging in over ssh.
When it happens, all users (except local) cannot get access to their home
directories, and therefore cannot get a shell going. Users can type in
their password, and the MOTD is printed, but it then locks up.
I've been searching the internet up and down while trying a heap of
different proposed solutions, but nothing seems to work.
What I've tried:
- disable firewalls on server and client
- checking that the portmap service is running on the clients and server
- doing portmap checks (rpcinfo -[tu] <server> <program> <version>),
which seems to be working fine both ways (server->client, client->server)
- restarting the nfs-kernel-server on the server and all services
installed by the nfs-common package on the clients
- changing rsize and wsize on the mounts, both are currently set to 4096
- async and sync, wdelay and no_wdelay, intr and no intr exports
- checked network interfaces on server and client, neither are seemingly
reporting any errors
- enabled debugging for nfs on the server and clients, and I cannot see
anything other then these:
* svc: failed to register lockdv1 RPC service (errno 97).
* NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery
* NFSD: starting 90-second grace period
* /export/fileserver/homes and /export/fileserver/homes have same
filehandle for gss/krb5, using first
- one I have a feeling is the source of some issues are this message:
* nslcd: [a1da7b] nslcd_passwd_byname(nfs/sega.example.com):
invalid user name
- but it shouldn't prevent the shares from being mounted?
- probably a few other this which I have forgotten...