ZFS and Pcie Sata Card for Raspberry Pi CM4

Suggestions for features and software you would like to see in DietPi, goes here.
Post Reply
@The101ofLive
Posts: 1
Joined: Thu Aug 19, 2021 11:56 am

ZFS and Pcie Sata Card for Raspberry Pi CM4

Post by @The101ofLive »

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_st ... -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!
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: ZFS and Pcie Sata Card for Raspberry Pi CM4

Post by Joulinar »

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- ... stribution

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.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
WarHawk
Posts: 773
Joined: Thu Jul 20, 2017 8:55 am

Re: ZFS and Pcie Sata Card for Raspberry Pi CM4

Post by WarHawk »

Joulinar wrote: Fri Aug 20, 2021 10:10 am 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- ... stribution

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/ ... port-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
https://github.com/jrcichra/rpi-zfs-root

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-tutori ... e-systems/

There are alot of upsides and downsides of using ZFS
https://louwrentius.com/the-hidden-cost ... e-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
Post Reply