From owner-freebsd-fs@FreeBSD.ORG Fri Sep 21 18:06:45 2007 Return-Path: Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A30416A41B for ; Fri, 21 Sep 2007 18:06:45 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id E069C13C48A for ; Fri, 21 Sep 2007 18:06:44 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id l8LHaogv098458; Fri, 21 Sep 2007 19:36:55 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id l8LHaoJ6098457; Fri, 21 Sep 2007 19:36:50 +0200 (CEST) (envelope-from olli) Date: Fri, 21 Sep 2007 19:36:50 +0200 (CEST) Message-Id: <200709211736.l8LHaoJ6098457@lurza.secnetix.de> From: Oliver Fromme To: freebsd-fs@FreeBSD.ORG, etc@fluffles.net In-Reply-To: <46F24F2C.40205@fluffles.net> X-Newsgroups: list.freebsd-fs User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 21 Sep 2007 19:36:56 +0200 (CEST) Cc: Subject: Re: Writing contigiously to UFS2? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-fs@FreeBSD.ORG, etc@fluffles.net List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2007 18:06:45 -0000 Fluffles wrote: > I've setup a concat of 8 disks for my new NAS, using ataidle to spindown > the disks not needed. This allows me to save power and noise/heat by > running only the drives that are actually in use. > > My problem is UFS. UFS2 seems to write to 4 disks, even though all the > data written so far can easily fit on just one disk. What's going on > here? I looked at newfs parameters, but in the past was unable to make > newfs write contigiously. It seems UFS2 always writes to a new cylinder. > Is there any way to force UFS to write contigiously? Or at least limit > the problem? > > If i write 400GB to a 4TB volume consisting of 8x 500GB disks, i want > all data to be on the first disk. You should be able to achieve that by putting a gvirstor onto your drives, having the physical size of those eight drives. Then newfs that gvirstor device. I haven't used gvirstor myself, but if I understand it correctly, it should start filling its providers from the start, and only begin using the next one when the previous ones are all completely used. So it should do exactly what you want. http://wiki.freebsd.org/gvirstor Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs." -- Robert Firth