/etc/exportfs and NFS exports

With the upgrade to 10.5, I no longer seem to be able to export filesystems. The "new way" supposedly is to just use /etc/exportfs, and you don't have to use netinfo (which no longer exists). Supposedly it "just works" and indeed /sbin/nfsd is launched.

But nothing happens.

<pre>
% cat /etc/exports
/Users -maproot=nobody other.machine.org

% showmount -e
Exports list on localhost:

[nada]

</pre>

G5 2x2.5 GHZ and a few others, Mac OS X (10.5)

Posted on Nov 17, 2007 9:32 AM

Reply
4 replies

Nov 20, 2007 12:09 PM in response to Bill Scott

Perhaps there are clues in /var/log/system.log? That's where NFS server errors/warnings get logged.

My guess would be that the host name you are exporting to isn't resolvable when nfsd initially starts. And that asking nfsd to update the exports ("sudo nfsd update") or restart altogether (as you noted) gets things working once that host name is resolvable.

Dec 28, 2007 8:59 PM in response to Bill Scott

As suggested by Mike, with 10.5, it appears that named hosts in /etc/exports won't work at boot time unless they are defined in /etc/hosts. The problem seems to be that launchd does not support dependencies, as SystemStarter did, and so there is nothing to keep nfsd from running before DNS resolution is available. The question is, how and when is Apple going to fix this?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

/etc/exportfs and NFS exports

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.