Skip to content

dmaziuk/naspi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

raspberry pi zfs nas

breadboard build

Note

Version 1 was built on Radxa SATA HAT. I fried that and while I was waiting for the new batch of HATs from Radxa, CM4 came out. This is CM4 build, switch to radxa branch for details on v.1.

parts

zpool

ZFS is very flexible when it comes to disk configuration, I opted for 3x spinnning rust HDDs in raidz1 (similar to RAID-5) set and an SSD for caches (and other things like system swap). This doesn't have a 2nd SSD to mirror SLOG, but I'm not entirely sure how critical that is nowadays, especially on lightly used home NAS. Hence 4-port SATA controller and 4-port disk cage.

software and setup

OS: ubuntu-20.04 LTS server (64-bit ARM). I plan to switch to Alpine someday but I'll have to figure out their kernel-building setup (or wait till they build one w/ all the required modules), in the meantime Ubuntu kernel recognizes the Marvel chip out of the box and may have the SATA modules in one of the "universe" packages. I built my own anyway, use e.g. https://askubuntu.com/questions/1238261/customizing-the-kernel-arm64-using-ubuntu-20-04-lts-on-a-raspberry-pi-4#1242267 as a reference if not familiar with debian/rules.

Before build, edit debian.raspi/config/config.common.ubuntu and set CONFIG_SATA_AHCI=m. This will turn on some other option that's hiding in the maze of config files, just start the build and wait for it to pop up and hit enter.

After installing the kernel, sudo apt install zfsutils-linux and reboot.

pics or it didn't happen

breadboard build: bbb3.jpg

About

raspberry pi zfs nas

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published