[OmniOS-discuss] trouble with ashift and 4k blocks

Doug Hughes doug at will.to
Sat Aug 22 21:49:09 UTC 2015


I'm following this page: 
http://wiki.illumos.org/display/illumos/ZFS+and+Advanced+Format+disks

but I just can't get my HGST 4K disks to get the 4TB capacity in the zpool.

I've cross referenced and verified multiple times and this should work 
for sd_config_list=

     "ATA     HGST HDS724040AL", "physical-block-size:4096",

Here's some sample output to confirm:
# iostat -Er | grep -i vendor | sort | uniq | grep HGST | head -3
Vendor: ATA      ,Product: HGST HDS724040AL ,Revision: A580 ,Serial No: 
PK1331P1GMPSSY
Vendor: ATA      ,Product: HGST HDS724040AL ,Revision: A580 ,Serial No: 
PK1331PAGKW5RV
Vendor: ATA      ,Product: HGST HDS724040AL ,Revision: A580 ,Serial No: 
PK1331PAGP029V

The number of spaces is definitely correct.
# echo ::sd_state | mdb -k | egrep '(^un|_blocksize)'
un 0: ffffff134e4a7300
     un_sys_blocksize = 0x200
     un_tgt_blocksize = 0x200
     un_phy_blocksize = 0x200
     un_f_tgt_blocksize_is_valid = 0x1
un 1: ffffff137abaf340
     un_sys_blocksize = 0x200
     un_tgt_blocksize = 0x200
     un_phy_blocksize = 0x200
     un_f_tgt_blocksize_is_valid = 0x1
un 2: ffffff137b2990c0
     un_sys_blocksize = 0x200
     un_tgt_blocksize = 0x200
     un_phy_blocksize = 0x200
     un_f_tgt_blocksize_is_valid = 0x1
un 3: ffffff138d713900
     un_sys_blocksize = 0x200
     un_tgt_blocksize = 0x200
     un_phy_blocksize = 0x200
     un_f_tgt_blocksize_is_valid = 0x1


should be 0x1000, right?

sample format output:
       3. c0t3d0 <ATA-HGST HDS724040AL-A580-2.00TB>
           /pci at 0,0/pci8086,340c at 5/pci1000,3150 at 0/sd at 3,0
        4. c0t4d0 <ATA-HGST HDS724040AL-A580-2.00TB>
           /pci at 0,0/pci8086,340c at 5/pci1000,3150 at 0/sd at 4,0
        5. c0t5d0 <ATA-HGST HDS724040AL-A580-2.00TB>

format> inq
Vendor:   ATA
Product:  HGST HDS724040AL
Revision: A580

update_drv -vf sd     doesn't seem to help, neither does reboot.

zpool create doesn't have the argument to specify ashift, either.

Any advice?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20150822/c917900e/attachment.html>


More information about the OmniOS-discuss mailing list