ZFS and Pcie Sata Card for Raspberry Pi CM4

Greatings,
I am working on a Hardware Project to revive an Obsolete 4-Bay Nas using a CM4, MircoPC and https://pipci.jeffgeerling.com/cards_storage/iocrest-jmb585-m2-sata.html jmb585 Card.
Considering Raspbian suporting said Hardware I wonder if DietPI dose as well.
For the Storige I would like to use four 12tb Drives in Raid 5 and ZFS.
Se here: https://sysops.tv/?page_id=28
Would it be posible on DietPI?
If yes it would make a greate DietPI- Software Pakage!
I’m Curius what you Think!

Hi,

try to install Raspbian OS and see if it is working. Once system is running, you could use our PREP script to install DietPi on top. https://dietpi.com/docs/hardware/#make-your-own-distribution

But I’m not sure if there are special drivers needed for Raid 5 and ZFS. If yes, it could be a challenge as PREP will remove all apt packages not part of the default build.

Per the many hours of work of Jeff Geerling…Raspberry pi OS supports SATA built in
https://www.jeffgeerling.com/blog/2021/raspberry-pi-os-now-has-sata-support-built

For ZFS support installing OpenZFS packages might help you get ZFS built on the SATA drives…but all configuration would have to be done command line

OpenMediaVault does support ZFS as a plugin and I think FreeNAS (not sure it supports ARM though) does it out of the box

However I think OpenZFS works best on 64bit ARM builds

With that said…the OS can boot from EXT4 on the SD CARD, load the ZFS drivers, then be able to mount and use them as usual perhaps

It would be better to build your zpool with a single drive failure redundancy like RAID-5 a raidz1
There is ALOT of commands that one needs to be familiar with in order to build and maintain a ZFS raid array
https://www.thegeekdiary.com/zfs-tutorials-creating-zfs-pools-and-file-systems/

There are alot of upsides and downsides of using ZFS
https://louwrentius.com/the-hidden-cost-of-using-zfs-for-your-home-nas.html

Oh and those boards can be gotten directly from China (for a long wait of course) alot cheaper than buying locally
IOCREST M.2 (PCIe 3.0) to 5 Ports SATA III 6G SSD Adapter with SATAIII Cable support UEFI