NFS two mount points same filesystem

I'm having a problem exporting two directories in the same filesystem from my NFS server (freebsd) to a network. My /etc/exports is:

Code:
/usr/export/home /usr/export/exam -alldirs -network 192.168.1.0 -mask 255.255.255.0

My rc.conf nfs part:

Code:
rpcbind_enable="YES"
nfs_server_enable="YES"
mountd_flags="-r"

In the client part (ubuntu 11.04) when I execute showmount -e server just gives me an empty list:

Code:
Export list for server:

When I export only one directory everything goes ok.

What it could be?
 
After you've made changes to /etc/exports do this:
# pkill -HUP nfsd && pkill -HUP mountd
 
Yes, I've tried both after changing /etc/exports:

# pkill -HUP nfsd && pkill -HUP mountd

and

# /etc/rc.d/mountd reload

even reboot...
 
Look for errors in /var/log/messages. Also verify locally with showmount -e.
 
[CMD=]# showmount -e[/CMD] on server gives me an empty list too.

/var/log/messages says:

Code:
[Sep  2 20:36:02 turing mountd[666]: -alldirs has multiple directories
Sep  2 20:36:02 turing mountd[666]: bad exports list line /usr/nethome /usr/nethome/examenes -network 192.168.1.0 -mask 255.255.255.0 -alldirs

-alldirs is the problem. I made a new partition to export multiple dirs, this solves my problem.

Thanks
 
Back
Top