From owner-freebsd-questions@FreeBSD.ORG Sat Aug 11 16:23:02 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BFA94106566B for ; Sat, 11 Aug 2012 16:23:02 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [89.206.35.99]) by mx1.freebsd.org (Postfix) with ESMTP id 091398FC0A for ; Sat, 11 Aug 2012 16:23:01 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5) with ESMTP id q7BGMeB9002675; Sat, 11 Aug 2012 18:22:41 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5/Submit) with ESMTP id q7BFeC3j002272; Sat, 11 Aug 2012 17:40:12 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sat, 11 Aug 2012 17:40:12 +0200 (CEST) From: Wojciech Puchar To: Fbsd8 In-Reply-To: <50266F8F.4010504@a1poweruser.com> Message-ID: References: <1344347348.23440.5.camel@blackfriar.inhio.eu> <5022715C.9010301@a1poweruser.com> <50250034.8010004@a1poweruser.com> <20120810135446.GA48662@ei.bzerk.org> <50251DE5.3010106@a1poweruser.com> <50266F8F.4010504@a1poweruser.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Sat, 11 Aug 2012 18:22:41 +0200 (CEST) Cc: freebsd-questions@freebsd.org, blackfriar Subject: Re: NFS within a Jail?! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Aug 2012 16:23:02 -0000 > > Since your the expert on unfs3 because you have it working, would you share > some technical configuration information with us? > > Such as > > What statements do you have in the host:server and remote:client /etc/rc.conf > to auto start them at boot time? in client - as with any NFS, use kernel klient. on server - just run unfsd anywhere, like /etc/rc.local Do you really cannot use any program without rc.d script? ;) > How do you disable the kernel nfs version so it don't interfere with unfs3? Just don't enable it in /etc/rc.conf You may have it in kernel. i did, now i don't. both works. > What does your export file look like on both the host:server and > remote:client sides. as described in manual of unfsd. basics are same, details are not. > > Then about unfs3 performance; how many concurrent remote:clients do you > service? Doe's access elapse time get longer as more concurrent over 60 but not high load clients so performance doesn't matter. That's X terminals booting over NFS. Sometimes i do more - example is net-booting windoze PC to be able to do some recovery OR backup large amount of data to server. There is no practical performance difference in that settings. BUT - do make configure, then search where fsync is called and comment it out. Right - not conformant, but the performance difference on writes are enormous. Unless you do such a stupid things like running database servers over NFS, you don't need this conformance. Just do it. > Do you run unfs3 in a jail on both the host:server and remote:client sides? Not now. but tried. unfs doesn't need ANY special kernel calls. It runs just like any program using UDP/TCP communication. jail/no jail doesn't make a difference. As with most programs. In kernel point of view it is just a program that use TCP/IP stack and open/read/write/readdir/etc. Nothing else. > Are there any sysctl nob settings needed to make unfs3 run in a jail? as above.