<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Zfs on Kenno&#39;s Open Note</title>
    <link>https://blog.khmersite.net/tags/zfs/</link>
    <description>Recent content in Zfs on Kenno&#39;s Open Note</description>
    <image>
      <title>Kenno&#39;s Open Note</title>
      <url>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- 0.154.0</generator>
    <language>en</language>
    <lastBuildDate>Wed, 30 Jul 2025 21:01:42 +1000</lastBuildDate>
    <atom:link href="https://blog.khmersite.net/tags/zfs/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Rename a ZFS Pool</title>
      <link>https://blog.khmersite.net/p/how-to-rename-zfs-pool/</link>
      <pubDate>Wed, 30 Jul 2025 21:01:42 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/how-to-rename-zfs-pool/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve been a happy ZFS user for years, appreciating its robustness and features. Yet, in all that time, I&amp;rsquo;d never had to rename a pool. That changed today. Whether it&amp;rsquo;s for better organization, a server migration, or just because you&amp;rsquo;ve had a change of heart about a name, renaming a ZFS pool is a task that might pop up when you least expect it.&lt;/p&gt;
&lt;p&gt;I needed to rename my pool from &lt;code&gt;anime35&lt;/code&gt; to &lt;code&gt;anime36&lt;/code&gt;. I was pleasantly surprised to find the process is incredibly simple and elegant, which is what I&amp;rsquo;ve come to expect from ZFS.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to import ZFS pool with duplicated pool names</title>
      <link>https://blog.khmersite.net/p/how-to-import-zfs-pool-with-duplicated-pool-names/</link>
      <pubDate>Sat, 14 Dec 2024 18:32:22 +1100</pubDate>
      <guid>https://blog.khmersite.net/p/how-to-import-zfs-pool-with-duplicated-pool-names/</guid>
      <description>&lt;p&gt;If you use ZFS as the file system, you probably already know that &lt;code&gt;tank&lt;/code&gt; is the most common name for ZFS pools. That also applies to me, I do name most of my ZFS pools as &lt;code&gt;tank&lt;/code&gt; as the default. There is no issue with that name, however, since ZFS&amp;rsquo;s pool name must be unique, this means I couldn&amp;rsquo;t import or have multiple ZFS pools with the name &lt;code&gt;tank&lt;/code&gt; on a system.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Expand ZFS partition to use entire disk</title>
      <link>https://blog.khmersite.net/p/expand-zfs-partition-to-use-entire-disk/</link>
      <pubDate>Tue, 12 Nov 2024 10:09:20 +1100</pubDate>
      <guid>https://blog.khmersite.net/p/expand-zfs-partition-to-use-entire-disk/</guid>
      <description>&lt;p&gt;This is just a quick note to jot down what I did to resize and expand a ZFS partition to entire disk. I never had to do this before; it tured out it was quite easy.&lt;/p&gt;
&lt;p&gt;First ensure that the &lt;code&gt;autoexpand&lt;/code&gt; option is set on the zpool. Then, stop the VM in order to resize the disk volume.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[root@phnomaural ~]# zpool set autoexpand=on immich

[root@phnomaural ~]# poweroff
[root@phnomaural ~]# Connection to phnomaural closed by remote host.
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The original size of ZFS disk was 256 GiB, and it has been increased to 512 GiB. This was done by stopping the VM running on XCP-ng, and go to the disk and change the size to 256 GiB.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to rebuild initramfs on Fedora</title>
      <link>https://blog.khmersite.net/p/how-to-rebuild-initramfs-on-fedora/</link>
      <pubDate>Wed, 21 Aug 2024 21:42:21 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/how-to-rebuild-initramfs-on-fedora/</guid>
      <description>&lt;p&gt;Earlier today while performing the update on my Fedora desktop, I encountered an issue with the new kernel update. As a result,
