We help IT Professionals succeed at work.

Solaris 10 RPC  and NFS start

gbcbr
gbcbr asked
on
4,891 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
Comment
Watch Question

Brian UtterbackPrinciple Software Engineer
CERTIFIED EXPERT

Commented:
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?

Author

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 ?
Brian UtterbackPrinciple Software Engineer
CERTIFIED EXPERT

Commented:
Did you look in the /var/svc/log/network-nfs-server:default.log file like the output said?

Author

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. ]

Author

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.

Author

Commented:
Especially why NFS server doesn't starts on reboot?
 
Brian UtterbackPrinciple Software Engineer
CERTIFIED EXPERT

Commented:
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.

Author

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

Author

Commented:
with reboot -- -r
Brian UtterbackPrinciple Software Engineer
CERTIFIED EXPERT

Commented:
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?

Author

Commented:
# /usr/sbin/shareall -F nfs
# grep nfs /etc/dfs/sharetab
/Documents      -       nfs     rw
Principle Software Engineer
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

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

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.