August 6, 2022 · zfs ubuntu raidz pool

Quick & Easy: Setting up ZFS raidz on Ubuntu

Simple guide to ZFS

Install zfs

sudo apt install zfs-dkms zfs-zed zfsutils-linux

Locate the drives you want into your array

Create raidz1 (similar to raid5) Samba/CIFS Pool for Windows Clients

add scrub task on reboot to crontab

Samba Config

[data]
path = /data
read only = no
browsable = yes
guest ok = no
writable = yes

replace failed drive

sudo ls /dev/disk/by-id/ | grep "ata"
sudo zpool replace data old-disk new-disk
sudo watch -n1 zpool status

Tweaks to improve Samba & small files access

destroy the pool (REMOVES DATA!)

sudo zpool destroy data (removes data!)

More Resources

Samba

  • LinkedIn
  • Tumblr
  • Reddit
  • Pinterest
  • Pocket
DigitalOcean Referral Badge
Keep my site online & receive a $200 60-day credit at DigitalOcean for your VPS Hosting
Cheaper Games on Instant-Gaming
Creative Commons Licence Clicky