svc: failed to register lockdv1 RPC service (errno 97).

When I tried to start ‘nfs-kernel-server’, it failed.

# /etc/init.d/nfs-kernel-server start
Exporting directories for NFS kernel daemon....
Starting NFS kernel daemon: nfsd svcgssd failed!

syslogs:

Nov 11 23:32:04 nasbox kernel: [ 8106.165582] nfsd: last server has exited, flushing export cache
Nov 11 23:32:05 nasbox kernel: [ 8107.240419] svc: failed to register lockdv1 RPC service (errno 97).
Nov 11 23:32:05 nasbox kernel: [ 8107.245528] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
Nov 11 23:32:05 nasbox kernel: [ 8107.245566] NFSD: starting 90-second grace period
Nov 11 23:32:05 nasbox rpc.svcgssd[26744]: ERROR: GSS-API: error in gss_acquire_cred(): Unspecified GSS failure. Minor code may provide more information - Key table entry not found
Nov 11 23:32:05 nasbox rpc.svcgssd[26744]: unable to obtain root (machine) credentials
Nov 11 23:32:05 nasbox rpc.svcgssd[26744]: do you have a keytab entry for nfs/@ in /etc/krb5.keytab?

If you have DNS server running, make sure you remove the following lines from /etc/hosts:

127.0.0.1 nasbox localhost
::1 nasbox localhost ip6-localhost ip6-loopback

However, if you don’t have DNS server running to manage your domain then you need to explicitly assign the IP address to the domain. Adjust the IP address and hostname to your environment:

#192.168.1.123 nasbox.myserver.com nasbox

In my case, I could successfully start nfs-kernel-server:

# /etc/init.d/nfs-kernel-server start
Exporting directories for NFS kernel daemon....
Starting NFS kernel daemon: nfsd svcgssd mountd.

About these ads

2 thoughts on “svc: failed to register lockdv1 RPC service (errno 97).

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s