From owner-freebsd-stable@FreeBSD.ORG Tue Jan 20 23:34:37 2015 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5922B887 for ; Tue, 20 Jan 2015 23:34:37 +0000 (UTC) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 1D982E41 for ; Tue, 20 Jan 2015 23:34:36 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar0EALXlvlSDaFve/2dsb2JhbABbg1hYBIMDwyYKhSdKAoFhAQEBAQF9hAwBAQEDAQEBASAEJyALBRYYAgINGQIpAQkmBggHBAEcBIgDCA28DZRfAQEBAQEBBAEBAQEBAQEBGoEhjgcBAQYVNAeCaIFBBYl1iCuDMoMyNoUGi1oihAwgMQd9CBcifgEBAQ X-IronPort-AV: E=Sophos;i="5.09,437,1418101200"; d="scan'208";a="185151118" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-jnhn.mail.uoguelph.ca with ESMTP; 20 Jan 2015 18:34:15 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 9CC37AEA34; Tue, 20 Jan 2015 18:34:15 -0500 (EST) Date: Tue, 20 Jan 2015 18:34:15 -0500 (EST) From: Rick Macklem To: =?utf-8?B?TcOkcms=?= Owen Message-ID: <2096124637.17646377.1421796855627.JavaMail.root@uoguelph.ca> In-Reply-To: <20150120164409.49403c6e@MARC-THINKPAD.queenland> Subject: Re: NFS "mount system call failed" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.95.11] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Win)/7.2.6_GA_2926) Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2015 23:34:37 -0000 Mark Owen wrote: > 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. > Well, here's a couple of comments: 1 - Look in /var/log/messages for any errors generated by mountd or nfsd on the FreeBSD server. 2 - Make sure the daemons (mountd and nfsd) are running, via "ps axHl". 3 - It appears you have exported the file system "read-only", but are trying to mount it read/write. (I'm not sure this would produce an error at mount time or just if/when the client tries to write to the file server?) 4 - If nothing above helps, use "tcpdump -s 0 -w xxx.pcap host " on the server to capture packets during a mount attempt and then look at xxx.pcap in wireshark (since it understands NFS). This will show you what interaction is going on between client<->server and may give you the hint as to what is broken. rick > 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 > > > On the clients I use the following commands to try to mount the > share: > - NFSv3: mount -t nfs -o nolock server-ip:/media/storage/data > /mnt/tmp > - NFSv4: mount -t nfs4 server-ip:/data /mnt/tmp > > Thank you for reading and I hope that someone will be able to help > me. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to > "freebsd-stable-unsubscribe@freebsd.org" >