From owner-freebsd-questions@FreeBSD.ORG Tue Nov 16 17:32:54 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB2FC106572C for ; Tue, 16 Nov 2010 17:32:54 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id A1B0A8FC1D for ; Tue, 16 Nov 2010 17:32:54 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PIPOn-0003ra-36 for freebsd-questions@freebsd.org; Tue, 16 Nov 2010 18:32:53 +0100 Received: from cpe-188-129-85-22.dynamic.amis.hr ([188.129.85.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Nov 2010 18:32:52 +0100 Received: from ivoras by cpe-188-129-85-22.dynamic.amis.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Nov 2010 18:32:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Tue, 16 Nov 2010 18:32:42 +0100 Lines: 20 Message-ID: References: <4CE145C5.8040602@midsummerdream.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpe-188-129-85-22.dynamic.amis.hr User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101102 Thunderbird/3.1.6 In-Reply-To: Subject: Re: ZFS and 4k sector drives X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2010 17:32:55 -0000 On 11/15/10 20:24, Wojciech Puchar wrote: >> work with ZFS raidz2 pools. It seems that most of the 4k sector drives >> are using emulation, and reporting 512 byte sectors to the OS instead >> of their native 4k size. I know someone who had an issue trying to >> insert one of these drives into a running ZFS pool with other 512 byte >> sector drives with bad results. > > ZFS use 4k blocks. Actually, no, it's much worse: ZFS uses variable block size upto 128 KiB, meaning not only does it not write or align data on a sensible boundary like 4 KiB, both its metadata and data IO can write on any offset and length which is a multiple of 512 bytes. References: http://www.solarismen.de/archives/5-Solaris-and-the-new-4K-Sector-Disks-e.g.-WDxxEARS-Part-2.html http://permalink.gmane.org/gmane.os.freebsd.devel.geom/4318