Getting Started with ZFS in Ubuntu 20.04
ZFS in Ubuntu 20.04
I upgraded one of the smallest servers at home office to Ubuntu 20.04 recently and realised that ZFS support has been added to Ubuntu for quite some time - so maybe I should explore it more. I actually quite miss ZFS from my Sun Microsystems days.
Loading ZFS modules in Linux
Most likely you don’t have the ZFS modules loaded by default:
… meaning you need to probe ZFS modules to activate this functionality:
As you can see, there’s quite a few modules are loaded now:
Installing ZFS utils in Ubuntu
Alright, next step is installing tools that provide all these z-commands for managing ZFS:
Creating ZFS pool from virtual disks
First, I’ll need a few virtual disks:
Nice! Now let’s create a ZFS pool (it’s like a RAID array if you’re familiar with mdadm):
Confirm ZFS pool status in Ubuntu
Show ZFS pools: zpool list
Here it is: my newly created ZFS pool called newvol:
Show ZFS pool status and member disks
Let’s get a bit more information about the pool - for instance, confirm which disks are in it:
I’m quite happy! Will be cool to use ZFS and snapshots for home directory on this box.
See Also
ZFS in Ubuntu 20.04
I upgraded one of the smallest servers at home office to Ubuntu 20.04 recently and realised that ZFS support has been added to Ubuntu for quite some time - so maybe I should explore it more. I actually quite miss ZFS from my Sun Microsystems days.
Loading ZFS modules in Linux
Most likely you don’t have the ZFS modules loaded by default:
… meaning you need to probe ZFS modules to activate this functionality:
As you can see, there’s quite a few modules are loaded now:
Installing ZFS utils in Ubuntu
Alright, next step is installing tools that provide all these z-commands for managing ZFS:
Creating ZFS pool from virtual disks
First, I’ll need a few virtual disks:
Nice! Now let’s create a ZFS pool (it’s like a RAID array if you’re familiar with mdadm):
Confirm ZFS pool status in Ubuntu
Show ZFS pools: zpool list
Here it is: my newly created ZFS pool called newvol:
Show ZFS pool status and member disks
Let’s get a bit more information about the pool - for instance, confirm which disks are in it:
I’m quite happy! Will be cool to use ZFS and snapshots for home directory on this box.