"PI - Protection Information" drives?

Bengt Ahlgren bengt.ahlgren at ri.se
Mon Mar 5 17:56:21 UTC 2018


Karli Sjöberg <karli at inparadise.se> writes:

> Den 5 mars 2018 18:19 skrev Bengt Ahlgren <bengt.ahlgren at ri.se>:
>
>  I've recently gotten a (Dell-branded) Seagate drive which seems to be
>  formatted with something called "Protection Information (PI) type 2".
>
>  CDB read/write commands of size 6 seems to work, but any read/write
>  commands of size 10 (or larger) do not work:
>
>  (da20:mps0:0:11:0): READ(10). CDB: 28 00 00 00 00 00 00 01 00 00 
>  (da20:mps0:0:11:0): CAM status: SCSI Status Error
>  (da20:mps0:0:11:0): SCSI status: Check Condition
>  (da20:mps0:0:11:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code)
>  (da20:mps0:0:11:0): Error 22, Unretryable error
>
>  smartctl output says:
>
>  === START OF INFORMATION SECTION ===
>  Vendor: SEAGATE
>  Product: ST600MM0238
>  Revision: BS04
>  Compliance: SPC-4
>  User Capacity: 600,127,266,816 bytes [600 GB]
>  Logical block size: 512 bytes
>  Formatted with type 2 protection
>  LU is fully provisioned
>  Rotation Rate: 10000 rpm
>  Form Factor: 2.5 inches
>  Logical Unit id: XXX
>  Serial number: YYY
>  Device type: disk
>  Transport protocol: SAS (SPL-3)
>  Local Time is: Mon Mar 5 17:54:09 2018 CET
>  SMART support is: Available - device has SMART capability.
>  SMART support is: Enabled
>  Temperature Warning: Disabled or Not Supported
>  Read Cache is: Enabled
>  Writeback Cache is: Disabled
>
>  Any advice? Does this "Protection Information" work at all with
>  FreeBSD? Or do I simply need to reformat the drive without this "PI"
>  stuff?
>
> Had this problem except they were IBM branded. After much googling I found this:
> https://forums.freenas.org/index.php?threads/scsi-errors-unable-to-wipe-drives-9240-9211-w-ibm-seagate-disks.43453/#post-287162
>
>
> PIA if you ask me :)

Thanks for the pointer!

Do I need that sg_format utility, or will camcontrol format also do the
right thing?

Bengt


More information about the freebsd-fs mailing list