Solved

Solaris 10 RPC  and NFS start

Posted on 2010-09-18
13
3,464 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
  • 8
  • 5
13 Comments
 
LVL 22

Expert Comment

by:blu
Comment Utility
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
Comment Utility
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
Comment Utility
Did you look in the /var/svc/log/network-nfs-server:default.log file like the output said?
0
 

Author Comment

by:gbcbr
Comment Utility

[ ñåíò. 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
Comment Utility
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
Comment Utility
Especially why NFS server doesn't starts on reboot?
 
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 22

Expert Comment

by:blu
Comment Utility
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
Comment Utility

#      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
Comment Utility
with reboot -- -r
0
 
LVL 22

Expert Comment

by:blu
Comment Utility
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
Comment Utility
# /usr/sbin/shareall -F nfs
# grep nfs /etc/dfs/sharetab
/Documents      -       nfs     rw
0
 
LVL 22

Accepted Solution

by:
blu earned 500 total points
Comment Utility
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
Comment Utility
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now