Are you saying that when you create a NFS share, it doesn't remain shared?
On my Solaris 10 1/13 system, I can create a NFS share and it remains shared without any /etc/dfstab entry, even without a reboot.
Are the services running:
# svcs -a | grep nfs
online Feb_04 svc:/network/nfs/cbd:default
online Feb_04 svc:/network/nfs/mapid:default
online Feb_04 svc:/network/nfs/status:default
online Feb_04 svc:/network/nfs/nlockmgr:default
online Feb_04 svc:/network/nfs/client:default
online Feb_04 svc:/network/nfs/rquota:default
online Feb_04 svc:/network/nfs/server:default
What does the nfs-server log file say:
# more /var/svc/log/network-nfs-server:default.log
[ Jun 10 12:20:23 Disabled. ]
[ Jun 10 12:20:24 Rereading configuration. ]
[ Jun 10 12:20:43 Enabled. ]
[ Jun 10 12:21:17 Executing start method ("/lib/svc/method/nfs-server start") ]
[ Jun 10 12:21:17 Method "start" exited with status 0 ]
[ Jun 10 12:21:17 Stopping because all processes in service exited. ]
[ Jun 10 12:21:17 Executing stop method ("/lib/svc/method/nfs-server stop 61") ][ Jun 10 12:21:17 Method "stop" exited with status 0 ]
What type FS you need share ? ( UFS, ZFS or other ?).
Is rpcbind started,? ( ps -edaf | grep rpc )
Never mind. The problem was that /etc/dfs/sharetab went missing and nfs/server wont work without that. Created the file manually and rebooted the server. It's working now. issue resolved.
For UFS: need edit /etc/dfs/dfstab
For ZFS: need set properties for dataset.
File /etc/dfs/sharetab changed automaticaly when run command share.
NFS server will start in case /etc/dfs/dfstab have records or some ZFS dataset shared.
Records at /etc/dfs/dfstab for ZFS system may ignore.