From owner-freebsd-stable@FreeBSD.ORG Tue Jan 4 00:06:16 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 402CB106567A for ; Tue, 4 Jan 2011 00:06:16 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id EE1F08FC08 for ; Tue, 4 Jan 2011 00:06:15 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwEAOzwIU2DaFvO/2dsb2JhbACDd6ExrQqOMYEggzZ0BIRlhh8 X-IronPort-AV: E=Sophos;i="4.60,268,1291611600"; d="scan'208";a="104177524" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 03 Jan 2011 18:56:34 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 4483EB3F06; Mon, 3 Jan 2011 18:56:34 -0500 (EST) Date: Mon, 3 Jan 2011 18:56:34 -0500 (EST) From: Rick Macklem To: Marek Salwerowicz Message-ID: <1549692872.56916.1294098994272.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <4d2252305ca851.07700160@wp.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - IE8 (Win)/6.0.10_GA_2692) Cc: freebsd-stable@freebsd.org Subject: Re: NFSv4 - how to set up at FreeBSD 8.1 ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 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, 04 Jan 2011 00:06:16 -0000 > Hi all, > > I have installed two VMs (server and client), regular installation > with > GENERIC kernel. > I cannot manage to set up NFSv4 working on them. > > Configuration of server: > > /etc/rc.conf: > keymap="pl_PL.ISO8859-2" > hostname="nfs4-server" > ifconfig_em0="dhcp" > sshd_enable="YES" > nfs_server_enable="YES" > nfsv4_server_enable="YES" > nfsuserd_enable="YES" > > /etc/exports: > V4: / This only states where the root of the nfsv4 tree is. You also need to export the volume(s) just like for nfsv3. If you are mounting "/" as below you'd also need something like the line: / -maproot=root -network 192.168.183.1 -mask 255.255.255.0 > > > Configuration of client: > /etc/rc.conf: > keymap="pl_PL.ISO8859-2" > hostname="nfs4-client" > ifconfig_em0="dhcp" > sshd_enable="YES" > nfsuserd_enable="YES" > nfscbd_enable="YES" > > Trying to mount '/' server share at client: > nfs4-client# mount_nfs -o nfsv4 192.168.183.131:/ /marek_nfs4/ > nfs4-client# ls /marek_nfs4/ > ls: /marek_nfs4/: Input/output error > nfs4-client# > > > What am I doing wrong? My aim is to mount home directories from server > to client but currently I am unable to mount any share. >