From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 10 11:03:20 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AD306958; Wed, 10 Jul 2013 11:03:20 +0000 (UTC) (envelope-from borjam@sarenet.es) Received: from proxypop04.sare.net (proxypop04.sare.net [194.30.0.65]) by mx1.freebsd.org (Postfix) with ESMTP id 6FF721453; Wed, 10 Jul 2013 11:03:20 +0000 (UTC) Received: from [172.16.2.2] (izaro.sarenet.es [192.148.167.11]) by proxypop04.sare.net (Postfix) with ESMTPSA id 0E5DE9DC4EE; Wed, 10 Jul 2013 13:03:13 +0200 (CEST) Subject: Re: Make ZFS use the physical sector size when computing initial ashift Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Borja Marcos X-Priority: 3 In-Reply-To: <628C5D1AF6044488B708484203D70B7A@multiplay.co.uk> Date: Wed, 10 Jul 2013 13:03:09 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <774B60E8-19C2-4A3A-880D-0D8726DC6727@sarenet.es> References: <86zjtupz3r.fsf@nine.des.no> <628C5D1AF6044488B708484203D70B7A@multiplay.co.uk> To: Steven Hartland X-Mailer: Apple Mail (2.1283) Cc: freebsd-fs@freebsd.org, =?iso-8859-1?Q?Dag-Erling_Sm=F8rgrav?= , zfs-devel@FreeBSD.org, ivoras@freebsd.org, freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jul 2013 11:03:20 -0000 On Jul 10, 2013, at 11:25 AM, Steven Hartland wrote: > If others are interested I've attached this as it achieves what we = needed here so > may also be of use for others too. >=20 > There's also a big discussion on illumos about this very subject ATM = so I'm > monitoring that too. >=20 > Hopefully there will be a nice conclusion come from that how people = want to > proceed and we'll be able to get a change in that works for everyone. Hmm. I wonder if the simplest approach would be the better. I mean, = adding a flag to zpool. At home I have a playground FreeBSD machine with a ZFS zmirror, and, you = guessed it, I was careless when I purchased the components, I asked for two "1 TB drives" = and that I got, but different models, one of them "advanced format" and the other one "classic". I don't think it's that bad to create a pool on a classic disk using 4 = KB blocks, and it's quite likely that replacement disks will be 4 KB in the near future.=20 Also, if you use SSDs the situation is similar. Borja.