Thank you for writing this thread. After noticing DIF error on all 4 of my new SAS disks on a fresh TrueNAS Scale install, I tried following the instructions laid here.
First I used "sg_readcap -l /dev/sda" commands and found out 3 disks had p1 flag. I tried looking at iDrac to see if my H730p perc had anything to with it, and it said T01 protection is disabled.. i tried "time sg_format -v -F /dev/sda", but after 16 hours on a 6TB disk, it said it has Protection 2 now. So I bought HBA330.
1 week later, I try same command "time sg_format -v -F /dev/sda" with no effect. Since I do have 4096K sector disks, I tried to do "time sg_format -v -F -s 4096 /dev/sda", only for it to become a 528 4224k disk. After that I tried time sg_format -v -F -s 512 /dev/sda, and before it started the command, i exited. To double check and write down my current "sg_readcap -l /dev/sda" values. It said that the device is not ready. I rebooted R730xD server and now my disk is not shown on fdisk, lsblk says it's 0B large and sg_readcap says: "Device not ready".
What are my options? Thank you for your help in advance :)