From nobody@FreeBSD.org  Mon Mar 24 18:14:04 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 2E7DFA0C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Mar 2014 18:14:04 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 0EB90856
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Mar 2014 18:14:04 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2OIE3BO096167
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Mar 2014 18:14:03 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2OIE3b9096166;
	Mon, 24 Mar 2014 18:14:03 GMT
	(envelope-from nobody)
Message-Id: <201403241814.s2OIE3b9096166@cgiserv.freebsd.org>
Date: Mon, 24 Mar 2014 18:14:03 GMT
From: "Vladislav V. Prodan" <admin@support.od.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Confusion zpool with a block size in HDD - block size: 512B configured, 4096B native
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         187905
>Category:       kern
>Synopsis:       [zpool] Confusion zpool with a block size in HDD - block size: 512B configured, 4096B native
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 24 18:20:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Mon Mar 24 19:30:00 UTC 2014
>Originator:     Vladislav V. Prodan
>Release:        FreeBSD 10.0
>Organization:
support.od.ua
>Environment:
FreeBSD bimbo.YYY 10.0-STABLE FreeBSD 10.0-STABLE #0: Sun Mar 23 08:14:35 EET 2014 root@bimbo.YYY:/usr/obj/usr/src/sys/bimbo.3 amd64
>Description:
On a machine using ZFS, after upgrading from 9.0 to 10.0, zpool status
says:

# zpool status
  pool: tank
 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: scrub repaired 0 in 4h42m with 0 errors on Mon Mar 24 05:38:49 2014
config:

        NAME               STATE     READ WRITE CKSUM
        tank               ONLINE       0     0     0
          gpt/system-ada1  ONLINE       0     0     0  block size: 512B configured, 4096B native

errors: No known data errors


ashift: 9

# zdb -U /boot/zfs/zpool.cache
tank:
    version: 28
    name: 'tank'
    state: 0
    txg: 9794975
    pool_guid: 14509785011519350988
    hostid: 3616469326
    hostname: 'bimbo.fitnessfactor.com.ua'
    vdev_children: 1
    vdev_tree:
        type: 'root'
        id: 0
        guid: 14509785011519350988
        children[0]:
            type: 'disk'
            id: 0
            guid: 17960990484356700785
            path: '/dev/gpt/system-ada1'
            phys_path: '/dev/gpt/system-ada1'
            whole_disk: 1
            metaslab_array: 30
            metaslab_shift: 31
            ashift: 9
            asize: 495807889408
            is_log: 0
            DTL: 82314
            create_txg: 4

# diskinfo -v /dev/ada0
/dev/ada0
        512             # sectorsize
        500107862016    # mediasize in bytes (466G)
        976773168       # mediasize in sectors
        4096            # stripesize
        0               # stripeoffset
        969021          # Cylinders according to firmware.
        16              # Heads according to firmware.
        63              # Sectors according to firmware.
        S20BJ90D306953  # Disk ident.


