?
Solved

Solaris Network File System (NFS)

Posted on 2011-02-23
6
Medium Priority
?
426 Views
Last Modified: 2012-06-21
I have the following question regarding to the Solaris NFS.
1. How to ensure NFS not in use? And configuration files?
2. How to enable NFS? What is the command?
3. Is /etc/exports the only export directory?
4. How to know the current access options of the exported directories?
0
Comment
Question by:mawingho
[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
  • 2
  • 2
  • 2
6 Comments
 
LVL 9

Accepted Solution

by:
jeremycrussell earned 1000 total points
ID: 34967776
What version of Solaris?
0
 

Author Comment

by:mawingho
ID: 34977053
Version 9 or below
0
 
LVL 10

Assisted Solution

by:Martin_J_Parker
Martin_J_Parker earned 1000 total points
ID: 34980736
As far as I remember, the command to enable NFS in Solaris is:
/etc/init.d/nfs.server start
and to disable it
/etc/init.d/nfs.server stop

/etc/exports is the only place that the exported directories are defined.

Once /etc/exports is configured then export the directories with the command
exportfs -a

To unexport them use:
exportfs -ua

To see what is exported just type:
exportfs
there may be a more expansive version which gives more detail with
exportfs -v
That's the Linux version but it's probably generic UNIX!
0
Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

 
LVL 9

Assisted Solution

by:jeremycrussell
jeremycrussell earned 1000 total points
ID: 34980853
Actually, on Solaris, shares are defined in /etc/dfs/dfstab.

There are some associated commands as well.

share, unshare, shareall and unshareall.

You can use share/unshare to share and unshare volumes via NFS at any time without them being persistent upon restart of the service or reboot of the machine.

If you want persistent shares, you would add them to the /etc/dfs/dfstab file.

you would use shareall/unshareall to effectively activate/deactivate the shares defined in /etc/dfs/dfstab during system run time.
0
 
LVL 10

Assisted Solution

by:Martin_J_Parker
Martin_J_Parker earned 1000 total points
ID: 34981006
Ah yes, I'd forgotten Sun's dfstab - but I think I remembered the enable/disable commands correctly!

By the way, there's an excellent book called "UNIX System Administration Handbook" by Evi Nemeth, Garth Snyder, Scott Seebass and Trent R. Hein which covers many flavours of UNIX.  Unfortunately mine's gone walkabout!  :-(
0
 

Author Closing Comment

by:mawingho
ID: 34985088
thanks
0

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

No security measures warrant 100% as a "silver bullet". The truth is we also cannot assume anything but a defensive and vigilance posture. Adopt no trust by default and reveal in assumption. Only assume anonymity or invisibility in the reverse. Safe…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.
Suggested Courses
Course of the Month12 days, left to enroll

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