From owner-freebsd-questions@FreeBSD.ORG Wed Nov 29 07:37:24 2006 Return-Path: X-Original-To: questions@freebsd.org 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 1BF4416A492 for ; Wed, 29 Nov 2006 07:37:24 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2977343DCE for ; Wed, 29 Nov 2006 07:34:15 +0000 (GMT) (envelope-from illoai@gmail.com) Received: by nf-out-0910.google.com with SMTP id x37so2664253nfc for ; Tue, 28 Nov 2006 23:33:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HotTEWsGRR5DElScOL2Q3ZmiviYZujLQ6tYBkgXAQ3jSoObLvhwbjP2USxupAgb/IqyDhDS6fZD9RpE4iIvnyayRUujmrq5kJqMUcIAmzFSrAjB5ZacHym2AZXZW/28PcyxX9gTKQcqqXdjeVPL7fiGw4cWkshe7tqdwV2xVrQk= Received: by 10.82.139.17 with SMTP id m17mr352988bud.1164785637315; Tue, 28 Nov 2006 23:33:57 -0800 (PST) Received: by 10.82.175.1 with HTTP; Tue, 28 Nov 2006 23:33:57 -0800 (PST) Message-ID: Date: Wed, 29 Nov 2006 01:33:57 -0600 From: "illoai@gmail.com" To: questions@freebsd.org In-Reply-To: <20061128194802.GA79195@gizmo.acns.msu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061128022430.GA8664@skytracker.ca> <20061128194802.GA79195@gizmo.acns.msu.edu> Cc: Jerry McAllister , David Banning Subject: Re: secondary ide drive setup 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: Wed, 29 Nov 2006 07:37:24 -0000 On 11/28/06, Jerry McAllister wrote: > On Mon, Nov 27, 2006 at 09:24:30PM -0500, David Banning wrote: > > > I am attempting to setup a secondary ide drive. I have configured the > > entire 305MB drive for storage. I used /stand/sysinstall and -it- > > issued the command ; > > > > /bin/sh -c newfs -b 16384 -f 2048 /dev/ad2s1e > > > > which seems very disk intensive and is taking a long time. I am wondering > > if this is right. I just want to use the second drive as a storage folder > > for backing up the main drive. > > > > The disklabel editor shows it as > > > > Disk: ad2 Partition name: ad2s1 Free: 0 blocks (0MB) > > > > Part Mount Size Newfs Part Mount Size Newfs > > ---- ----- ---- ----- ---- ----- ---- ----- > > ad2s1e /uusr 305242MBUFS+S Y > > > > This configuration issued the command as above; > > > > /bin/sh -c newfs -b 16384 -f 2048 /dev/ad2s1e > > > > How long should newfs take for a 305 MB drive? > > > > Do you really mean 305 GB drive? > ^^ > It depends some on your CPU and the speed of the drive. > My guess would be in the range of 15 minutes or so. > It has to write all the alternate superblocks. I haven't > studied it, but I have always wondered if it is necessary to > have so many alternate superblocks. You can, of course, bsdlabel* and newfs without touching sysinstall. I have not played with it tons, but I suspect that the number of alternate superblocks is dependant on the -b flag to newfs. I remember running into a (or what seemed a) rather conservative maximum for this value, 65536, I seem to recall. If you are primarily going to be writing very large files, like tar files, there should be no harm in having a very large block size and sparse inodes, though changing it might require a wipe and a newfs, should you decide to make the disk your databse storage for a couple million 1k files. *I am just now reading man gpt, and let me tell you, I am both frightened and a bit confused. -- --