Starting nfs/server

Hi,

I do not get nfs/server started.

bash-3.00# svcadm enable nfs/server

bash-3.00# svcs -a |grep nfs
disabled       21:44:36 svc:/network/nfs/cbd:default
disabled       21:44:36 svc:/network/nfs/client:default
disabled       21:44:51 svc:/network/nfs/rquota:default
disabled       22:03:03 svc:/network/nfs/server:default
online         21:44:48 svc:/network/nfs/mapid:default
online         21:44:48 svc:/network/nfs/status:default
online         21:44:48 svc:/network/nfs/nlockmgr:default

bash-3.00# svcs -l nfs/server
fmri         svc:/network/nfs/server:default
name         NFS server
enabled      false
state        disabled
next_state   none
state_time   Mon Jun 14 22:03:03 2010
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 (disabled)
dependency   optional_all/none svc:/network/rpc/gss (online)
dependency   require_all/error svc:/system/filesystem/local (online)

bash-3.00# cat /var/svc/log/network-nfs-server:default.log
[ Jun 14 22:03:03 Executing start method ("/lib/svc/method/nfs-server start") ]
[ Jun 14 22:03:03 Method "start" exited with status 0 ]
[ Jun 14 22:03:03 Stopping because all processes in service exited. ]
[ Jun 14 22:03:03 Executing stop method ("/lib/svc/method/nfs-server stop 97") ]
[ Jun 14 22:03:03 Method "stop" exited with status 0 ]
[ Jun 14 22:03:03 Executing start method ("/lib/svc/method/nfs-server start") ]
[ Jun 14 22:03:03 Method "start" exited with status 0 ]
[ Jun 14 22:03:03 Stopping because all processes in service exited. ]
[ Jun 14 22:03:03 Executing stop method ("/lib/svc/method/nfs-server stop 99") ]
[ Jun 14 22:03:03 Method "stop" exited with status 0 ]
[ Jun 14 22:03:03 Executing start method ("/lib/svc/method/nfs-server start") ]
[ Jun 14 22:03:03 Method "start" exited with status 0 ]
[ Jun 14 22:03:03 Stopping because all processes in service exited. ]
[ Jun 14 22:03:03 Executing stop method ("/lib/svc/method/nfs-server stop 101") ]
[ Jun 14 22:03:03 Method "stop" exited with status 0 ]
[ Jun 14 22:03:03 Executing start method ("/lib/svc/method/nfs-server start") ]
[ Jun 14 22:03:03 Method "start" exited with status 0 ]
[ Jun 14 22:03:03 Stopping because all processes in service exited. ]
[ Jun 14 22:03:03 Executing stop method ("/lib/svc/method/nfs-server stop 103") ]
[ Jun 14 22:03:03 Method "stop" exited with status 0 ]
[ Jun 14 22:03:03 Disabled. ]

Why does'nt the service start right?

have you edited /etc/dfs/dfstab? this file needs a minimum of ONE line (shared folder) for nfs server to start...

Yep that did the trick. Did'nt know that there must be an entry there to start. Also did'nt find it in the man pages that there must be an entry.

Thanks!

how can a service be started if there is nothing to do?

:wink:

Because it's added later :stuck_out_tongue: