Solved

Solaris Network File System (NFS)

Posted on 2011-02-23
6
410 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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
Security measures require Windows be logged in using Standard User login (not Administrator).  Yet, sometimes an application has to be run “As Administrator” from a Standard User login.  This paper describes how to create a shortcut icon to launch a…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now