# smartctl -a /dev/ada0
smartctl 6.2 2014-02-18 r3874 [FreeBSD 10.0-STABLE amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda SpinPoint F3
Device Model:     ST500DM005 HD502HJ
Serial Number:    S20BJ90D306953
LU WWN Device Id: 5 0004cf 209d3bdd6
Firmware Version: 1AJ10001
User Capacity:    500 107 862 016 bytes [500 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    7200 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Mon Mar 24 20:00:48 2014 EET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
..


>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Mar 24 18:34:42 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187905 

From: "Steven Hartland" <killing@multiplay.co.uk>
To: <bug-followup@freebsd.org>,
	<admin@support.od.ua>
Cc:  
Subject: Re: kern/187905: [zpool] Confusion zpool with a block size in HDD - block size: 512B configured, 4096B native
Date: Mon, 24 Mar 2014 19:09:48 -0000

 This matches the 4K quirk for Seagate Barracuda Green Advanced Format (4k) drives 
         {
                 /* Seagate Barracuda Green Advanced Format (4k) drives */
                 { T_DIRECT, SIP_MEDIA_FIXED, "ATA", "ST???DM*", "*" },
                 /*quirks*/DA_Q_4K
         },
 ---
         {
                 /* Seagate Barracuda Advanced Format (4k) drives */
                 { T_DIRECT, SIP_MEDIA_FIXED, "*", "ST????DM*", "*" },
                 /*quirks*/ADA_Q_4K
         },
 
 This is possibly incorrect for this drive as it looks like its a Seagate
 version of the old Samsung drive.
 
 Could you provide the information from:-
 camcontrol identify ada0
 
     Regards
     Steve

From: "Vladislav V. Prodan" <admin@support.od.ua>
To: Steven Hartland <killing@multiplay.co.uk>
Cc: bug-followup@freebsd.org
Subject: Re: kern/187905: [zpool] Confusion zpool with a block size in HDD -
 block size: 512B configured, 4096B native
Date: Mon, 24 Mar 2014 21:27:28 +0200

 --e89a8f923df21bc29c04f55f3bfe
 Content-Type: text/plain; charset=UTF-8
 
 2014-03-24 21:09 GMT+02:00 Steven Hartland <killing@multiplay.co.uk>:
 
 > This matches the 4K quirk for Seagate Barracuda Green Advanced Format (4k)
 > drives        {
 >                /* Seagate Barracuda Green Advanced Format (4k) drives */
 >                { T_DIRECT, SIP_MEDIA_FIXED, "ATA", "ST???DM*", "*" },
 >                /*quirks*/DA_Q_4K
 >        },
 > ---
 >        {
 >                /* Seagate Barracuda Advanced Format (4k) drives */
 >                { T_DIRECT, SIP_MEDIA_FIXED, "*", "ST????DM*", "*" },
 >                /*quirks*/ADA_Q_4K
 >        },
 >
 > This is possibly incorrect for this drive as it looks like its a Seagate
 > version of the old Samsung drive.
 >
 > Could you provide the information from:-
 > camcontrol identify ada0
 >
 
 
 Thanks for the reply.
 Here's the output:
 
 # camcontrol identify ada0
 pass0: <ST500DM005 HD502HJ 1AJ10001> ATA-8 SATA 2.x device
 pass0: 150.000MB/s transfers (SATA, UDMA5, PIO 8192bytes)
 
 protocol              ATA/ATAPI-8 SATA 2.x
 device model          ST500DM005 HD502HJ
 firmware revision     1AJ10001
 serial number         S20BJ90D306953
 WWN                   50004cf209d3bdd6
 cylinders             16383
 heads                 16
 sectors/track         63
 sector size           logical 512, physical 512, offset 0
 LBA supported         268435455 sectors
 LBA48 supported       976773168 sectors
 PIO supported         PIO4
 DMA supported         WDMA2 UDMA6
 media RPM             7200
 
 Feature                      Support  Enabled   Value           Vendor
 read ahead                     yes      yes
 write cache                    yes      yes
 flush cache                    yes      yes
 overlap                        no
 Tagged Command Queuing (TCQ)   no       no
 Native Command Queuing (NCQ)   yes              32 tags
 SMART                          yes      yes
 microcode download             yes      yes
 security                       yes      no
 power management               yes      yes
 advanced power management      yes      no      0/0x00
 automatic acoustic management  yes      yes     254/0xFE        254/0xFE
 media status notification      no       no
 power-up in Standby            yes      no
 write-read-verify              no       no
 unload                         no       no
 free-fall                      no       no
 Data Set Management (DSM/TRIM) no
 Host Protected Area (HPA)      yes      no      976773168/976773168
 HPA - Security                 no
 
 
 
 
 -- 
 Vladislav V. Prodan
 System & Network Administrator
 http://support.od.ua
 +380 67 4584408, +380 99 4060508
 VVP88-RIPE
 
 --e89a8f923df21bc29c04f55f3bfe
 Content-Type: text/html; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable
 
 <div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><br><div class=3D"gmail=
 _quote">2014-03-24 21:09 GMT+02:00 Steven Hartland <span dir=3D"ltr">&lt;<a=
  href=3D"mailto:killing@multiplay.co.uk" target=3D"_blank">killing@multipla=
 y.co.uk</a>&gt;</span>:<br>
 
 <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
 left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p=
 adding-left:1ex">This matches the 4K quirk for Seagate Barracuda Green Adva=
 nced Format (4k) drives =C2=A0 =C2=A0 =C2=A0 =C2=A0{<br>
 
 
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/* Seagate Barracuda=
  Green Advanced Format (4k) drives */<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{ T_DIRECT, SIP_MEDI=
 A_FIXED, &quot;ATA&quot;, &quot;ST???DM*&quot;, &quot;*&quot; },<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/*quirks*/DA_Q_4K<br=
 >
 =C2=A0 =C2=A0 =C2=A0 =C2=A0},<br>
 ---<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0{<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/* Seagate Barracuda=
  Advanced Format (4k) drives */<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{ T_DIRECT, SIP_MEDI=
 A_FIXED, &quot;*&quot;, &quot;ST????DM*&quot;, &quot;*&quot; },<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/*quirks*/ADA_Q_4K<b=
 r>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0},<br>
 <br>
 This is possibly incorrect for this drive as it looks like its a Seagate<br=
 >
 version of the old Samsung drive.<br>
 <br>
 Could you provide the information from:-<br>
 camcontrol identify ada0<br></blockquote><div><br></div><div><br></div><div=
 ><span id=3D"result_box" class=3D"" lang=3D"en"><span id=3D"result_box" cla=
 ss=3D"" lang=3D"en"><span class=3D"">Thanks for the reply</span><span class=
 =3D"">.</span></span><br>
 
 <span class=3D"">Here&#39;s the output</span><span class=3D"">:</span></spa=
 n><br></div><div><span class=3D"" lang=3D"en"><span class=3D""><br></span><=
 /span></div><div><div># camcontrol identify ada0</div><div>pass0: &lt;ST500=
 DM005 HD502HJ 1AJ10001&gt; ATA-8 SATA 2.x device</div>
 
 <div>pass0: 150.000MB/s transfers (SATA, UDMA5, PIO 8192bytes)</div><div><b=
 r></div><div>protocol =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ATA/A=
 TAPI-8 SATA 2.x</div><div>device model =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ST=
 500DM005 HD502HJ</div><div>firmware revision =C2=A0 =C2=A0 1AJ10001</div>
 
 <div>serial number =C2=A0 =C2=A0 =C2=A0 =C2=A0 S20BJ90D306953</div><div>WWN=
  =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 50004cf209d=
 3bdd6</div><div>cylinders =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 16383</=
 div><div>heads =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 16</=
 div><div>sectors/track =C2=A0 =C2=A0 =C2=A0 =C2=A0 63</div><div>sector size=
  =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 logical 512, physical 512, offset 0</di=
 v>
 
 <div>LBA supported =C2=A0 =C2=A0 =C2=A0 =C2=A0 268435455 sectors</div><div>=
 LBA48 supported =C2=A0 =C2=A0 =C2=A0 976773168 sectors</div><div>PIO suppor=
 ted =C2=A0 =C2=A0 =C2=A0 =C2=A0 PIO4</div><div>DMA supported =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 WDMA2 UDMA6</div><div>media RPM =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 7200</div><div>
 
 <br></div><div>Feature =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0Support =C2=A0Enabled =C2=A0 Value =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 Vendor</div><div>read ahead =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 yes =C2=A0 =C2=A0 =C2=A0yes</=
 div><div>write cache =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0yes =C2=A0 =C2=A0 =C2=A0yes</div><div>flush cache =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0yes =C2=A0 =
 =C2=A0 =C2=A0yes</div>
 
 <div>overlap =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
  =C2=A0 =C2=A0 =C2=A0no</div><div>Tagged Command Queuing (TCQ) =C2=A0 no =
 =C2=A0 =C2=A0 =C2=A0 no</div><div>Native Command Queuing (NCQ) =C2=A0 yes =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A032 tags</div><div>SMART =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0yes =C2=A0 =C2=A0 =C2=A0yes</div><div>
 
 microcode download =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 yes =C2=A0 =C2=
 =A0 =C2=A0yes</div><div>security =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 yes =C2=A0 =C2=A0 =C2=A0no</div><div>pow=
 er management =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 yes =C2=A0 =
 =C2=A0 =C2=A0yes</div><div>advanced power management =C2=A0 =C2=A0 =C2=A0ye=
 s =C2=A0 =C2=A0 =C2=A0no =C2=A0 =C2=A0 =C2=A00/0x00</div>
 
 <div>automatic acoustic management =C2=A0yes =C2=A0 =C2=A0 =C2=A0yes =C2=A0=
  =C2=A0 254/0xFE =C2=A0 =C2=A0 =C2=A0 =C2=A0254/0xFE</div><div>media status=
  notification =C2=A0 =C2=A0 =C2=A0no =C2=A0 =C2=A0 =C2=A0 no</div><div>powe=
 r-up in Standby =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0yes =C2=A0 =C2=A0 =
 =C2=A0no</div><div>write-read-verify =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0no =C2=A0 =C2=A0 =C2=A0 no</div>
 
 <div>unload =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 no =C2=A0 =C2=A0 =C2=A0 no</div><div>free-fall =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0no =C2=
 =A0 =C2=A0 =C2=A0 no</div><div>Data Set Management (DSM/TRIM) no</div><div>=
 Host Protected Area (HPA) =C2=A0 =C2=A0 =C2=A0yes =C2=A0 =C2=A0 =C2=A0no =
 =C2=A0 =C2=A0 =C2=A0976773168/976773168</div>
 
 <div>HPA - Security =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
  no</div></div><div><br></div><div>=C2=A0</div></div><br clear=3D"all"><div=
 ><br></div>-- <br>Vladislav V. Prodan =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0<br>System &amp; Network Administrator<br><a href=3D"http://support.o=
 d.ua" target=3D"_blank">http://support.od.ua</a> =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0<br>
 
 +380 67 4584408, +380 99 4060508<br>VVP88-RIPE
 </div></div>
 
 --e89a8f923df21bc29c04f55f3bfe--
>Unformatted:
