Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Sep 2007 19:36:50 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-fs@FreeBSD.ORG, etc@fluffles.net
Subject:   Re: Writing contigiously to UFS2?
Message-ID:  <200709211736.l8LHaoJ6098457@lurza.secnetix.de>
In-Reply-To: <46F24F2C.40205@fluffles.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Fluffles <etc@fluffles.net> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709211736.l8LHaoJ6098457>