From owner-freebsd-questions@FreeBSD.ORG Wed Dec 17 20:15:36 2014 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8C886D33; Wed, 17 Dec 2014 20:15:36 +0000 (UTC) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BE2615B4; Wed, 17 Dec 2014 20:15:36 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.9/8.14.9) with ESMTP id sBHKFZwM068670; Wed, 17 Dec 2014 15:15:35 -0500 (EST) (envelope-from mike@sentex.net) Message-ID: <5491E462.2020902@sentex.net> Date: Wed, 17 Dec 2014 15:15:30 -0500 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: "freebsd-hardware@freebsd.org" , freebsd-questions Subject: zfs and 512/4096 sector sizes Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.75 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2014 20:15:36 -0000 On a remote server, I replaced a dead 2TB disk with a new one that had 4096K sectors. 2014-12-11.22:40:30 zpool replace -f tank1 16144392433229115618 /dev/ada0 My ZFS pool then warned me after pool: tank1 state: ONLINE status: One or more devices are configured to use a non-native block size. Expect reduced performance. action: Replace affected devices with devices that support the configured block size, or migrate data to a properly configured pool. Camcontrol and smartctl confirm the 2TB drive was indeed 4096. (All my previous ones were 512, so didnt think to check) # camcontrol identify ada0 | grep secto sectors/track 63 sector size logical 512, physical 4096, offset 0 LBA supported 268435455 sectors LBA48 supported 3907029168 sectors # smartctl -a /dev/ada0 | grep -i 512 Sector Sizes: 512 bytes logical, 4096 bytes physical So, with a new drive, I replaced the 4096 drive 2014-12-16.17:07:14 zpool replace tank1 ada0 ada11 # smartctl -a /dev/ada11 | grep -i 512 Sector Size: 512 bytes logical/physical # camcontrol identify ada11 | grep -i sector sectors/track 63 sector size logical 512, physical 512, offset 0 LBA supported 268435455 sectors LBA48 supported 3907029168 sectors yet, zfs is still complaining # zpool status pool: tank1 state: ONLINE status: One or more devices are configured to use a non-native block size. Expect reduced performance. action: Replace affected devices with devices that support the configured block size, or migrate data to a properly configured pool. scan: resilvered 898G in 8h4m with 0 errors on Wed Dec 17 15:01:18 2014 config: NAME STATE READ WRITE CKSUM tank1 ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 ada12 ONLINE 0 0 0 ada10 ONLINE 0 0 0 ada6 ONLINE 0 0 0 ada14 ONLINE 0 0 0 raidz1-1 ONLINE 0 0 0 ada11 ONLINE 0 0 0 block size: 512B configured, 4096B native ada1 ONLINE 0 0 0 ada8 ONLINE 0 0 0 ada9 ONLINE 0 0 0 raidz1-2 ONLINE 0 0 0 ada13 ONLINE 0 0 0 ada4 ONLINE 0 0 0 ada5 ONLINE 0 0 0 ada7 ONLINE 0 0 0 errors: No known data errors # zdb | grep -i shift metaslab_shift: 35 ashift: 9 metaslab_shift: 35 ashift: 9 metaslab_shift: 35 ashift: 9 This is RELENG_9 r275680 Any ideas if the reporting is cosmetic ? Or there is an issue Sorry for the xpost as this is sort of both a hardware and config issue. ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/