8TB Sun/hgst drive showing as 7.9TB (and not 8.0TB like others)

SMnasMAN

Contributor
Joined
Dec 2, 2018
Messages
177
I have 7x 8tb HGST "he8" drives i had purchased from ebay. and then one 8tb SUN/HGST "he8" drive from ebay.

I need to use them in a 8x disk vDEV to add to my existing pool, however the 1x 8tb SUN/HGST "he8" is showing about 140gb less space. (thus if i use it in my new vDEV, i will be forced to loose that same 150gb on all 8x disks, thus loosing around 900gb in aggregate )

Does anyone know if its possible for me to get this disk to show/use its proper 8.0TB like the other 7x disks?

so im pretty sure this is due to the drives unique firmware and/or related to 520b sector size vs standard 512b sector size. (is prob. a netapp disk or a custom/unique disk for some other SAN). But it shows as 512b in smartctl / diskinfo (see image or data below).

Im thinking about trying the steps in this post:
Repurposing netapp disk trays with FreeBSD and ZFS – Sysop.ca

but wanted to check here first to see if others have any input.

One thing i did try yesterday was this:

root@freenas:~ # sg_format -v --format --size=512 /dev/da44


(it took about 20-hours to complete, and the result was the exact same as before, ie still ~7.9tb , not 8.0tb).

anyone have any info/ideas? (or do i just need to bit the bullet and either take the~900gb hit, or else buy 1 more 8.0tb non sun hgst drive).

thanks!

comparisons of data from a "normal" 8tb i have, vs this "problem sun" 8tb. (same data is below in txt format):
sunCapture.JPG

volMGRCapture.JPG

Code:
**NORMAL DISK**

root@freenas:~ # diskinfo -v da43
da43
        512             # sectorsize
        8001563222016   # mediasize in bytes (7.3T)
        15628053168     # mediasize in sectors
        4096            # stripesize
        0               # stripeoffset
        972801          # Cylinders according to firmware.
        255             # Heads according to firmware.
        63              # Sectors according to firmware.
        HP MB8000JEQVA  # Disk descr.
        VLG1MYGV        # Disk ident.
        id1,enc@n5003048001eae9fd/type@0/slot@3/elmdesc@Slot_03 # Physical path
        No              # TRIM/UNMAP support
        7200            # Rotation rate in RPM
        Not_Zoned       # Zone Mode


Geom name: da42
Providers:
1. Name: da42
   Mediasize: 8001563222016 (7.3T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   descr: HP MB8000JEQVA
   lunid: 5000cca254a7965c
   ident: VKJZ55MV
   rotationrate: 7200
   fwsectors: 63
   fwheads: 255


root@freenas:~ # smartctl -a /dev/da43
smartctl 6.6 2017-11-05 r4594 [FreeBSD 11.2-STABLE amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               HP
Product:              MB8000JEQVA
Revision:             HPDB
Compliance:           SPC-4
User Capacity:        8,001,563,222,016 bytes [8.00 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
Logical Unit id:      0x5000cca26002fd0c
Serial number:        VLG1MYGV
Device type:          disk
Transport protocol:   SAS (SPL-3)


**PROBLEM SUN DISK**

root@freenas:~ # diskinfo -v da44
da44
        512             # sectorsize
        7865536647168   # mediasize in bytes (7.2T)
        15362376264     # mediasize in sectors
        4096            # stripesize
        0               # stripeoffset
        956263          # Cylinders according to firmware.
        255             # Heads according to firmware.
        63              # Sectors according to firmware.
        HGST H7280A520SUN8.0T   # Disk descr.
        001523PGHSUV        2EGGHSUV    # Disk ident.
        id1,enc@n5003048001eae9fd/type@0/slot@4/elmdesc@Slot_04 # Physical path
        No              # TRIM/UNMAP support
        7200            # Rotation rate in RPM
        Not_Zoned       # Zone Mode
Geom name: da44
Providers:
1. Name: da44
   Mediasize: 7865536647168 (7.2T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   descr: HGST H7280A520SUN8.0T
   lunid: 5000cca23b1a618c
   ident: 001523PGHSUV        2EGGHSUV
   rotationrate: 7200
   fwsectors: 63
   fwheads: 255

root@freenas:~ # smartctl -a /dev/da44
smartctl 6.6 2017-11-05 r4594 [FreeBSD 11.2-STABLE amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               HGST
Product:              H7280A520SUN8.0T
Revision:             P9E2
Compliance:           SPC-4
User Capacity:        7,865,536,647,168 bytes [7.86 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
Formatted with type 1 protection
LU is fully provisioned
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
Logical Unit id:      0x5000cca23b1a618c
Serial number:        001523PGHSUV        2EGGHSUV
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Thu Sep  5 18:30:46 2019 CDT
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK


camcontrol devlist of a good 8tb disk and this problem 8tb disk
Code:
root@freenas:~ # camcontrol devlist
...
<HGST H7280A520SUN8.0T P9E2>       at scbus8 target 40 lun 0 (da44,pass49)
<ATA HGST HUH728080AL GP23>        at scbus8 target 53 lun 0 (pass32,da27)
 

SMnasMAN

Contributor
Joined
Dec 2, 2018
Messages
177
Thank you for the reply-

It does still look like the drive is showing reduced capacity (ie still ~7.9tb , exactly like before , after running:
sg_format -v --format --size=512 --fmtpinfo=0 --pfu=0 /dev/da44 (still shwoing 7.9tb)
so i then did a quick wipe via freenas gui (still 7.9tb)
fnnCapture.JPG

I also ran: sg_format --resize --count=-1 /dev/da44 (this was a suggestion from a user on another forum)
which returned an Illegal Request.

(i did also power cycle the drive, and again tried a quick wipe , and again: sg_format --resize --count=-1 /dev/da44
same result).

thanks
output:
Code:
root@freenas:~ # sg_format -v --format --size=512 --fmtpinfo=0 --pfu=0 /dev/da44
    HGST      H7280A520SUN8.0T  P9E2   peripheral_type: disk [0x0]
      PROTECT=1
      << supports protection information>>
      Unit serial number: 001523PGHSUV        2EGGHSUV
      LU name: 5000cca23b1a618c
    mode sense (10) cdb: 5a 00 01 00 00 00 00 00 fc 00
Mode Sense (block descriptor) data, prior to changes:
Mode sense number of blocks maxed out, set longlba
    mode sense (10) cdb: 5a 10 01 00 00 00 00 00 fc 00
Mode Sense (block descriptor) data, prior to changes:
  <<< longlba flag set (64 bit lba) >>>
  Number of blocks=15362376264 [0x393ab4248]
  Block size=512 [0x200]

A FORMAT UNIT will commence in 15 seconds
    ALL data on /dev/da44 will be DESTROYED
        Press control-C to abort

A FORMAT UNIT will commence in 10 seconds
    ALL data on /dev/da44 will be DESTROYED
        Press control-C to abort

A FORMAT UNIT will commence in 5 seconds
    ALL data on /dev/da44 will be DESTROYED
        Press control-C to abort
    format unit cdb: 04 18 00 00 00 00

Format unit has started
Format in progress, 0.11% done
Format in progress, 0.27% done
...
Format in progress, 99.77% done
Format in progress, 99.89% done
FORMAT UNIT Complete



root@freenas:~ # smartctl -a /dev/da44
smartctl 6.6 2017-11-05 r4594 [FreeBSD 11.2-STABLE amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               HGST
Product:              H7280A520SUN8.0T
Revision:             P9E2
Compliance:           SPC-4
User Capacity:        7,865,536,647,168 bytes [7.86 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
LU is fully provisioned
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
Logical Unit id:      0x5000cca23b1a618c
Serial number:        001523PGHSUV        2EGGHSUV
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Sat Sep  7 13:27:20 2019 CDT
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Current Drive Temperature:     39 C
Drive Trip Temperature:        85 C

Manufactured in week 23 of year 2015
Specified cycle count over device lifetime:  50000
Accumulated start-stop cycles:  13
Specified load-unload count over device lifetime:  600000
Accumulated load-unload cycles:  1178
Elements in grown defect list: 0

Vendor (Seagate) cache information
  Blocks sent to initiator = 72392146539249664

Error counter log:
           Errors Corrected by           Total   Correction     Gigabytes    Total
               ECC          rereads/    errors   algorithm      processed    uncorrected
           fast | delayed   rewrites  corrected  invocations   [10^9 bytes]  errors
read:          0        0         0         0     630683     107218.382           0
write:         0        0         0         0    2018468     162318.916           0
verify:        0        0         0         0      19372          0.000           0

Non-medium error count:        0

No self-tests have been logged

root@freenas:~ #



sg_readcap -l output:

Code:
root@freenas:~ # sg_readcap -l /dev/da44
Read Capacity results:
   Protection: prot_en=0, p_type=0, p_i_exponent=0
   Logical block provisioning: lbpme=0, lbprz=0
   Last logical block address=15362376263 (0x393ab4247), Number of logical blocks=15362376264
   Logical block length=512 bytes
   Logical blocks per physical block exponent=3 [so physical block length=4096 bytes]
   Lowest aligned logical block address=0
Hence:
   Device size: 7865536647168 bytes, 7501160.3 MiB, 7865.54 GB
root@freenas:~ #
root@freenas:~ #

** VS A PROPER 8TB: **

root@freenas:~ # sg_readcap -l /dev/da43
Read Capacity results:
   Protection: prot_en=0, p_type=0, p_i_exponent=0
   Logical block provisioning: lbpme=0, lbprz=0
   Last logical block address=15628053167 (0x3a3812aaf), Number of logical blocks=15628053168
   Logical block length=512 bytes
   Logical blocks per physical block exponent=3 [so physical block length=4096 bytes]
   Lowest aligned logical block address=0
Hence:
   Device size: 8001563222016 bytes, 7630885.3 MiB, 8001.56 GB
root@freenas:~ #


sg_format --resize --count=-1 /dev/da44 output:
Code:
root@freenas:~ # sg_format --resize --count=-1 /dev/da44
    HGST      H7280A520SUN8.0T  P9E2   peripheral_type: disk [0x0]
      << supports protection information>>
      Unit serial number: 001523PGHSUV        2EGGHSUV
      LU name: 5000cca23b1a618c
Mode Sense (block descriptor) data, prior to changes:
Mode Sense (block descriptor) data, prior to changes:
  <<< longlba flag set (64 bit lba) >>>
  Number of blocks=15362376264 [0x393ab4248]
  Block size=512 [0x200]
MODE SELECT command: Illegal request
    try '-v' for more information
root@freenas:~ #
** I TRIED IT AGAIN, WITH THE -V AS SUGGESTED, SAME RESULT BUT MORE INFO**

root@freenas:~ # sg_format -v --resize --count=-1 /dev/da44
    HGST      H7280A520SUN8.0T  P9E2   peripheral_type: disk [0x0]
      PROTECT=1
      << supports protection information>>
      Unit serial number: 001523PGHSUV        2EGGHSUV
      LU name: 5000cca23b1a618c
    mode sense (10) cdb: 5a 00 01 00 00 00 00 00 fc 00
Mode Sense (block descriptor) data, prior to changes:
Mode sense number of blocks maxed out, set longlba
    mode sense (10) cdb: 5a 10 01 00 00 00 00 00 fc 00
Mode Sense (block descriptor) data, prior to changes:
  <<< longlba flag set (64 bit lba) >>>
  Number of blocks=15362376264 [0x393ab4248]
  Block size=512 [0x200]
    mode select (10) cdb: 55 11 00 00 00 00 00 00 22 00
mode select (10):
Descriptor format, current; Sense key: Illegal Request
Additional sense: Parameter list length error
  Descriptor type: Information:    >> descriptor too short
    00 00 00 00 00 00 00 00 00 00
  Descriptor type: Command specific: 0x0000000000000000
  Descriptor type: Sense key specific: Field pointer:
        Error in Command: byte 7
  Descriptor type: Field replaceable unit code: 0x20
  Descriptor type: Block commands: Incorrect Length Indicator (ILI) clear
  Descriptor type: Vendor specific [0x80]
    MODE SELECT command: Illegal request sense key, apart from Invalid opcode

 
Joined
Oct 18, 2018
Messages
969
Out of curiosity, what motivated picking up a helium drive? I was under the impression that the primary reason of using sealed drives filled with helium and the additional cost was so that they could operate more reliably at altitudes > 10000'. I have seen marking material promising they run a bit cheaper but I am skeptical.
 

SMnasMAN

Contributor
Joined
Dec 2, 2018
Messages
177
hey, my understanding is the HE is about power / heat savings (nothing to do with altitudes), i think its less friction than normal air or something similar.

Most 8tb HGST drives are "HE", and becuase i only use HGST drives, and wanted 8TB disks, the "HE" drives are what i ended up with (and at a good price, ~100$ each!). FWIW, there is a smart atribute that tells if the helium has escaped , or not - if it has escaped all is fine, the drive just consumes a bit more power / heat.

smartctl -a /dev/da44:

22 Helium_Level 0x0023 100 100 025 Pre-fail Always - 100

(i think this means the HE is still in the drive, its a 1 or 0 type value, in this case its "1" and not "0"
 
Joined
Oct 18, 2018
Messages
969
hey, my understanding is the HE is about power / heat savings (nothing to do with altitudes), i think its less friction than normal air or something similar.
I'm sure it is a bit of both. In a traditional non-sealed drive the read/write heads hover over a pocket of air to stay the right height from the platter. At high altitudes there isn't enough air density for this to work properly and the drive can have issues. I know there are drives which are listed as working at higher altitudes and I thought they were traditionally helium drives, but I'm having trouble digging up non-marketing material style articles. :shrug:
 
Top