Solaris 10 RPC and NFS start

# svcs -x svc:/network/rpc/bind
svc:/network/rpc/bind:default (RPC bindings)
 State: online since 18 ¿¿¿¿¿¿¿¿ 2010 ¿. 19:20:38 EEST
   See: rpcbind(1M)
   See: /var/svc/log/network-rpc-bind:default.log
Impact: None.
# rpcbind -d
checking netid "udp"
        device /dev/udp present
        netdir_getbyname for HOST_SELF, service service "<any>" succeeded
        netdir_getbyname for HOST_SELF_CONNECT, service service "<any>" succeede d
        netdir_getbyname for HOST_SELF, service service "rpcbind" succeeded
        netdir_getbyname for HOST_SELF_CONNECT, service service "rpcbind" succee ded
checking netid "tcp"
        device /dev/tcp present
        netdir_getbyname for HOST_SELF, service service "<any>" succeeded
        netdir_getbyname for HOST_SELF_CONNECT, service service "<any>" succeede d
        netdir_getbyname for HOST_SELF, service service "rpcbind" succeeded
.
.
.
Found CLTS loopback transport
Found COTS loopback transport
Found COTS ORD loopback transport
Sep 18 19:45:58 lionfx rpcbind: [ID 362760 daemon.alert] no value for config/ena ble_tcpwrappers (cannot use unset argument). Using default "false"
Sep 18 19:45:58 lionfx rpcbind: [ID 362760 daemon.alert] no value for config/ver bose_logging (cannot use unset argument). Using default "false"
Sep 18 19:45:58 lionfx rpcbind: [ID 362760 daemon.alert] no value for config/all ow_indirect (cannot use unset argument). Using default "true"
Sep 18 19:45:58 lionfx rpcbind: [ID 362760 daemon.alert] no value for config/loc al_only (cannot use unset argument). Using default "false"

# /usr/lib/nfs/nfsd -a
# svcadm restart svc:/network/nfs/server
# svcs -x svc:/network/nfs/server
svc:/network/nfs/server:default (NFS server)
 State: disabled since 18 ¿¿¿¿¿¿¿¿ 2010 ¿. 19:20:29 EEST
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: nfsd(1M)
Impact: This service is not running.
#

Please advice
gbcbrAsked:
Who is Participating?
 
Brian UtterbackConnect With a Mentor Principle Software EngineerCommented:
Ok, do this (as root):

svcadm disable nfs/server
truss -o /tmp/truss.out -wall -rall -faled -p `pgrep svc.startd` &
  (note pid of the truss background process)
svcadm enable nfs/server
svcs -xv nfs/server
  (once you see that the service is disabled, do the following)
kill pid-from-truss
  (where pid-from-truss is the pid from the truss above)

Post the /tmp/truss.out file and the entries from /var/svc/log/network-nfs-server:default.log
that correspond to this attempt.
0
 
Brian UtterbackPrinciple Software EngineerCommented:
I don't know what you are asking. You seem to be starting the services by hand and using SMF. What happens when you just reboot the system and don't start anything by hand, what do you get?
0
 
gbcbrAuthor Commented:
I don't understand why even after reboot I have :
# rpcinfo -p
   program vers proto   port  service
    100000    4   tcp    111  rpcbind
    100000    3   tcp    111  rpcbind
    100000    2   tcp    111  rpcbind
    100000    4   udp    111  rpcbind
    100000    3   udp    111  rpcbind
    100000    2   udp    111  rpcbind
1073741824    1   tcp  32771
    100024    1   udp  32776  status
    100024    1   tcp  32772  status
    100133    1   udp  32776
    100133    1   tcp  32772
    100021    1   udp   4045  nlockmgr
    100021    2   udp   4045  nlockmgr
    100021    3   udp   4045  nlockmgr
    100021    4   udp   4045  nlockmgr
    100021    1   tcp   4045  nlockmgr
    100021    2   tcp   4045  nlockmgr
    100021    3   tcp   4045  nlockmgr
    100021    4   tcp   4045  nlockmgr
    100011    1   udp  32779  rquotad
    100422    1   tcp  32776
    100422    2   tcp  32776
    100229    1   tcp  32777  metad
    100229    2   tcp  32777  metad
    100242    1   tcp  32778  metamedd
    100230    1   tcp  32779  metamhd
    100001    2   udp  32780  rstatd
    100001    3   udp  32780  rstatd
    100001    4   udp  32780  rstatd
    100002    2   tcp  32780  rusersd
    100002    3   tcp  32780  rusersd
    100002    2   udp  32781  rusersd
    100002    3   udp  32781  rusersd
    100083    1   tcp  32781
    100068    2   udp  32782
    100068    3   udp  32782
    100068    4   udp  32782
    100068    5   udp  32782
    300598    1   udp  32791
    300598    1   tcp  32782
 805306368    1   udp  32791
 805306368    1   tcp  32782
    100249    1   udp  32792
    100249    1   tcp  32783
