

Do not use a raid controller with Truenas. Use a HBA such as an LSI 9300 or 9207 (old but fine for HDD). Truemas manages the drive itself and any barrier to that (like device managed SMR drives and Rains controllers) means Truenas does not know where the data is, and you are likely to get data corruption at some point.
Get a used adaptec arc 82885T which as an expander card. It only needs molex to power it, and it allows the HBA to connect to up to several hundred data drives (HBA to expander to HDD). The documentation is straightforward to understand.
An example: https://ebay.us/m/SYvAxO