Zpool Not Automatically Mounted on Boot on Fedora

I love ZFS, but there is something that has annoyed me for quite sometimes – the zpool doesn’t get automatically mounted on boot. To work around this, I had to login as root and run: # zpool import tank to import tank pool before I login with my normal user account. Well, I finally found a solution. This is what’s written on zfsonlinux/zfs WIFI about Fedora specifically: Systemd Update: When upgrading to the zfs-0.6.5.8 release it’s recommended that users manually reset the zfs systemd presets. Failure to do so can result in the pool not automatically importing when the system is rebooted. ...

December 20, 2016 · 1 min · 200 words · kenno

Install ZFS on Fedora 25 with kernel 4.8.13-300

After I had my Fedora 24 upgraded to 25 on my desktop, ZFS no longer worked. I tried to remove zfs package and reinstalled; it didn’t work. Here’s how I got it working after trying many things. There could be a different way to fix it, though. Let’s check the version of the kernel: [root@sangkae ~]# uname -r 4.8.13-300.fc25.x86_64 Check if spl, zfs are already installed: [root@sangkae ~]# dnf info spl Last metadata expiration check: 1:01:18 ago on Thu Dec 15 22:42:25 2016. Installed Packages Name : spl Arch : x86_64 Epoch : 0 Version : 0.6.5.8 Release : 1.fc25 Size : 48 k Repo : @System From repo : zfs Summary : Commands to control the kernel modules URL : http://zfsonlinux.org/ License : GPLv2+ Description : This package contains the commands to verify the SPL : kernel modules are functioning properly. [root@sangkae ~]# dnf info zfs Last metadata expiration check: 1:01:26 ago on Thu Dec 15 22:42:25 2016. Installed Packages Name : zfs Arch : x86_64 Epoch : 0 Version : 0.6.5.8 Release : 1.fc25 Size : 808 k Repo : @System From repo : zfs Summary : Commands to control the kernel modules and libraries URL : http://zfsonlinux.org/ License : CDDL Description : This package contains the ZFS command line utilities. Manually install spl, dkms: ...

December 15, 2016 · 2 min · 237 words · kenno

FreeBSD upgrade pool zroot

Today I successfully upgraded my FreeBSD home nas server from 10.3 to 11.0. This is the final release of version 11.0, though the official announcement is expected to be made on September 28. After the system upgrade, I need to also upgrade the 2 zpools (tank and zroot) so they can have new features. Upgrading tank was easy, all I needed to do was running this command: # zpool upgrade tank This system supports ZFS pool feature flags. Enabled the following features on 'tank': sha512 skein For zroot, in addition to running the above command (by replacing the actually zpool name to zroot), I also need to update the boot code. ...

September 27, 2016 · 2 min · 288 words · kenno

Losing ZFS storage for Docker

I use ZFS as a storage driver for docker engine running on my machine. Today after my machine rebooted from a crash, yes Linux system crashes too, I notice that all my docker images and containers disappeared. ~ ❯❯❯ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ~ ❯❯❯ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES First thing came to my mind was “did I accidentally destroy docker zfs data set last night?” ...

September 11, 2016 · 2 min · 383 words · kenno

ZFS zpool upgrade

I’m running ZFS on Fedora 23 and I notice that there’re new features which can be enabled in the existing pool. # zpool status pool: tank state: ONLINE status: Some supported features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not support the features. See zpool-features(5) for details. scan: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 sdb ONLINE 0 0 0 sdc ONLINE 0 0 0 errors: No known data errors Get the ZFS version for tank’s pool: ...

December 14, 2015 · 2 min · 291 words · kenno