1289637086    5   tcp  32844
1289637086    1   tcp  32844
# svcadm enable nfs/server
# svcs -x nfs/server
svc:/network/nfs/server:default (NFS server)
 State: disabled since Sun Sep 19 17:03:29 2010
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: nfsd(1M)
   See: /var/svc/log/network-nfs-server:default.log
Impact: This service is not running.
# svcadm restart nfs/server
# svcs -x nfs/server
svc:/network/nfs/server:default (NFS server)
 State: disabled since Sun Sep 19 17:03:29 2010
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: nfsd(1M)
   See: /var/svc/log/network-nfs-server:default.log
Impact: This service is not running.

Why NFS server don't start after  # vcadm restart nfs/server ?
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
Brian UtterbackPrinciple Software EngineerCommented:
Did you look in the /var/svc/log/network-nfs-server:default.log file like the output said?
0
 
gbcbrAuthor Commented:

[ ñåíò. 19 17:58:41 Enabled. ]
[ ñåíò. 19 17:58:41 Executing start method ("/lib/svc/method/nfs-server start") ]
[ ñåíò. 19 17:58:41 Method "start" exited with status 0 ]
[ ñåíò. 19 18:06:16 Executing start method ("/lib/svc/method/nfs-server start") ]
Usage: share [-o options] [-d description] pathname [resource]
[ ñåíò. 19 18:06:16 Method "start" exited with status 0 ]
[ ñåíò. 19 18:06:16 Stopping because all processes in service exited. ]
[ ñåíò. 19 18:06:16 Executing stop method ("/lib/svc/method/nfs-server stop 61") ]
[ ñåíò. 19 18:06:16 Method "stop" exited with status 0 ]
[ ñåíò. 19 18:06:16 Executing start method ("/lib/svc/method/nfs-server start") ]
Usage: share [-o options] [-d description] pathname [resource]
[ ñåíò. 19 18:06:16 Method "start" exited with status 0 ]
[ ñåíò. 19 18:06:16 Stopping because all processes in service exited. ]
[ ñåíò. 19 18:06:16 Executing stop method ("/lib/svc/method/nfs-server stop 69") ]
[ ñåíò. 19 18:06:17 Method "stop" exited with status 0 ]
[ ñåíò. 19 18:06:17 Disabled. ]
0
 
gbcbrAuthor Commented:
I've reinstalled Solaris 10 to have it virgin, in installation procedure I choose  NFSv4 delivered by system and I don't understand why it doesn't work properly.
0
 
gbcbrAuthor Commented:
Especially why NFS server doesn't starts on reboot?
 
0
 
Brian UtterbackPrinciple Software EngineerCommented:
There is something wrong with one of the entries (probably the only entry) in /etc/dfs/dfstab. Please post the contents of that file.

Since the only entry is incorrect, no filesystems are shared, so NFS doesn't start.
0
 
gbcbrAuthor Commented:

#      Place share(1M) commands here for automatic execution
#      on entering init state 3.
#
#      Issue the command 'svcadm enable network/nfs/server' to
#      run the NFS daemon processes and the share commands, after adding
#      the very first entry to this file.
#
#      share [-F fstype] [ -o options] [-d "<text>"] <pathname> [resource]
#      .e.g,
#      share  -F nfs  -o rw=engineering  -d "home dirs"  /export/home2

share -F nfs -o rw /Documents

0
 
gbcbrAuthor Commented:
with reboot -- -r
0
 
Brian UtterbackPrinciple Software EngineerCommented:
Does /Documents exist? Try running "/usr/sbin/shareall -F nfs", what does it output? After that run
grep nfs /etc/dfs/sharetab
What does that print?
0
 
gbcbrAuthor Commented:
# /usr/sbin/shareall -F nfs
# grep nfs /etc/dfs/sharetab
/Documents      -       nfs     rw
0
 
gbcbrAuthor Commented:
Thank you very much for your advises,  I start nfs server
svcadm -v enable -r svc:/network/nfs/server
reboot -- -r
now it starts from reboot
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.