Here is the error from sg_write_buffer:
root@pve1:/tmp# sg_write_buffer -v --in=/tmp/firmware.lod --length=1662976 --mode=5 /dev/sg10
sending single write buffer, mode=0x5, mpsec=0, id=0, offset=0, len=1662976
Write buffer cdb: 3b 05 00 00 00 00 19 60 00 00
Write buffer:
Descriptor format, current; Sense key: Illegal Request
ASC=26, vendor specific qualification ASCQ=99 (hex)
Descriptor type: Field replaceable unit code: 0x3f
Descriptor type: Vendor specific [0x80]
00 00 00 00 00 00 00 00 00 00 00 00 00 00
Write buffer failed: Illegal request, type: sense key, apart from Invalid opcode
root@pve1:/tmp#
Here is what it looks like when I flash one of the identical drives that doesn't have NETAPP firmware on it:
root@pve1:/tmp# sg_write_buffer -v --in=/tmp/firmware.lod --length=1662976 --mode=5 /dev/sg14
sending single write buffer, mode=0x5, mpsec=0, id=0, offset=0, len=1662976
Write buffer cdb: 3b 05 00 00 00 00 19 60 00 00
root@pve1:/tmp#
Here is SMARTCTL output for the NETAPP drive:
root@pve1:~# smartctl -i /dev/sg11
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.34-1-pve] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke,
www.smartmontools.org=== START OF INFORMATION SECTION ===
Vendor: NETAPP
Product: X316_SMKRE06TA07
Revision: NA01
Compliance: SPC-4
LU is fully provisioned
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Logical Unit id: 0x5000c50083aaafab
Serial number: Z4D2CZLB
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Sun May 14 13:39:00 2023 EDT