Solved

Solaris Network File System (NFS)

Posted on 2011-02-23
6
415 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
  • 2
  • 2
  • 2
6 Comments
 
LVL 9

Accepted Solution

by:
jeremycrussell earned 250 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 250 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 9

Assisted Solution

by:jeremycrussell
jeremycrussell earned 250 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 250 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
OfficeMate Freezes on login or does not load after login credentials are input.
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

839 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