exportfs: function not implemented

Hello,

I am trying to connect two machines running 12.2. As far as I can tell the installation was identical on both. I have installed the nfs-kernel-server module on both, added the nfs client and nfs server services and the required tcp ports to the firewall profile on both sides.
In one direction there is no problem: following

exportfs -a

on one machine I can easily mount the exported share on the other machine.
However, when I try the same

exportfs -a

on the other machine I get the message

exportfs: linux:/home/naima: Function not implemented

I have never come across this message and don’t know what it means. Clearly, the exportfs command is installed and recognised, so I don’t understand what is missing.

My /etc/exports file (on the exporting machine) looks like this:

# See the exports(5) manpage for a description of the syntax of this file.
# This file contains a list of all directories that are to be exported to 
# other computers via NFS (Network File System).
# This file used by rpc.nfsd and rpc.mountd. See their manpages for details
# on how make changes in this file effective.

/home/naima linux(rw,sync)

Thanks,

Abe

On 11/30/2012 11:06 AM, naimab wrote:
>
> Hello,
>
> I am trying to connect two machines running 12.2. As far as I can tell
> the installation was identical on both. I have installed the
> nfs-kernel-server module on both, added the nfs client and nfs server
> services and the required tcp ports to the firewall profile on both
> sides.
> In one direction there is no problem: following
> Code:
> --------------------
> exportfs -a
> --------------------
> on one machine I can easily mount the exported share on the other
> machine.
> However, when I try the same
> Code:
> --------------------
> exportfs -a
> --------------------
> on the other machine I get the message
> Code:
> --------------------
> exportfs: linux:/home/naima: Function not implemented
> --------------------
>
>
> I have never come across this message and don’t know what it means.
> Clearly, the exportfs command is installed and recognised, so I don’t
> understand what is missing.
>
> My /etc/exports file (on the exporting machine) looks like this:
>
>
> Code:
> --------------------
> # See the exports(5) manpage for a description of the syntax of this file.
> # This file contains a list of all directories that are to be exported to
> # other computers via NFS (Network File System).
> # This file used by rpc.nfsd and rpc.mountd. See their manpages for details
> # on how make changes in this file effective.
>
> /home/naima linux(rw,sync)

My /etc/exports contains:

/video/mtech *(rw,root_squash,sync,no_subtree_check)
/video/netbook *(rw,root_squash,sync,no_subtree_check)

Did you read the man pages? Your version is exporting only to the machine
named “linux”. In addition, you might need to specify the local domain name. My
form exports to all machines in the world with some additional options. It is
less secure, but by router does not pass any NFS packets from the outside.
Incidentally, my version has been in place since 11.2.

The exports file is supposed to do exactly what I want: export a single directory to a single computer on my LAN. I am not trying to serve files out of local network.

What I am not clear about is what function is not implemented or how to find out.

Thanks,

Abe

I’d check the nfs-kernel-server again. The “function not implemented” is supposed to mean that the nfs kernel server module isn’t loaded. You could check this with

lsmod | grep nfs

On 2012-11-30 18:06, naimab wrote:
> on the other machine I get the message
> Code:
> --------------------
> exportfs: linux:/home/naima: Function not implemented
> --------------------

Please repeat that with the command prompt before and after. Complete,
please.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Done. nfs-kernel-server is installed but checking system services I found that nfs and nfs-server were not started, despite being enabled a while ago. At any rate, now the exportfs command works.

Thanks for the help,

Abe