Upgrading my nas from FreeBSD 11.1-RELEASE to 11.2-RELEASE

FreeBSD 11.2-RELEASE was released a few days ago. This means it’s time to upgrade the FreeBSD running on my nas. For the most part, this was all what I did: # freebsd-update -r 11.2-RELEASE upgrade # freebsd-update install # reboot # freebsd-update install After it’s been upgraded, I also need to update the Zpool. root@nas:~ # zpool status pool: zroot state: ONLINE status: Some supported features are not enabled on the pool....

June 30, 2018 · 2 min · 353 words · kenno

How to extend ZFS partition

I have a FreeBSD server which used to run of a smaller SSD drive. When replaced with a larger capacity SSD by using dd command to clone the disk, there is free space allocated. I want to extend the existing zroot pool to use this space. The following describes how I achieve this with the help of a forum post. Let’s list some information about the zroot pool: root@nas:~ # zfs list zroot NAME USED AVAIL REFER MOUNTPOINT zroot 4....

March 11, 2018 · 2 min · 302 words · kenno

FreeBSD Recover GTP Table

Recently one of my servers that runs FreeBSD 11.1 keeps hanging on boot. Usually, the 2nd hard reboot will fix it. The root file system on this server is using ZFS and the ZFS pool report it as healthy. So I’ve been reluctant to do anything about it. Until tonight, when I accidentally list the partition of that drive (ada4): Ahh.. [CORRUPT] partition table it seems. I think the reason the server can still boot because GPT keeps the partition tables in two places (yes, one of the more reason to use GPT over MBR)....

February 3, 2018 · 1 min · 127 words · kenno

ZFS on Linux is now available for Fedora 27

My main machine at home has been upgraded from Fedora 26 to 27 since the day the 27 was released. Everything has been working great, except the ZFS file system. I’m a ZFS-believer and I store my important files on ZFS-based storage. For a while there was no repository for Fedora 27 provided by zfsonlinux, until 6 days ago. I have been using packages provided for Fedora 26 as work around solution....

December 19, 2017 · 1 min · 104 words · kenno

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: 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....

December 20, 2016 · 1 min · 139 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: Check if spl, zfs are already installed: Manually install spl, dkms: Load zfs module: Voilla, I got ZFS working again....

December 15, 2016 · 1 min · 74 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....

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. First thing came to my mind was “did I accidentally destroy docker zfs data set last night?” It’s still there. At that point I suspected that Docker might no longer use ZFS as its data storage....

September 11, 2016 · 1 min · 196 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....

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

ZFS on CentOS

First we need to add the ZFS on Linux repository to our system by installing a zfs-release package as shown below: $ sudo yum localinstall --nogpgcheck http://archive.zfsonlinux.org/epel/zfs-release-1-3.el6.noarch.rpm $ sudo yum install zfs Once, zfs has been installed, we can create a storage pool. There’re many RAID configuration to choose from, and I’m not going to get into it. However, if you want to learn more, you can read this ZFS Administration article which explains in great detail about ZFS RAID(Z)....

October 8, 2013 · 1 min · 144 words · kenno