the initramfs was not generated for the new installed kernel. So, I&amp;rsquo;ll share with you how to rebuild or generate the initramfs while fixing real issue on my Fedora workstation.&lt;/p&gt;
&lt;p&gt;First, here is an output showing the source of the issue. It might not be clear of what&amp;rsquo;s going on, but that&amp;rsquo;s okay as it&amp;rsquo;s not the main focus of this blog post.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to Remove ZFS Meta Data on FreeBSD</title>
      <link>https://blog.khmersite.net/p/how-to-remove-zfs-meta-data-on-freebsd/</link>
      <pubDate>Wed, 26 May 2021 23:02:42 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/how-to-remove-zfs-meta-data-on-freebsd/</guid>
      <description>&lt;p&gt;It&amp;rsquo;s been quite a while since I last posted something here. It&amp;rsquo;s not that I haven&amp;rsquo;t come across many issues in tech, it&amp;rsquo;s just that I haven&amp;rsquo;t had enough time to write anything.&lt;/p&gt;
&lt;p&gt;So I&amp;rsquo;m going to share how to easily clear the ZFS metadata on a disk previously used in a ZFS pool. Here is an example - I have an external drive, and it is detected as &lt;code&gt;/dev/da0&lt;/code&gt; when plugged into a FreeBSD server. Though I don&amp;rsquo;t remember having used it as a member of a ZFS pool called &lt;code&gt;tank&lt;/code&gt;, the following output does show that it is the case:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Using ZFS on an External Drive</title>
      <link>https://blog.khmersite.net/p/using-zfs-on-external-drive/</link>
      <pubDate>Thu, 12 Nov 2020 22:52:58 +1100</pubDate>
      <guid>https://blog.khmersite.net/p/using-zfs-on-external-drive/</guid>
      <description>&lt;p&gt;I&amp;rsquo;m a fan of ZFS filesystem. It&amp;rsquo;s so good that I also use ZFS on most my Linux machines, though it&amp;rsquo;s painful at time when the ZFS kernel modules fail to compile. Why I like it so much comparing to other file system such as XFS, EXT4, BTRFS? ZFS allows me to quickly do snapshots and efficiently send snapshots over the network, and my nas runs FreeBSD which support ZFS natively.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Replacing a Disk in a Zpool</title>
      <link>https://blog.khmersite.net/p/replacing-a-disk-in-a-pool/</link>
      <pubDate>Sun, 20 Sep 2020 11:51:35 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/replacing-a-disk-in-a-pool/</guid>
      <description>&lt;p&gt;ZFS is one of my favorite file systems. I use it at home on my nas server (running FreeBSD) as well as my Fedora 32 desktop. Today, I&amp;rsquo;m going to show you (and my future self) how to replace a (faulty) disk in a Zpool.&lt;/p&gt;
&lt;p&gt;The server I&amp;rsquo;ll be working on is &lt;strong&gt;nas2&lt;/strong&gt; and the pool is &lt;strong&gt;tank&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;List the status of the current pool.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-console&#34; data-lang=&#34;console&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Password:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;root@nas2:~ # zpool status tank
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  pool: tank
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; state: DEGRADED
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;status: One or more devices could not be opened.  Sufficient replicas exist for
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        the pool to continue functioning in a degraded state.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;action: Attach the missing device and online it using &amp;#39;zpool online&amp;#39;.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   see: http://illumos.org/msg/ZFS-8000-2Q
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  scan: resilvered 472K in 0 days 00:00:02 with 0 errors on Sun Aug 23 16:17:21 2020
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;config:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        NAME                      STATE     READ WRITE CKSUM
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        tank                      DEGRADED     0     0     0
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          mirror-0                DEGRADED     0     0     0
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            diskid/DISK-Z4Z46MXG  ONLINE       0     0     0
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            620907994788427922    UNAVAIL      0     0     0  was /dev/diskid/DISK-Z1E4ZCM2
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          mirror-1                ONLINE       0     0     0
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            diskid/DISK-Z1E5PFCH  ONLINE       0     0     0
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            diskid/DISK-Z4Z46XQP  ONLINE       0     0     0
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;errors: No known data errors
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;From the above output, we can see that one of the disk in &lt;strong&gt;mirro-0&lt;/strong&gt; vdev was missing. (In fact, it has been removed prior to the system rebooted. I also inserted a new disk to the system.)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Remove Kernels on Fedora</title>
      <link>https://blog.khmersite.net/p/remove-kernels-on-fedora/</link>
      <pubDate>Sun, 26 Apr 2020 00:11:01 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/remove-kernels-on-fedora/</guid>
      <description>&lt;p&gt;I&amp;rsquo;m still running Fedora 31 on my main desktop though Fedora 32 beta has been out for a while. The only reason that stops me from jumping to F32 now is because ZFS 0.8.3 is not compatible with the kernel 5.6.* on F32. Rumor has it, ZFS 0.8.4 will support kernel 5.6.&lt;/p&gt;
