This guide covers an array of formatting related issues with SAS / SATA hard disk for usage in general purpose server environments.
Largely speaking all instructions here should perform reasonably well in all linux environments. Some systems though such as TrueNas do not allow the installation of additional packages needed to fix your issues effectively. For that reason I would consider to boot from an iso to avoid any issues. For the purpose of reformating disks ShredOS is a good choice.
- it is lightweight;
- it comes with support for most sas / raid controllers;
- it comes with support for plenty of network cards;
- it comes prebundled with the parallel package to allow you executing all procedures in this guides on multiple disks at the same time.
- Download the iso from the ShredOS Repository.
- Configure Telnet on ShredOS to access headless systems if neccessary,
- Switch after the boot of ShredOS to a virtual terminal by pressing ALT + F3,
- Execute the instructions Change Block size or Remove the Data Integrity Feature from disks.
- Change Block size from 3Par or EMC Storrage solution disks from 520 to 512 / 4096 bytes
- Remove the Data Integrity Feature from disks
- Reformating 520k Drives, Level 1 Techs Forum, 2018
- Troubleshooting Disk Format Warnings in TrueNas Scale, Truenas Forum, constantly updated
- ShredOS
- Special thanks got to @PartialVolume and his tool ShredOS. It has been immensely helpful for disk sanitization for quiet some time now and is the Open Source reference in that field;
- TrueNas Community Member Daisuke for giving the most dettailed description and solution approach;
- Wendell Wilson from Level 1 Tech who was the first one describing the problem and the solution.