Fix (49b974f8bfd4) merged into truenas/12.0-stable branch.
Alexander Motin August 19, 2021 at 9:07 PM
After deeper investigation I believe that the problem goes from inability of the driver to handle high priority request descriptor allocation error to handle disks detach. There are 102 disks detaching same time, but the HBAs used have HighPriorityCredit of only 8. It is curios that the HBA used for internal disks reports 128 there (different model, different firmware, ...).
Large JBOD unplug from SAS9305-16e makes some disk stuck in half-detached state, making impossible later hot-plug.