From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 10 17:21:09 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 2077B847; Wed, 10 Jul 2013 17:21:09 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [64.62.153.212]) by mx1.freebsd.org (Postfix) with ESMTP id 0C6201EF6; Wed, 10 Jul 2013 17:21:08 +0000 (UTC) Received: from zeta.ixsystems.com (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 6BE4499BE; Wed, 10 Jul 2013 10:21:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1373476867; bh=QWvdSJ8fOuO5/5aNWRb6P76tenHC3kB+m/UvBmfWclI=; h=Date:From:Reply-To:To:CC:Subject:References:In-Reply-To; b=kT7QZTcEcKXKd/5RzfQJW5lU3NogRHfy2Rzb06m9QqvqizHRMaBWxS604Vzh372ww QJth8LvJ0u13P7HRHcKwqChUG+qLJ5yIY80fRB5W3L90TPC4R0ocrX7aNkjflni6tu Bs+17tlBb5ffPo+6t/pREZzieHwHv/V9KFj7szkw= Message-ID: <51DD9801.4090808@delphij.net> Date: Wed, 10 Jul 2013 10:21:05 -0700 From: Xin Li Organization: The FreeBSD Project MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= Subject: Re: Make ZFS use the physical sector size when computing initial ashift References: <86zjtupz3r.fsf@nine.des.no> In-Reply-To: <86zjtupz3r.fsf@nine.des.no> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-fs@freebsd.org, freebsd-hackers@freebsd.org, ivoras@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: d@delphij.net 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 17:21:09 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 07/10/13 02:02, Dag-Erling Sm￸rgrav wrote: > The attached patch causes ZFS to base the minimum transfer size for > a new vdev on the GEOM provider's stripesize (physical sector size) > rather than sectorsize (logical sector size), provided that > stripesize is a power of two larger than sectorsize and smaller > than or equal to VDEV_PAD_SIZE. This should eliminate the need for > ivoras@'s gnop trick when creating ZFS pools on Advanced Format > drives. I think there are multiple versions of this (I also have one[1]) but the concern is that if one creates a pool with ashift=9, and now ashift=12, the pool gets unimportable. So there need a way to disable this behavior. Another thing (not really related to the automatic detection) is that we need a way to manually override this setting from command line when creating the pool, this is under active discussion at Illumos mailing list right now. [1] https://github.com/trueos/trueos/commit/3d2e3a38faad8df4acf442b055c5e98ab873fb26 Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJR3ZgAAAoJEG80Jeu8UPuzM6kIALu3Ud4uu+kdcsp+zNS54iw6 Etx2xWOjbHhJ1PZ0BKJ4R5/BOfpW4b1DrarPtpZLxoyg55GwlEVCH8Cia9ucznfP KgFGwzztQlsiI5hcWD6RVNkAx/2o7sSynbprxxP1UdEdmH7f5MWVpNwjGE2KiIpA 0TxfTu8Sg0/QB7h3pGWt5sJSuwyogewvHIfTAgHEqnQdYPXxpadH7PS7shSJVdim z2C9GoyLVQ6BMxXzQDcmA+fllgMZVKXROG7SxDFNDTWPnZ9HMZp2OJKELLtuZB1y Iaq/gd3uPR2ZzPxw2OjdYKe7khWtmuU5Ox6+natsOKCqfoAfCjArA8zJZYsZoMI= =Nd1V -----END PGP SIGNATURE-----