From owner-freebsd-stable@FreeBSD.ORG Fri Feb 3 14:43:42 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1570C106566C for ; Fri, 3 Feb 2012 14:43:42 +0000 (UTC) (envelope-from dmagda@ee.ryerson.ca) Received: from eccles.ee.ryerson.ca (ee.ryerson.ca [141.117.1.2]) by mx1.freebsd.org (Postfix) with ESMTP id C716D8FC15 for ; Fri, 3 Feb 2012 14:43:41 +0000 (UTC) Received: from webmail.ee.ryerson.ca (eccles [172.16.1.2]) by eccles.ee.ryerson.ca (8.14.4/8.14.4) with ESMTP id q13EhahD029374; Fri, 3 Feb 2012 09:43:36 -0500 (EST) (envelope-from dmagda@ee.ryerson.ca) Received: from 206.108.127.2 (SquirrelMail authenticated user dmagda) by webmail.ee.ryerson.ca with HTTP; Fri, 3 Feb 2012 09:43:37 -0500 Message-ID: <015aa2883208e47457fdd56e63aab878.squirrel@webmail.ee.ryerson.ca> In-Reply-To: References: Date: Fri, 3 Feb 2012 09:43:37 -0500 From: "David Magda" To: "Pete French" User-Agent: SquirrelMail/1.4.20 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-stable@freebsd.org Subject: Re: Sector size of a zvol X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2012 14:43:42 -0000 On Fri, February 3, 2012 07:25, Pete French wrote: > So, I was trying to create a disc witha sector size of 4096 bytes, and I > assumed that simply creating a zvol with that blocksize would do the > trick. > But it appears that whatever the blocksize is on the xvol, diskinfo is > reporting the sector size as 512 bytes. > > I this the intended behaviour ? I dont have a Solaris system to hand to > test it on, so I have no ida if this is BSD specific or not. Yes, it is intended. The pool sector size and ZFS dataset block size are parameters are independent of each other. AFAIK, there is no way to specify the sector size to use in a ZFS pool: it is completely automatic when you call "zpool create". Ideally it should query the disk about its sector size and use that, but I don't know if that has been implemented (and can't be bothered to dig through the source at this time :).