From owner-freebsd-fs@FreeBSD.ORG Wed Sep 1 09:19:21 2010 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 3D9C910656A3 for ; Wed, 1 Sep 2010 09:19:21 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta02.emeryville.ca.mail.comcast.net (qmta02.emeryville.ca.mail.comcast.net [76.96.30.24]) by mx1.freebsd.org (Postfix) with ESMTP id 238628FC15 for ; Wed, 1 Sep 2010 09:19:20 +0000 (UTC) Received: from omta20.emeryville.ca.mail.comcast.net ([76.96.30.87]) by qmta02.emeryville.ca.mail.comcast.net with comcast id 1MKL1f0031smiN4A2MKLnT; Wed, 01 Sep 2010 09:19:20 +0000 Received: from koitsu.dyndns.org ([98.248.41.155]) by omta20.emeryville.ca.mail.comcast.net with comcast id 1MKK1f0033LrwQ28gMKKUl; Wed, 01 Sep 2010 09:19:20 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 5BD349B425; Wed, 1 Sep 2010 02:19:19 -0700 (PDT) Date: Wed, 1 Sep 2010 02:19:19 -0700 From: Jeremy Chadwick To: Carl Message-ID: <20100901091919.GA98434@icarus.home.lan> References: <4C7CE2D0.40400@telus.net> <4C7E18CB.7020400@telus.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C7E18CB.7020400@telus.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-fs@freebsd.org Subject: Re: gjournal alignment on 4K sector advanced format drives X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 09:19:21 -0000 On Wed, Sep 01, 2010 at 02:11:39AM -0700, Carl wrote: > On Tue Aug 31 12:19:52 UTC 2010, Ivan Voras wrote: > >On 08/31/10 13:09, Carl wrote: > >>Now I want to add gjournal to some of my partitions. It seems to me that > >>I must also ensure the journal is aligned just as I've done with the > >>data. So far, though, I have found no information as to how the > >>journal's own filesystem layout works. Does it use fixed size > >>blocks/fragments like the UFS2 data does? If so, what is its minimum > >>addressable unit size? If it is smaller than 4KiB, we get journal > >>misalignment and a performance loss, right? What must I do to ensure the > >>journal is fully aligned? > > > >gjournal writes its metadata throughout the journal in sector sizes (512 > >bytes) so it cannot be aligned in this way. > > > >For this you need a solution which will actually change the sector size, > >like gnop or my glabel patch. > > From the following discussion, the glabel patch isn't likely to get > committed, in which case I can't use it: > > http://comments.gmane.org/gmane.os.freebsd.devel.hackers/40664 > > Correct me if I'm wrong, but the gnop solution is still > non-persistent and therefore unavailable for partitions whose > mounting cannot be delayed till after startup scripts have executed. > I'm not knowledgeable enough about this, so I'd welcome a clear > description of how to reliably and automatically use gnop to > override sector size at boot time. > > It sounds like neither ZFS nor gjournal are suitable for a > production server with WDxxEARS drives. Soft updates and horribly > long fsck times is the only option? > > A pox on Western Digital for delivering drives that lie about sector > size >:-< Can't you just set the jumper on the drive to us 512-byte sectors? I mean, that's what it's there for... -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |