Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello friends
I am facing problems with NFS,I shared one mount point /home and one directory /dring in /etc/dfs/dfstab file. Then I stopped and started the rpc service in /etc/init.d and if I try to start the nfs.server service it is saying there is no entries in /etc/dfs/dfstab file. How to rectify this problem. I am unable to solve this problem, please kindily help me.
#vi /etc/dfs/dfstab
share -F nfs /home
share -F nfs /dring
:wq!
#cd /etc/init.d
then I started rpc service successfully
#./rpc stop
#./rpc start
#./nfs.server stop
if I try to start nfs.server service
#./nfs.server start
it is giving below error message
/etc/dfs/dfstab file does'nt contain any entry's
try pgrep -l nfsd and mountd. But there is a catch here. /home is to be used for automounting home directories and you should share /export/home, not /home. In solaris, /home and /net are used exclusively for autofs.
Try this:
echo share /dring >> /etc/dfs/dfstab
/etc/init.d/nfs.server start
dfshares <- shows what you are sharing
nfsd and mountd should be running now.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
In solaris, /home and /net are used exclusively for autofs.
Well, better to write they are by default used by autofs, nothing forbid to comment out the /home map, and have this directory behaving as usual.
This doesn't mean I recommend to do it, the automounter is a great feature.
I agree. We typically use /home to automount /export/home when using a naming service like nis or nisplus. Also, notice that if you create a user
account with smc (why would you, well that is a different story), it points to /home rather than /export/home and automatically mount /export/home itself.
But I like autofs as well, so I would never modify /etc/auto_master to then allow /home to behave as a "normal" directory.
I am glad that it worked for you but with nfs, you should have been able to share
that directory (/dring?) either rw or ro. The default is rw. So I don't see why that did not work. You syntax looked correct at the top of the post. Just a note, you can skip the -F nfs since that is the default as well (check out /etc/dfs/fstypes). Also I don't know if you are running 10 or below but if you are running 10, you could have typed svcs -a | grep nfs to see the state of the nfs services. It's kind of cool that they left /etc/init.d/nfs.server for backward compatibility even though it calls upon svcadm.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.