Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jan 2015 11:27:55 +0100
From:      Harald Schmalzbauer <h.schmalzbauer@omnilan.de>
To:        =?ISO-8859-1?Q?M=E4rk_Owen?= <markowen2206@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: NFS "mount system call failed"
Message-ID:  <54BF7F2B.2070600@omnilan.de>
In-Reply-To: <20150120164409.49403c6e@MARC-THINKPAD.queenland>
References:  <20150120164409.49403c6e@MARC-THINKPAD.queenland>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
 Bezüglich Märk Owen's Nachricht vom 20.01.2015 16:44 (localtime):
> Hi everyone,
>
> I'm using FreeBSD 10.1 to share a ZFS pool (mounted at /media/storage)
> through NFS to Linux clients (Debian 7). I don't seem to get any errors
> when the nfs services start on FreeBSD but I can't mount the shares on
> the clients, all I get is: mount.nfs4: mount system call failed (Tried
> as NFSv3 and NFSv4, same result).
>
> I'm really frustrated here since It worked barely an hour ago and I
> have absolutely no idea why I getting this error now.
>
> Anyway, here are my /etc/rc.conf and /etc/exports files from the server:
>
> /etc/rc.conf
> 	...
> 	## ZFS
> 	zfs_enable="YES"
> 	## NFSv4 Server
> 	nfs_server_enable="YES"
> 	nfsv4_server_enable="YES"
> 	rpcbind_enable="YES"
> 	mountd_enable="YES"
> 	mountd_flags="-r"
> 	#rpc_lockd_enable="YES"
> 	#rpc_statd_enable="YES"
>
> /etc/exports (I tried both as NFSv3 and NFSv4, here are the two options)
> -NFSv3:
> 	/media/storage/data -ro -alldirs -network 192.168.1.0 -mask
> 	255.255.255.0
>
> -NFSv4:
> 	V4:/media/storage -network 192.168.1.0 -mask 255.255.255.0
> 	/media/storage/data -ro -alldirs -network 192.168.1.0 -mask
> 	255.255.255.0

For the nfs4 case it seems 'nfsuserd_enable="YES"' is missing in your
rc.conf (and on the client?).
If your clients don't share the same domain suffix in their fqdn, you'll
also want to set 'nfsuserd_flags="-domain your.upper.tld"'

-Harry


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iEYEARECAAYFAlS/fysACgkQLDqVQ9VXb8ihqQCgnAi7GkOdxP6SLu3dJ2u3QObp
nNQAn15JTHYownBzTMOjCYjvp/bIDheE
=ZPVt
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54BF7F2B.2070600>