Last week we walked through setting up a ZFS mirror. This week we’ll talk about upgrading zfs. Note I’m using Arch Linux, which has a rolling release model, so I update fairly frequently.

We need to take care when performing updates now because ZFS depends on the kernel version we are on, so upgrading is not as simple as it used to be. If the kernel updates, ZFS needs to be updated with a version built on the new kernel. Since we are only using ZFS on our home directory I think we could get away with uninstalling ZFS and it’s dependancies, updating, reinstalling things, then just remount the zpool, but this seems inefficient to me.

I’ve come to learn that there is an unofficial user repository run by demizer. We will add this to our pacman.conf and use it to perform upgrades.

## Adding an Unofficial User Repository

We first need to add the unofficial repo to our pacman.conf. Add the following to /etc/pacman.conf:

Now we need to sign the key.

We can verify the fingerprint by running the following and checking the last 8 digits of the fingerprint match the ID.

Finally, we’ll sign the key:

## Updating

Now when we run pacman -Syy we’ll see the new repo:

And since we just ran pacman -Syy we should update with pacman -Syu. If you notice a kernel update you should check that the latest version of ZFS matches. demizer does a great job of keeping the repo up to date when a new kernel version is released, but he’s only human, so sometimes the repo might not be caught up yet. In this case I usually just wait a little bit.

Now upgrading is nearly as easy as it used to be. I hope your ZFS setup is working as smoothly as mine has been. Next week I’ll cover asynchronous automated scrubbing of a zpool.

Tags:

Updated: