Topic : NFS share export options ("-32bitclients") where to set?

Topic Archived This topic has been archived - replies are not allowed.


This question is answered. "Helpful" answers available: 2 . "Solved" answers available: 1 .



            Permlink
            Replies : 4 - Pages : 1 - Last Post : May 2, 2008 1:13 AM by: gwideman
gwideman

Posts: 55
Registered: Jun 8, 2006
NFS share export options ("-32bitclients") where to set?
Posted: May 1, 2008 1:04 PM
 

Folks:
I need to have our XServe (OS-X 10.5) work with 32-bit linux clients, and hence need to supply the "-32bitclients" option for the NFS exports.

What's the recommended way of setting such an option? In Server Admin I don't see an explicit checkbox for this, nor any generic "opts" slot like there was in NetInfo Manager. And the /etc/exports file has statements prohibiting editing entries there -- making me think that this file is not the authoritative version of the info, and presumably such edits would be ignored anyway.

So, how do I get this done?

Thanks, Graham

Many   Mac OS X (10.5)   Many
gwideman

Posts: 55
Registered: Jun 8, 2006
Re: NFS share export options ("-32bitclients") where to set?
Posted: May 2, 2008 1:02 AM   in response to: gwideman
 

After MUCH searching, I have assembled an answer to this seemingly very simple problem. At the heart are these factors:

1. Server Admin's features for editing NFS settings are incomplete, specifically excluding the capacity to add options.

2. Unlike virtually all other settings in 10.5, the NFS settings are stored solely in a unix-standard file, /etc/exports. The following article, apparently by an apple or NFSengineer, gives us some confidence in that this is a legit file to edit to control NFSsettings:

lists.apple.com/archives/macos-x-server/2008/Mar/msg00002.html

3. If you already have some NFS settings managed by Server Admin, these appear in the exports file like this:

      1. [ Begin Server Admin managed exports. Do Not Edit.
/Somedir -maproot=nobody -sec=sys -network 123.1.2.3 -mask 255.255.255.0
      1. ] End Server Admin managed exports.

... so how do you handle editing this without stepping on Server Admin (or vice versa)?

Procedure:

a. First make a copy of the /etc/exports file

b. In Server Admin, visit all the File Shares > select share ... NFS settings panels, and unselect NFS enable checkbox (and then save this setting). This does not immediately empty the exports file, but it stops Server Admin from noticing that share in the exports file.

c. To confirm, edit the exports file, deleting the unwanted lines. Reopen Server Admin, visit the NFS share settings, note that nothing bad happens, quit, revisit the exports file and note that the deleted lines are still gone.

d. To confirm even more, try restarting nfs in Server Admin, or by command line:
nfsd restart
... and then note exports:
showmount -e
... to confirm you really did get rid of the exports. (might have to wait a little before showmount).

e. Now create a replacement exports file by taking the one you saved, and move the desired lines outside the "Server Admin managed" brackets.

f. You can now add options. Note that options should generally go in the "middle" part of the line, after the path and before the -network options:

/Somedir -newoption -maproot=nobody -sec=sys -network 123.1.2.3 -mask 255.255.255.0

g. Save this file, and copy it into place at /etc/exports. Set permissions to match original exports file.

Now restart nfs:
nfsd restart
showmount -e


That should do it.

Graham

Many   Mac OS X (10.5)   Many
gwideman

Posts: 55
Registered: Jun 8, 2006
Re: NFS share export options ("-32bitclients") where to set?
Posted: May 2, 2008 1:07 AM   in response to: gwideman
 

I did a great job of answering my question. Thanks, me!

   
gwideman

Posts: 55
Registered: Jun 8, 2006
Re: NFS share export options ("-32bitclients") where to set?
Posted: May 2, 2008 1:08 AM   in response to: gwideman
 

I did a great job of answering my question. Thanks, me!

   
gwideman

Posts: 55
Registered: Jun 8, 2006
Re: NFS share export options ("-32bitclients") where to set?
Posted: May 2, 2008 1:13 AM   in response to: gwideman
 

I did a great job of answering my question. Thanks, me!