LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This 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


Reply
  Search this Thread
Old 01-18-2006, 08:07 AM   #1
saradhi
LQ Newbie
 
Registered: Nov 2005
Location: india
Posts: 2

Rep: Reputation: 0
facing problems with nfs


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.
 
Old 01-18-2006, 08:30 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Post your /etc/dfs/dfstab file content, the command used to restart the service and the error message returned.
 
Old 01-18-2006, 08:45 AM   #3
saradhi
LQ Newbie
 
Registered: Nov 2005
Location: india
Posts: 2

Original Poster
Rep: Reputation: 0
#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
 
Old 01-18-2006, 11:06 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What happens if you directly run the share commands:
Code:
share -F nfs /home
share -F nfs /dring
 
Old 01-31-2006, 05:13 PM   #5
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
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.
 
Old 02-01-2006, 03:29 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 02-01-2006, 05:14 AM   #7
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
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.
 
Old 02-01-2006, 01:29 PM   #8
qs_tahmeed
Member
 
Registered: Nov 2003
Location: Bangladesh
Posts: 101

Rep: Reputation: 15
Hello!

I may be all wrong but I put an "-o ro" at the "share -F nfs /dir" line when I saw
that kind of message during NFS Setup.

In my case it fixed the problem.

Cheers ....
 
Old 02-02-2006, 06:12 AM   #9
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
Qs_tahmeed:

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.

But good for you anyhow
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iam facing sound problems with asterisk Jimmy911 Fedora 2 03-31-2005 01:51 PM
newbie facing some ambiguities ahmed_alzahrani Linux From Scratch 10 11-29-2004 06:54 AM
facing problems recompiling kernel 2.6.5 in Fedora Core 2 fawkes.phoenix Linux - Newbie 4 07-02-2004 09:43 PM
facing problem with cronjobs manojthakkar Linux - General 7 12-09-2003 11:55 PM
Newbie facing some problems safrout Slackware 4 05-17-2003 10:21 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration