FreeNas : Unable to format a disk to 512 sector size

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

nephri

Active Member
Sep 23, 2015
541
106
43
46
Paris, France
Hi,

I have disks in an enclosure (HGST 4U60) and they are all formatted with 520 bytes per sector.

I tried
sg_format --format --size=512 /dev/da10

The command complete successfully (after hours) but after that when i did

diskinfo -c /dev/da10

it always report

Code:
da10
        520             # sectorsize
        2000398933520   # mediasize in bytes (1.8T)
        3846921026      # mediasize in sectors
        0               # stripesize
        0               # stripeoffset
        239459          # Cylinders according to firmware.
        255             # Heads according to firmware.
        63              # Sectors according to firmware.
        YGH1E3DD                # Disk ident.
        id1,enc@n5000ccab020379ff/type@0/slot@37/elmdesc@Drive_Slot_#55_5000CCA01C3BE796_       # Physical path

I/O command overhead:
diskinfo: read: Invalid argument
This disk use a multipath, that mean i have also a /dev/da8 as passive device and a /dev/multipath/disk1
I did'nt know if it's a concern.

Someone have idea ?
 

nephri

Active Member
Sep 23, 2015
541
106
43
46
Paris, France
When i did an sg_format for see what i have:

Code:
[root@nasas] ~# sg_format -v /dev/da10
    HITACHI   HUS72302CLAR2000  C442   peripheral_type: disk [0x0]
      PROTECT=1
      << supports protection information>>
      Unit serial number: YGH1E3DD
      LU name: 5000cca01c3af458
    mode sense (10) cdb: 5a 00 01 00 00 00 00 00 fc 00
Mode Sense (block descriptor) data, prior to changes:
  Number of blocks=3907029168 [0xe8e088b0]
  Block size=512 [0x200]
    read capacity (10) cdb: 25 00 00 00 00 00 00 00 00 00
Read Capacity (10) results:
   Number of logical blocks=3907029168
   Logical block size=512 bytes
No changes made. To format use '--format'. To resize use '--resize'
but when i did a diskinfo, i have:

Code:
[root@nasas] ~# diskinfo -v /dev/da10
/dev/da10
        520             # sectorsize
        2000398933520   # mediasize in bytes (1.8T)
        3846921026      # mediasize in sectors
        0               # stripesize
        0               # stripeoffset
        239459          # Cylinders according to firmware.
        255             # Heads according to firmware.
        63              # Sectors according to firmware.
        YGH1E3DD                # Disk ident.
        id1,enc@n5000ccab020379ff/type@0/slot@37/elmdesc@Drive_Slot_#55_5000CCA01C3BE796_       # Physical path
So, i did'nt know if i'm in 520 or 512 bytes per sectors.
All what i say, if i try to create a pool with this disk (the /dev/multipath/disk1) , i have this error

Code:
 Unable to GPT format the disk "multipath/disk1