Managing SAS Disks in Linux
Removing type 1 protection
Some HGST/Oracle/Sun drives report Type 1 DIF protection.
smartctl -i /dev/sdl
=== START OF INFORMATION SECTION ===
Vendor: HGST
Product: H7240AS60SUN4.0T
Revision: A3A0
Compliance: SPC-4
User Capacity: 4,000,787,030,016 bytes [4.00 TB]
Logical block size: 512 bytes
Formatted with type 1 protection
8 bytes of protection information per logical block
LU is fully provisioned
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Logical Unit id: 0x5000cca03b49d150
Serial number: 001403E9LHUX PBH9LHUX
Device type: disk
Transport protocol: SAS (SPL-4)
Local Time is: Tue Dec 12 22:50:50 2023 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Enabled
We can reformat SAS drive and get rid of that Type 1 DIF field.
sg_format -v --format --fmtpinfo=0 --pfu=0 --size=512 --six /dev/sdl
AWRE and ARRE
AWRE - Automatic Write Reassignment Enabled
ARRE - Automatic Read Reassignment Enabled
Check your drive
sdparm --get awre,arre /dev/sda
/dev/sda: HGST H7240AS60SUN4.0T A3A0
AWRE 1 [cha: y, def: 1, sav: 1]
ARRE 1 [cha: y, def: 1, sav: 1]