cannot enable nfs server

Hello --

I have some problem to enable the nfs server on a Ultra60 running Solaris 10 06/06.

First, svcs tells me the service is not enable:

bash-3.00# svcs -l /network/nfs/server

fmri svc:/network/nfs/server:default

name NFS server

enabledfalse

statedisabled

next_statenone

state_timeTue Aug 22 11:11:12 2006

logfile/var/svc/log/network-nfs-server:default.log

restartersvc:/system/svc/restarter:default

contract_id

dependencyrequire_any/error svc:/milestone/network (online)

dependencyrequire_all/error svc:/network/nfs/nlockmgr (online)

dependencyoptional_all/error svc:/network/nfs/mapid (online)

dependencyrequire_all/restart svc:/network/rpc/bind (online)

dependencyoptional_all/none svc:/network/rpc/keyserv (online)

dependencyoptional_all/none svc:/network/rpc/gss (online)

dependencyrequire_all/error svc:/system/filesystem/local (online)

Then, I tries to enable it using svcadm:

bash-3.00# svcadm enable /network/nfs/server

It returns to the prompt silently. However, when I check the status using svcs, it shows the service is still disabled:

bash-3.00# svcs -l /network/nfs/server

fmri svc:/network/nfs/server:default

name NFS server

enabledfalse

statedisabled

next_statenone

state_timeTue Aug 22 11:35:25 2006

logfile/var/svc/log/network-nfs-server:default.log

restartersvc:/system/svc/restarter:default

contract_id

dependencyrequire_any/error svc:/milestone/network (online)

dependencyrequire_all/error svc:/network/nfs/nlockmgr (online)

dependencyoptional_all/error svc:/network/nfs/mapid (online)

dependencyrequire_all/restart svc:/network/rpc/bind (online)

dependencyoptional_all/none svc:/network/rpc/keyserv (online)

dependencyoptional_all/none svc:/network/rpc/gss (online)

dependencyrequire_all/error svc:/system/filesystem/local (online)

I cannot find any useful info from the log file:

[ Aug 22 11:07:25 Enabled. ]

[ Aug 22 11:07:25 Executing start method ("/lib/svc/method/nfs-server start") ]

[ Aug 22 11:07:26 Method "start" exited with status 0 ]

[ Aug 22 11:07:26 Stopping because all processes in service exited. ]

[ Aug 22 11:07:26 Executing stop method ("/lib/svc/method/nfs-server stop 97") ]

[ Aug 22 11:07:26 Method "stop" exited with status 0 ]

[ Aug 22 11:07:26 Executing start method ("/lib/svc/method/nfs-server start") ]

[ Aug 22 11:07:26 Method "start" exited with status 0 ]

[ Aug 22 11:07:26 Stopping because service disabled. ]

[ Aug 22 11:07:26 Executing stop method ("/lib/svc/method/nfs-server stop 99") ]

[ Aug 22 11:07:26 Method "stop" exited with status 0 ]

[ Aug 22 11:11:11 Enabled. ]

[ Aug 22 11:11:11 Executing start method ("/lib/svc/method/nfs-server start") ]

[ Aug 22 11:11:11 Method "start" exited with status 0 ]

[ Aug 22 11:11:11 Stopping because all processes in service exited. ]

[ Aug 22 11:11:11 Executing stop method ("/lib/svc/method/nfs-server stop 101")

]

[ Aug 22 11:11:12 Method "stop" exited with status 0 ]

[ Aug 22 11:11:12 Executing start method ("/lib/svc/method/nfs-server start") ]

[ Aug 22 11:11:12 Method "start" exited with status 0 ]

[ Aug 22 11:11:12 Stopping because service disabled. ]

[ Aug 22 11:11:12 Executing stop method ("/lib/svc/method/nfs-server stop 103")

]

[ Aug 22 11:11:12 Method "stop" exited with status 0 ]

Any help will be appreciated.

--taolizhong

[3656 byte] By [taolizhong] at [2007-11-26 9:37:52]
# 1
The problem has been solved. It was because there was no share entry in /etc/dfs/dfstab. It appears that if there are no shares the services won't start.--Taolizhong
taolizhong at 2007-7-7 0:32:02 > top of Java-index,Solaris Operating System,Solaris 10 Features...