&lt;p&gt;Tonight, while doing the system update with &lt;code&gt;sudo dnf update -y&lt;/code&gt; on F31 desktop, I noticed that the kernel for F31 is now &lt;code&gt;kernel-5.6.6-200.fc31.x86_64&lt;/code&gt;. Wait, what? I didn&amp;rsquo;t interrupt the update process, and let it run till finish.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fedora 30 Beta With ZFS Support</title>
      <link>https://blog.khmersite.net/p/fedora-30-beta-with-zfs/</link>
      <pubDate>Thu, 18 Apr 2019 19:18:30 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/fedora-30-beta-with-zfs/</guid>
      <description>&lt;p&gt;Up until today, I have been running Fedora 29 with the kernel 4.9. The current version of the kernel on Fedora 29 is 5.0. However, I had to stick with the 4.20 version for a very long while due to a &lt;a href=&#34;https://blog.khmersite.net/2019/01/zfs-testing-on-fedora&#34;&gt;thing&lt;/a&gt; I did a short while back. So what is that thing? Well, at one point ZFS (stable) no stopped working with the new kernel on Fedora 29. At then, I had a choice to either keep running older version of the kernel or trying out the new version of ZFS (testing). I opped for the second option. When Fedora 29 bumped its kernel to 5.0, unfortunately, the testing ZFS didn&amp;rsquo;t support this version of the kernel.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ZFS Testing on Fedora</title>
      <link>https://blog.khmersite.net/p/zfs-testing-on-fedora/</link>
      <pubDate>Thu, 31 Jan 2019 11:37:20 +1100</pubDate>
      <guid>https://blog.khmersite.net/p/zfs-testing-on-fedora/</guid>
      <description>&lt;p&gt;When Fedora release kernel 4.20.*, the ZFS 0.7.12 could no longer compiled. Accoriding to the &lt;a href=&#34;https://github.com/zfsonline/zfs/releases&#34;&gt;ZFS release page at Github&lt;/a&gt; zfs-0.7.12 is only compartible iwth kernels 2.6.32 - 4.19.&lt;/p&gt;
&lt;p&gt;At first I was going to just wait for the 0.8.0 release, and continue to use kernel 4.19. However, Fedora keeps releasing the updates of kernel 4.20. As of this writing, the current version of the kernel on Fedora 29 is 4.20.6-200. At the same time, zfs-0.8.0 is still not yet released.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Upgrading Freebsd 11.2 to 12.0-RELEASE</title>
      <link>https://blog.khmersite.net/p/upgrading-freebsd-11-2-to-12-0-release/</link>
      <pubDate>Wed, 12 Dec 2018 21:07:08 +1100</pubDate>
      <guid>https://blog.khmersite.net/p/upgrading-freebsd-11-2-to-12-0-release/</guid>
      <description>&lt;p&gt;&lt;img alt=&#34;bsdinfo&#34; loading=&#34;lazy&#34; src=&#34;https://blog.khmersite.net/post/2018/12/nas_freebsd_12.0_Screenshot_20181212_231118.png&#34; title=&#34;FreeBSD 12.0-RELEASE&#34;&gt;&lt;/p&gt;
&lt;p&gt;FreeBSD 12.0-RELEASE was released today, and that means it&amp;rsquo;s time to upgrade 2 of FreeBSD 11.2 machines to this latest version.&lt;/p&gt;
&lt;p&gt;One of my FreeBSD boxes is a desktop used at work, and the upgrade went well without any issues. In this post, I&amp;rsquo;m going to document how the upgrade is done on my nas server at home.&lt;/p&gt;
&lt;p&gt;First ensure that the FreeBSD is up to date:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-console&#34; data-lang=&#34;console&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;root@nas:~ # freebsd-update fetch
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;src component not installed, skipped
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Looking up update.FreeBSD.org mirrors... 2 mirrors found.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Fetching metadata signature for 11.2-RELEASE from update1.freebsd.org... done.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Fetching metadata index... done.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Inspecting system... done.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Preparing to download files... done.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;No updates needed to update system to 11.2-RELEASE-p6.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Begin to perform the upgrade:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Upgrading my nas from FreeBSD 11.1-RELEASE to 11.2-RELEASE</title>
      <link>https://blog.khmersite.net/p/upgrading-my-nas-from-freebsd-11-1-release-to-11-2-release/</link>
      <pubDate>Sat, 30 Jun 2018 20:33:54 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/upgrading-my-nas-from-freebsd-11-1-release-to-11-2-release/</guid>
      <description>&lt;p&gt;FreeBSD 11.2-RELEASE was released a few days ago. This means it’s time to upgrade the FreeBSD running on my nas.&lt;/p&gt;
&lt;p&gt;For the most part, this was all what I did:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# freebsd-update -r 11.2-RELEASE upgrade
# freebsd-update install
# reboot
# freebsd-update install
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;img alt=&#34;screenshot&#34; loading=&#34;lazy&#34; src=&#34;https://blog.khmersite.net/wp-content/uploads/2018/06/bsdinfo_freebsd_11.2.png&#34;&gt;&lt;/p&gt;
&lt;p&gt;After it&amp;rsquo;s been upgraded, I also need to update the Zpool.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;root@nas:~ # zpool status
  pool: zroot
 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 &amp;#39;zpool upgrade&amp;#39;. Once this is done,
        the pool may no longer be accessible by software that does not support
        the features. See zpool-features(7) for details.
  scan: scrub repaired 0 in 0h0m with 0 errors on Tue Jan 23 23:54:42 2018
config:

        NAME        STATE     READ WRITE CKSUM
        zroot       ONLINE       0     0     0
          gpt/zfs0  ONLINE       0     0     0

errors: No known data errors
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Let&amp;rsquo;s upgrade the zpool &lt;code&gt;zroot&lt;/code&gt; as suggested:&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to extend ZFS partition</title>
      <link>https://blog.khmersite.net/p/how-to-extend-zfs-partition/</link>
      <pubDate>Sun, 11 Mar 2018 11:37:07 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/how-to-extend-zfs-partition/</guid>
      <description>&lt;p&gt;I have a FreeBSD server which used to run of a smaller SSD drive. When replaced with a larger capacity SSD by using &lt;code&gt;dd&lt;/code&gt; command to clone the disk, there is free space allocated. I want to extend the existing &lt;code&gt;zroot&lt;/code&gt; pool to use this space. The following describes how I achieve this with the help of a forum &lt;a href=&#34;https://forums.freebsd.org/threads/extend-zfs-partition.55964/&#34;&gt;post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s list some information about the &lt;code&gt;zroot&lt;/code&gt; pool:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-console&#34; data-lang=&#34;console&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;root@nas:~ # zfs list zroot
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;NAME    USED  AVAIL  REFER  MOUNTPOINT
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;zroot  4.88G  50.8G   144K  none
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;List the partition scheme of the drive I&amp;rsquo;d like to extend my &lt;code&gt;zroot&lt;/code&gt; zpool with:&lt;/p&gt;</description>
    </item>
    <item>
      <title>FreeBSD Recover GTP Table</title>
      <link>https://blog.khmersite.net/p/freebsd-recover-gtp-table/</link>
      <pubDate>Sat, 03 Feb 2018 22:30:18 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/freebsd-recover-gtp-table/</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;nas:~ # zpool status                                                                                                [136/462]
  pool: zroot                                                                                                                     
 state: ONLINE                                                                                                                    
  scan: scrub repaired 0 in 0h0m with 0 errors on Tue Jan 23 23:54:42 2018                                                        
