[OpenIndiana-discuss] How can one test in situ, and under OI, the physical blocksize a SATA disk actually reports??

Rich rercola at acm.jhu.edu
Wed Mar 20 14:17:37 UTC 2013


Modern versions of smartctl can also tell you:
smartctl 6.1 2013-03-16 r3800 [i386-pc-solaris2.11] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     ST2000DL003-9VT166
Serial Number:    5YD5LYEW
LU WWN Device Id: 5 000c50 045942cc1
Firmware Version: CC3C
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5900 rpm
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Mar 20 10:17:02 2013 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

- Rich

On Wed, Mar 20, 2013 at 10:10 AM, Hans J. Albertsson
<hans.j.albertsson at branneriet.se> wrote:
> But still, your suggestion helped me find a bunch of mistakes on the way...
> So THANK YOU , and never mind my cantankerous self...
>
>
> On 2013-03-20 14:47, Hans J. Albertsson wrote:
>>
>> Well, what I was looking for is what the physical drive without any
>> prodding from sd.conf would respond...
>>
>>
>> On 2013-03-20 14:21, Reginald Beardsley wrote:
>>>
>>> FWIW
>>>
>>> This is how and shows what an ST2000DM001 properly configured using
>>> sd.conf reports:
>>>
>>>
>>> oi%rhb {2} echo "::sd_state" | mdb -k | egrep '^un|blocksize'
>>> un 0: ffffff0140ddfd00
>>>      un_sys_blocksize = 0x200
>>>      un_tgt_blocksize = 0x200
>>>      un_phy_blocksize = 0x1000
>>>      un_f_tgt_blocksize_is_valid = 1
>>>
>>> 0x200 = 512 bytes
>>> 0x1000 = 4096 bytes
>>>
>>> Have Fun!
>>> Reg
>>>
>>>
>>> --- On Wed, 3/20/13, Hans J. Albertsson <hans.j.albertsson at branneriet.se>
>>> wrote:
>>>
>>>> From: Hans J. Albertsson <hans.j.albertsson at branneriet.se>
>>>> Subject: [OpenIndiana-discuss] How can one test in situ, and under OI,
>>>> the physical blocksize a SATA disk actually reports??
>>>> To: openindiana-discuss at openindiana.org
>>>> Date: Wednesday, March 20, 2013, 8:05 AM
>>>> I absolutely need such a tool. Don't
>>>> ask... ah well, to impress a silly would-be colleague.
>>>>
>>>> I tried parted and gparted and a few others: but I can't
>>>> seem to make them report what I want to know.
>>>>
>>>> cfgadm, luxadm, ....???
>>>>
>>>>
>>>> _______________________________________________
>>>> OpenIndiana-discuss mailing list
>>>> OpenIndiana-discuss at openindiana.org
>>>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>>>
>>> _______________________________________________
>>> OpenIndiana-discuss mailing list
>>> OpenIndiana-discuss at openindiana.org
>>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>
>>
>>
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
>
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss



More information about the OpenIndiana-discuss mailing list