Home ZFS on Ubuntu
Post
Cancel

ZFS on Ubuntu

Do not install in a VM. This defeats a lot of the advantages of ZFS

Get the device names

1
sudo fdisk -l
1
2
3
4
5
sudo apt install zfsutils-linux

sudo zpool create mypool mirror /dev/sdb /dev/sdc mirror /dev/sdd /dev/sde # RAID10

sudo zpool add mypool /dev/sdx # Add a drive to a pool

Useful commands

1
2
3
4
5
6
7
8
9
10
sudo zpool destroy mypool

zpool status
zpool list

zfs set atime=off zpool
zfs set compression=lz4 zpool
zfs get compressratio
zpool scrub zpool
zfs list -t snapshot

Create a dataset

1
2
zfs create zpool/docs
chown facade:users /zpool/docs

Create a snapshot

1
zfs snapshot zpool/docs@001
This post is licensed under CC BY 4.0 by the author.