config:                                                                                                                           
                                                                                                                                  
        NAME        STATE     READ WRITE CKSUM                                                                                    
        zroot       ONLINE       0     0     0                                                                                    
          gpt/zfs0  ONLINE       0     0     0                                                                                    
                                                                                                                                  
errors: No known data errors                                        
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;So I’ve been reluctant to do anything about it. Until tonight, when I accidentally list the partition of that drive (&lt;code&gt;ada4&lt;/code&gt;):&lt;/p&gt;</description>
    </item>
    <item>
      <title>ZFS on Linux is now available for Fedora 27</title>
      <link>https://blog.khmersite.net/p/zfs-on-linux-is-now-available-for-fedora-27/</link>
      <pubDate>Tue, 19 Dec 2017 00:34:26 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/zfs-on-linux-is-now-available-for-fedora-27/</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;For a while there was no repository for Fedora 27 provided by zfsonlinux, until 6 days ago.&lt;/p&gt;
&lt;p&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://blog.khmersite.net/wp-content/uploads/2017/12/Screenshot-from-2017-12-19-01-31-14.png&#34;&gt;&lt;/p&gt;
&lt;p&gt;I have been using packages provided for Fedora 26 as work around solution. If you’ve been using the ZFS packages for Fedora 26, you can upgrade to the ones for Fedora 27 now.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Zpool Not Automatically Mounted on Boot on Fedora</title>
      <link>https://blog.khmersite.net/p/zpool-not-automatically-mounted-on-boot-on-fedora/</link>
      <pubDate>Tue, 20 Dec 2016 15:12:40 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/zpool-not-automatically-mounted-on-boot-on-fedora/</guid>
      <description>&lt;p&gt;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:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# zpool import tank
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;to import &lt;code&gt;tank&lt;/code&gt; pool before I login with my normal user account.&lt;/p&gt;
&lt;p&gt;Well, I finally found a solution. This is what’s written on &lt;a href=&#34;https://github.com/zfsonlinux/zfs/wiki/Fedora&#34;&gt;zfsonlinux/zfs WIFI&lt;/a&gt; about Fedora specifically:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Systemd Update:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Install ZFS on Fedora 25 with kernel 4.8.13-300</title>
      <link>https://blog.khmersite.net/p/install-zfs-on-fedora-25-with-kernel-4-8-13-300/</link>
      <pubDate>Thu, 15 Dec 2016 23:08:52 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/install-zfs-on-fedora-25-with-kernel-4-8-13-300/</guid>
      <description>&lt;p&gt;After I had my Fedora 24 upgraded to 25 on my desktop, ZFS no longer worked. I tried to remove &lt;code&gt;zfs&lt;/code&gt; package and reinstalled; it didn’t work.&lt;/p&gt;
