From owner-freebsd-questions@FreeBSD.ORG Tue Aug 1 11:54:03 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DB2F16A4DF for ; Tue, 1 Aug 2006 11:54:03 +0000 (UTC) (envelope-from yuanjue02@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEF0D43D78 for ; Tue, 1 Aug 2006 11:54:00 +0000 (GMT) (envelope-from yuanjue02@gmail.com) Received: by py-out-1112.google.com with SMTP id b36so911078pyb for ; Tue, 01 Aug 2006 04:54:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:organization:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=KOHiND7DEnc94cUNMg2RNUc0hVoAWtBxlbT2yPEu7m2J5xozbqLSgGsGr0BXnE/2Rnwj1SgmBOEJ8KpSzjDTqbSV9TASnwviHNcBpo3Rjn9hKeqQv/viG8MCOilNyoNUhnZdbowIs8F5yp0kij3GMA8+k9HplmNutWkrNNoUVZI= Received: by 10.35.126.7 with SMTP id d7mr5604872pyn; Tue, 01 Aug 2006 04:53:58 -0700 (PDT) Received: from ?222.48.98.182? ( [124.172.191.119]) by mx.gmail.com with ESMTP id t70sm5377785pyg.2006.08.01.04.53.55; Tue, 01 Aug 2006 04:53:57 -0700 (PDT) From: "Yuan, Jue" Organization: Institute of Computing Technology, CAS, China To: freebsd-questions@freebsd.org Date: Tue, 1 Aug 2006 19:55:51 +0800 User-Agent: KMail/1.9.3 References: <20060801053719.GA6735@fast> <44CEF9EB.3080807@locolomo.org> In-Reply-To: <44CEF9EB.3080807@locolomo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608011955.51924.yuanjue02@gmail.com> Cc: Tyler Spivey Subject: Re: switching from linux to freebsd 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: Tue, 01 Aug 2006 11:54:03 -0000 What about the first question? curious too :-) On Tuesday 01 August 2006 14:51, Erik Norgaard wrote: > Tyler Spivey wrote: > > Hello. I'm interested in moving my server from linux to freeBSD, but > > have several questions: > > 2. Can Ufs handle crashes very well, or is a very long fsck needed like > > the old ext2 days? > > Usually fsck will run in the background after boot has finished. On very > hard crashes you may have to boot into single user to fix it. To avoid > this, make sure that the base system is on a separate partition, you may > even want to mount it read-only for security. (I think these are good > advises on any system). > > > 3. is the restriction of NFS-servers only mounting on partition > > boundaries going to be removed in the future, if it even still exists? > > You can export an entire partition, with -alldirs option you can mount > any sub directory with the permissions for that partition, eg: > > /home -alldirs -network 192.168.0.0/24 > > You can also export directories individually, but there are some > restrictions, exporting two directories on the same filesystem to the > same host must have the same permissions. Eg: > > /var/diskless/FreeBSD -ro -maproot=root:wheel -network 192.168.0.0/24 > /var/diskless/clt-1/var -maproot=root:wheel 192.168.0.1 > /var/diskless/clt-1/tmp -maproot=root:wheel 192.168.0.1 > > This works fine despite the first being -ro and the others -rw, because > the first line exports to a network and not the host, and the second two > have same permissions and mappings. But > > /var/diskless/FreeBSD -ro -maproot=root:wheel -network 192.168.0.0/24 > /var/diskless/clt-1/var -maproot=root:wheel 192.168.0.1 > /var/diskless/clt-1/tmp 192.168.0.1 > > doesn't, because of the missing maproot in the last export line. > > Cheers, Erik -- Best Regards Yuan, Jue @ http://www.yuanjue.net