From owner-freebsd-questions@FreeBSD.ORG Fri Oct 11 02:37:56 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3CC9958E for ; Fri, 11 Oct 2013 02:37:56 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E6B272EB9 for ; Fri, 11 Oct 2013 02:37:55 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id r9B2bsCc055984; Thu, 10 Oct 2013 20:37:54 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id r9B2bsmv055981; Thu, 10 Oct 2013 20:37:54 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 10 Oct 2013 20:37:54 -0600 (MDT) From: Warren Block To: aurfalien Subject: Re: 4K vs 512byte sector drives on Seagate Constellation E.2 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Thu, 10 Oct 2013 20:37:54 -0600 (MDT) Cc: FreeBSD Questions Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Oct 2013 02:37:56 -0000 On Thu, 10 Oct 2013, aurfalien wrote: > Hi, > > I've a Seagate constellation ES.2 which supports 4K sectors but diskinfo shows it as 512bytes; > > da0 512 3000592982016 5860533168 0 0 364801 255 63 > > I understand that Seagate ships these drives to be compatible with 512byte sectors so that older Windows OSs work on the. > > But I'm unsure how to get this drive to report as having 4K sectors. It does not need to report that, as long as the partitions are aligned to 4K blocks. Seagate has some auto-alignment tech that seems reasonably effective. I'd still make sure the partitions are aligned. > I'm really asking from a ZFS perspective as my vdevs show with an ashift of 9 via the zdb command. > > I'd rather forgo the gnop hack as I prefer a cleaner approach. Using gnop is the way to force ZFS to use 4K blocks at present. And this does not guarantee alignment with 4K disk blocks, which must be accomplished with partition alignment.