Solved

Solaris 10 RPC  and NFS start

Posted on 2010-09-18
13
3,634 Views
Last Modified: 2012-05-10
# 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
0
Comment
Question by:gbcbr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 5
13 Comments
 
LVL 22

Expert Comment

by:blu
ID: 33711275
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
 

Author Comment

by:gbcbr
ID: 33711307
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
 
LVL 22

Expert Comment

by:blu
ID: 33711605
Did you look in the /var/svc/log/network-nfs-server:default.log file like the output said?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:gbcbr
ID: 33711631

[ ñåíò. 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
 

Author Comment

by:gbcbr
ID: 33711659
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
 

Author Comment

by:gbcbr
ID: 33711677
Especially why NFS server doesn't starts on reboot?
 
0
 
LVL 22

Expert Comment

by:blu
ID: 33711703
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
 

Author Comment

by:gbcbr
ID: 33711714

#      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
 

Author Comment

by:gbcbr
ID: 33711716
with reboot -- -r
0
 
LVL 22

Expert Comment

by:blu
ID: 33711769
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
 

Author Comment

by:gbcbr
ID: 33713775
# /usr/sbin/shareall -F nfs
# grep nfs /etc/dfs/sharetab
/Documents      -       nfs     rw
0
 
LVL 22

Accepted Solution

by:
blu earned 500 total points
ID: 33716161
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
 

Author Comment

by:gbcbr
ID: 33716364
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question