It seem that Ubuntu 16.04 LTS supports the ZFS filesystem. But how do I use it? I'm sorry, I don't know very much about ZFS, but it sounds good. I want it.

  • 6
    If I may make a suggestion: practice with ZFS on a virtual machine or some other non-critical/disposable data machine. As you learn how it works, you're bound to blow away the raid data. I did this a handful of times with live data that is now forever gone – parsecpython Jun 27 '16 at 13:30

First off, use ZFS only if you really want it. See the Use Cases to know if you really need ZFS.

ZFS is supported only in 64-bit Ubuntu 16.04 installs. To install it run:

sudo apt-get install zfsutils-linux

To learn more, you can see the reference on Ubuntu or this excellent documentation.

A good introduction can also be found here


As root in an Ubuntu 16.04.1 LTS this works:

apt update
apt install -y zfs

You are then done. You can check it is there by doing:

zfs list

you can then create a pool by doing:

zpool create -f zxavi /dev/sdb

or whatever disk you want to use; and after that:

zpool status

Boom, done!


Since I only have 1 reputation, I can neither upvote nor comment on Xavi's answer, which is the correct one. Things not to do include:

  • Do not waste your time with mountall, all of that Wiki page is obsolete as far as Xenial is concerned;
  • Do not install a package named ubuntu-zfs, or use the so-called "stable" ZFS PPA.
  • 1
    May you come with more detail in support of your advise? – Mostafa Ahangarha Feb 20 '17 at 18:41
  • @DomQ: would be nice if you could provide some explanation for your recommendation. – 0xC0000022L Sep 14 '17 at 15:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.