From owner-freebsd-stable@FreeBSD.ORG Tue Jan 4 23:30:23 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 5BEB11065670 for ; Tue, 4 Jan 2011 23:30:23 +0000 (UTC) (envelope-from marek_sal@wp.pl) Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.7]) by mx1.freebsd.org (Postfix) with ESMTP id DEA638FC17 for ; Tue, 4 Jan 2011 23:30:22 +0000 (UTC) Received: (wp-smtpd smtp.wp.pl 23018 invoked from network); 5 Jan 2011 00:30:14 +0100 Received: from cwx170.internetdsl.tpnet.pl (HELO marekdesktop) (marek_sal@[83.19.131.170]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with SMTP for ; 5 Jan 2011 00:30:14 +0100 Message-ID: From: "Marek Salwerowicz" To: "Freddie Cash" , "Jean-Yves Avenard" References: <201101040037.59785.milu@dat.pl><1703110029.56794.1294098600382.JavaMail.root@erie.cs.uoguelph.ca> Date: Wed, 5 Jan 2011 00:29:53 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO 0000000 [cSME] X-Mailman-Approved-At: Wed, 05 Jan 2011 00:05:13 +0000 Cc: Rick Macklem , freebsd-stable@freebsd.org, Maciej Milewski 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 23:30:23 -0000 Hi, so it slowly starts working: nfs4-server# cat /etc/exports V4: / / -maproot=root -network 192.168.183.0 -mask 255.255.255.0 nfs4-server# nfs4-server# ps aux | grep mountd root 857 0.0 0.6 3348 1520 ?? Is 11:53PM 0:00.01 /usr/sbin/mountd -e -r nfs4-server# ps aux | grep nfsd root 1303 0.0 0.5 3288 1324 ?? Is 12:04AM 0:00.03 nfsd: master (nfsd) root 1304 0.0 0.5 3288 1260 ?? S 12:04AM 0:00.02 nfsd: server (nfsd) nfs4-server# I am able to mount the root '/' from nfs4-server: nfs4-client# mount_nfs -o nfsv4 192.168.183.131:/ /marek_nfs4/ nfs4-client# ls /marek_nfs4/ .cshrc cdrom home proc usr .profile compat lib rescue var .snap dev libexec root COPYRIGHT dist media sbin bin entropy mnt sys boot etc plik tmp nfs4-client# mount /dev/ad0s1a on / (ufs, local) devfs on /dev (devfs, local, multilabel) /dev/ad0s1e on /tmp (ufs, local, soft-updates) /dev/ad0s1f on /usr (ufs, local, soft-updates) /dev/ad0s1d on /var (ufs, local, soft-updates) 192.168.183.131:/ on /marek_nfs4 (newnfs) nfs4-client# it works also on different partition: nfs4-server# cat /etc/exports V4: /usr /usr/home -maproot=root -network 192.168.183.0 -mask 255.255.255.0 nfs4-server# nfs4-client# mount_nfs -o nfsv4 192.168.183.131:/home /marek_nfs4/ nfs4-client# ls /marek_nfs4/ marek nfs4-client# What I noticed is that in 'V4: ' line we have to specify the mount point of the WHOLE partition we want to export Regards -- Marek Salwerowicz