&lt;p&gt;Here’s how I got it working after trying many things. There could be a different way to fix it, though.&lt;/p&gt;
&lt;p&gt;Let’s check the version of the kernel:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[root@sangkae ~]# uname -r
4.8.13-300.fc25.x86_64
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Check if &lt;code&gt;spl, zfs&lt;/code&gt; are already installed:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[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.
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Manually install &lt;code&gt;spl, dkms&lt;/code&gt;:&lt;/p&gt;</description>
    </item>
    <item>
      <title>FreeBSD upgrade pool zroot</title>
      <link>https://blog.khmersite.net/p/freebsd-upgrade-pool-zroot/</link>
      <pubDate>Tue, 27 Sep 2016 21:09:39 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/freebsd-upgrade-pool-zroot/</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;After the system upgrade, I need to also upgrade the 2 zpools (tank and zroot) so they can have new features. Upgrading &lt;code&gt;tank&lt;/code&gt; was easy, all I needed to do was running this command:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-console&#34; data-lang=&#34;console&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# zpool upgrade tank
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;This system supports ZFS pool feature flags.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Enabled the following features on &amp;#39;tank&amp;#39;:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  sha512
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  skein
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;For &lt;code&gt;zroot&lt;/code&gt;, in addition to running the above command (by replacing the actually zpool name to &lt;code&gt;zroot&lt;/code&gt;), I also need to update the boot code.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Losing ZFS storage for Docker</title>
      <link>https://blog.khmersite.net/p/losing-zfs-storage-for-docker/</link>
      <pubDate>Sun, 11 Sep 2016 01:09:40 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/losing-zfs-storage-for-docker/</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;~ ❯❯❯ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
~ ❯❯❯ docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;First thing came to my mind was “did I accidentally destroy docker zfs data set last night?”&lt;/p&gt;</description>
    </item>
    <item>
      <title>ZFS zpool upgrade</title>
      <link>https://blog.khmersite.net/p/zfs-zpool-upgrade/</link>
      <pubDate>Mon, 14 Dec 2015 00:56:26 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/zfs-zpool-upgrade/</guid>
      <description>&lt;p&gt;I’m running ZFS on Fedora 23 and I notice that there’re new features which can be enabled in the existing pool.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# 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 &amp;#39;zpool upgrade&amp;#39;. 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
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Get the ZFS version for tank’s pool:&lt;/p&gt;</description>
    </item>
    <item>
      <title>ZFS on CentOS</title>
      <link>https://blog.khmersite.net/p/zfs-on-centos/</link>
      <pubDate>Tue, 08 Oct 2013 07:55:46 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/zfs-on-centos/</guid>
      <description>&lt;p&gt;First we need to add the ZFS on Linux repository to our system by installing a zfs-release package as shown below:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-console&#34; data-lang=&#34;console&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ sudo yum localinstall --nogpgcheck http://archive.zfsonlinux.org/epel/zfs-release-1-3.el6.noarch.rpm
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ sudo yum install zfs 
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;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 &lt;a href=&#34;https://pthree.org/2012/12/05/zfs-administration-part-ii-raidz/&#34;&gt;ZFS Administration&lt;/a&gt; article which explains in great detail about ZFS RAID(Z).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Changing ZFS pool to use disk ID instead of disk assignment</title>
      <link>https://blog.khmersite.net/p/changing-zfs-pool-to-use-disk-id-instead-of-disk-assignment/</link>
      <pubDate>Fri, 20 Sep 2013 06:49:51 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/changing-zfs-pool-to-use-disk-id-instead-of-disk-assignment/</guid>
      <description>&lt;p&gt;This what I have:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-console&#34; data-lang=&#34;console&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# zpool status
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  pool: tank
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; state: ONLINE
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  scan: none requested
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;config:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        NAME        STATE     READ WRITE CKSUM
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        tank        ONLINE       0     0     0
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          raidz1-0  ONLINE       0     0     0
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            sdb     ONLINE       0     0     0
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            sdc     ONLINE       0     0     0
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            sdd     ONLINE       0     0     0
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;To convert the pool to use disk’s ID instead of device files such as /dev/sda, we need to export the storage pool.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
