NFS on OSX Server

Using OS X Server to publish and mount NFS drive can be complicated. Here are some steps to help an administrator as well as some shortcuts when using iTools.

Overview

Publishing and mounting NFS drives consists of:

Exporting NFS Drives -- NetInfo Configuration

A default install of OS X will not have NetInfo or NetworkManager properly configured to publish local drives. This is indicated by a greyed out "New" button in the NetworkManager under File Sharing --> Shared Directories.

If this button is not greyed out it should be fairly easy to make a new export by simply clicking the button and filling in the necessary info.

If it is greyed out, it is necessary to manually configure NetInfo acording to this Apple Tech Note: Mac OS X Server: Managing NFS Exports. In a nut shell:

  1. Start the NetInfoManager.app application.
  2. In the directory browser area, click on the exports directory. If it is not already there then:
  3. To add a new export, click on the exports directory and select the "New Subdirectory" command under the Directory menu. It will create a directory named "new_directory"
  4. Rename the "new_directory" to the path of the UFS directory you want to export. To do this, double-click on the "Value(s)" field corresponding to the "name" property, and type in the new path.
  5. Add a "clients" property. To do this:
  6. Add an "opts" property. For details on the values, see the man page for exports(5). (a good value would be something like root=<hostname> to give root permissions to root logging on from that host).
  7. Do a save from NetinfoManager.app.
  8. Restart the server.

This is an example what the NetInfoManager should look like when you are finished:

 

This is an example what the NetworkManager's Shared Directories should look like when you are finished:

 Once this initial configuration is complete, adding new clients in the Network Manager is as easy as:

  1. Double clicking the directory you want to edit.
  2. Clicking the "Add" button in the dialog box that pops up.
  3. Naming the new client either <hostname> ,<hostname.domainname> or <IP.address>
  4. Saving the settings.
  5. Restarting the server or doing a "kill -HUP" on the "mountd" process

 

Mounting NFS drives -- NetworkManager

This setup is much easier and we can use OS X Server's interface as much as possible.

  1. Start the NetWorkManager application.
  2. Click on the 'Mounted Directories' tab, and then click the 'New' button at the bottom of the window.
  3. You will be prompted for information:
  4. Restart the client.

That should do it.

Mounting NFS drive through iTools

NFS drives may be mounted without a reboot by using the iTools admin server.

  1. Start the itools admin server and access it though a web browser.
  2. Click on the "NFS settings".
  3. Enter the server name into 'NFS server' and the path of the folder you wish to mount in 'Server Path'.
  4. 'Local Path' is where you want to mount the folder from the WebServer root, although future versions of iTools may have this from your hard drive root.

 

 

Tenon Tech Support