ZFS on Ubuntu server

This tutorial teaches how to install ZFS on Ubuntu server and create RAIDZ storage on two hard drives.

Create partition table on each disk using cfdisk. To view partition table use:

cat /proc/partitions

Install packages required for ZFS:

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python-software-properties bison flex build-essential \
libelf-dev zlib1g-dev libc6-dev-i386 libdwarf-dev binutils-dev

Add PPA-repository zfs-native:

sudo add-apt-repository ppa:zfs-native/stable

Install ZFS packages:

sudo apt-get update
sudo apt-get install ubuntu-zfs

Create pool called zfs-test with the RAIDZ type. Put two disks in RAID array:

sudo zpool create zfs-test raidz /dev/sdb1 /dev/sdc1

To check on new pool status run:

sudo zpool status
sudo zfs list
df -h

Got a comment?
Name (optional):
Anti-Bot:captcha =
Copyright © 2024 HowToUnix - *nix Howtos and Tutorials
All Rights Reserved.