I encountered this in Solairs 10 5/08 SPARC.

The NFS client won't start due to a failed dependancy on rpc/keyserv.  If you ask SMF what's up, you're told the start method exited with $SMF_EXIT_ERR_CONFIG, or if you check the logs you see an exit status 96. A quick search pointed right to the problem: comp.unix.solaris post.

The fix is to set a domain name.  You can do this either by invoking the domainname command, i.e.,

domainname my.domain.com

Or, if you want to make this stick, you can edit /etc/defaultdomain, and then restart the domain identity SMF.

# echo "my.domain.com" > /etc/defaultdomain; svcadm restart identity:domain

There's no way around this that I can see, since the SMF start method is to execute /usr/bin/keyserv, which requires a secure rpc domain name.  From the keyserv manpage,

keyserv does not start up if the system does not have a secure rpc domain configured. Set up the domain name by using the /usr/bin/domainname command. Usually the svc:/system/identity:domain service reads the domain from /etc/defaultdomain. Invoking the domainname command without arguments tells you if you have a domain set up. 

Once your domain name is set, you can clear any maintenance states.

# svcadm clear rpc/keyserv
# svcadm clear nfs/client

Comments:

root@ECCAPP4 # svcs -l network/nfs/server
fmri svc:/network/nfs/server:default
name NFS server
enabled false
state disabled
next_state none
state_time Sun Apr 12 15:23:37 2009
logfile /var/svc/log/network-nfs-server:default.log
restarter svc:/system/svc/restarter:default
contract_id
dependency require_any/error svc:/milestone/network (online)
dependency require_all/error svc:/network/nfs/nlockmgr (online)
dependency optional_all/error svc:/network/nfs/mapid (online)
dependency require_all/restart svc:/network/rpc/bind (online)
dependency optional_all/none svc:/network/rpc/keyserv (maintenance)
dependency optional_all/none svc:/network/rpc/gss (online)
dependency require_all/error svc:/system/filesystem/local (online)
root@ECCAPP4 # svcs -a|grep nfs
disabled 15:23:37 svc:/network/nfs/server:default
online Apr_02 svc:/network/nfs/cbd:default
online Apr_02 svc:/network/nfs/mapid:default
online Apr_02 svc:/network/nfs/status:default
online Apr_02 svc:/network/nfs/nlockmgr:default
online Apr_02 svc:/network/nfs/client:default
online Apr_02 svc:/network/nfs/rquota:default
root@ECCAPP4 # svcs -d svc:/network/nfs/server
STATE STIME FMRI
online Apr_02 svc:/milestone/network:default
online Apr_02 svc:/system/filesystem/local:default
online Apr_02 svc:/network/rpc/bind:default
online Apr_02 svc:/network/nfs/mapid:default
online Apr_02 svc:/network/nfs/nlockmgr:default
online Apr_02 svc:/network/rpc/gss:default
maintenance 14:58:52 svc:/network/rpc/keyserv:default

iam unable to fix the problem plz help me ...

Posted by spandhan on April 12, 2009 at 12:57 AM EDT #

spandhan,

Have you set your domainname? What does 'svcs -xv rpc/keyserv' return?

~Jason

Posted by Jason Callaway on April 12, 2009 at 11:18 AM EDT #

Post a Comment:
  • HTML Syntax: NOT allowed

This blog copyright 2009 by Jason Callaway