<div dir="ltr">Also another question.<div>The method I proposed to build and install ZFS 2.2.2 in my previous email apparently leaves out the following: at least I don't see them in the installed packages in synaptic.</div><div>zfs-dkms</div><div>zfs-initramfs</div><div>zfs-zed</div><div>zfsutils-linux</div><div>Perhaps those are installed, sidestepping apt package manager, via </div><div>sudo make install; sudo 1dconfig; sudo demod</div><div>?</div><div>The above appears to yield a working ZFS 2.2.2 installation, i.e. scrub and zfs-list, zpool status all seem to work.</div><div>Is there any downside or bad effects to sidestepping the package manager should I later want to install ZFS 2.1.14 from its package manager when it becomes available? Assuming I use <span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">sudo</span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">make</span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">uninstall;</span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">sudo</span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">ldconfig;</span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">sudo</span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">depmod</span></div><div><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">to uninstall my built ZFS 2.2.2?</span></div><div><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">Of course, I won't update my pools to ZFS 2.2.2 standards.</span></div><div><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">Also, I could just select ZFS 2.1.14 instead of ZFS 2.2.2 from the OpenZFS repository and build/install that instead. Might be safer since I'd avoid the possible hazard of upgrading my pools to ZFS 2.2.2?</span></div><div><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">What do you think?</span></div><div><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">If anyone else is interested in this, please let me know as I might be able to help.</span></div><div><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">Thanks,</span></div><div><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">Phil</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 7, 2023 at 3:13 PM Phil Marsh <<a href="mailto:microcraftx@gmail.com">microcraftx@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Update:<div>I found that I could not successfully install ZFS 2.2.2 to Ubuntu 22.04 via the .deb files generated from the build of ZFS.</div><div><a href="https://openzfs.github.io/openzfs-docs/Developer%20Resources/Building%20ZFS.html#" target="_blank">https://openzfs.github.io/openzfs-docs/Developer%20Resources/Building%20ZFS.html#</a><br></div><div><a href="https://openzfs.github.io/openzfs-docs/Developer%20Resources/Custom%20Packages.html" target="_blank">https://openzfs.github.io/openzfs-docs/Developer%20Resources/Custom%20Packages.html</a><br></div><div>I doubt that dkms-zfs 2.2.2 was properly installed as well.</div><div>However, from <a href="https://openzfs.github.io/openzfs-docs/Developer%20Resources/Building%20ZFS.html" target="_blank">https://openzfs.github.io/openzfs-docs/Developer%20Resources/Building%20ZFS.html</a></div><div>*********************</div><div><h3 style="box-sizing:border-box;margin-top:0px;font-family:"Roboto Slab",ff-tisa-web-pro,Georgia,Arial,sans-serif;font-size:20px;margin-bottom:24px;color:rgb(64,64,64);background-color:rgb(252,252,252)">Install<a href="https://openzfs.github.io/openzfs-docs/Developer%20Resources/Building%20ZFS.html#install" title="Permalink to this heading" style="box-sizing:border-box;color:rgb(41,128,185);text-decoration-line:none;display:inline-block;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:1;font-family:FontAwesome;opacity:0;margin-left:0.5em" target="_blank"></a></h3><p style="box-sizing:border-box;line-height:24px;font-size:16px;margin:0px 0px 24px;color:rgb(64,64,64);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;background-color:rgb(252,252,252)">You can run <code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;max-width:100%;background:rgb(255,255,255);border:1px solid rgb(225,228,229);padding:2px 5px;color:rgb(231,76,60);overflow-x:auto"><span style="box-sizing:border-box">zfs-tests.sh</span></code> without installing ZFS, see below. If you have reason to install ZFS after building it, pay attention to how your distribution handles kernel modules. On Ubuntu, for example, the modules from this repository install in the <code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;max-width:100%;background:rgb(255,255,255);border:1px solid rgb(225,228,229);padding:2px 5px;color:rgb(231,76,60);overflow-x:auto"><span style="box-sizing:border-box">extra</span></code> kernel module path, which is not in the standard <code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;max-width:100%;background:rgb(255,255,255);border:1px solid rgb(225,228,229);padding:2px 5px;color:rgb(231,76,60);overflow-x:auto"><span style="box-sizing:border-box">depmod</span></code> search path. Therefore, for the duration of your testing, edit <code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;max-width:100%;background:rgb(255,255,255);border:1px solid rgb(225,228,229);padding:2px 5px;color:rgb(231,76,60);overflow-x:auto"><span style="box-sizing:border-box">/etc/depmod.d/ubuntu.conf</span></code> and add <code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;max-width:100%;background:rgb(255,255,255);border:1px solid rgb(225,228,229);padding:2px 5px;color:rgb(231,76,60);overflow-x:auto"><span style="box-sizing:border-box">extra</span></code> to the beginning of the search path.</p><p style="box-sizing:border-box;line-height:24px;font-size:16px;margin:0px 0px 24px;color:rgb(64,64,64);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;background-color:rgb(252,252,252)">You may then install using <code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;max-width:100%;background:rgb(255,255,255);border:1px solid rgb(225,228,229);padding:2px 5px;color:rgb(231,76,60);overflow-x:auto"><span style="box-sizing:border-box">sudo</span> <span style="box-sizing:border-box">make</span> <span style="box-sizing:border-box">install;</span> <span style="box-sizing:border-box">sudo</span> <span style="box-sizing:border-box">ldconfig;</span> <span style="box-sizing:border-box">sudo</span> <span style="box-sizing:border-box">depmod</span></code>. You’d uninstall with <code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;max-width:100%;background:rgb(255,255,255);border:1px solid rgb(225,228,229);padding:2px 5px;color:rgb(231,76,60);overflow-x:auto"><span style="box-sizing:border-box">sudo</span> <span style="box-sizing:border-box">make</span> <span style="box-sizing:border-box">uninstall;</span> <span style="box-sizing:border-box">sudo</span> <span style="box-sizing:border-box">ldconfig;</span> <span style="box-sizing:border-box">sudo</span> <span style="box-sizing:border-box">depmod</span></code>.</p><p style="box-sizing:border-box;line-height:24px;font-size:16px;margin:0px 0px 24px;color:rgb(64,64,64);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;background-color:rgb(252,252,252)">***********************</p></div><div>did yield a working ZFS version 2.2.2 and reported the proper version of kmod as well.</div><div>So I'm guessing that while this will "work" it's not a proper package install and dkms-zfs won't be able to update/rebuild ZFS 2.2.2 on kernel updates.</div><div>Instead, I'm guessing that with such an installation after a kernel update I would have to:</div><div>uninstall with: </div><div><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">sudo</span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">make</span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">uninstall;</span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">sudo</span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">ldconfig;</span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">sudo</span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px"> </span><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">depmod</span><br></div><div><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box">and reinstall with:</span></div><div><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box"><span style="box-sizing:border-box">sudo</span> <span style="box-sizing:border-box">make</span> <span style="box-sizing:border-box">install;</span> <span style="box-sizing:border-box">sudo</span> <span style="box-sizing:border-box">ldconfig;</span> <span style="box-sizing:border-box">sudo</span> <span style="box-sizing:border-box">depmod</span><br></span></div><div><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box"><span style="box-sizing:border-box">*****************</span></span></div><div><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box"><span style="box-sizing:border-box">It also appears that Ubuntu maintainers recognize the problems with ZFS 2.1.5 and are planning to make ZFS 2.1.14 available soon.</span></span></div><div><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box"><span style="box-sizing:border-box">Best,</span></span></div><div><span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;box-sizing:border-box"><span style="box-sizing:border-box">Phil</span></span></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 7, 2023 at 10:18 AM Phil Marsh <<a href="mailto:microcraftx@gmail.com" target="_blank">microcraftx@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Sean, Bob, Sy, All,<div><p style="margin:0px;padding:0.8em 0px 0.25em;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-variant-alternates:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"Noto Sans",Arial,sans-serif;font-kerning:inherit;font-feature-settings:inherit;vertical-align:baseline;color:rgb(28,28,28)">From:</p><p style="margin:0px;padding:0.8em 0px 0.25em;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-variant-alternates:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"Noto Sans",Arial,sans-serif;font-kerning:inherit;font-feature-settings:inherit;vertical-align:baseline;color:rgb(28,28,28)"><a href="https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/2044657" rel="noopener nofollow ugc" style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline" target="_blank">https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/2044657</a></p><p style="margin:0px;padding:0.8em 0px 0.25em;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-variant-alternates:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"Noto Sans",Arial,sans-serif;font-kerning:inherit;font-feature-settings:inherit;vertical-align:baseline;color:rgb(28,28,28)">It appears that the Ubuntu team are aware of this and working on this and for Ubuntu 22.04 (Jammy) they plan to update from ZFS 2.1.5 to ZFS 2.1.14. Hoping they can do it soon.</p><p style="margin:0px;padding:0.8em 0px 0.25em;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-variant-alternates:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"Noto Sans",Arial,sans-serif;font-kerning:inherit;font-feature-settings:inherit;vertical-align:baseline;color:rgb(28,28,28)">By the way, I was able to get ZFS 2.2.2 running on one of my Ubuntu machines (semi-production, not my critical server) with dkms-zfs2.2.2, but I could not get other ZFS-related software utilities like zsys installed for this version. I'm thinking all I really need is ZFS2.2.2 itself and dkms-zfs2.2.2? I got to the above point using OpenZFS build instructions <a href="https://openzfs.github.io/openzfs-docs/Developer%20Resources/Building%20ZFS.html" rel="noopener nofollow ugc" style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline" target="_blank">https://openzfs.github.io/openzfs-docs/Developer%20Resources/Building%20ZFS.html</a></p><p style="margin:0px;padding:0.8em 0px 0.25em;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-variant-alternates:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"Noto Sans",Arial,sans-serif;font-kerning:inherit;font-feature-settings:inherit;vertical-align:baseline;color:rgb(28,28,28)">and <a href="https://openzfs.github.io/openzfs-docs/Developer%20Resources/Custom%20Packages.html" rel="noopener nofollow ugc" style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline" target="_blank">https://openzfs.github.io/openzfs-docs/Developer%20Resources/Custom%20Packages.html</a></p><p style="margin:0px;padding:0.8em 0px 0.25em;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-variant-alternates:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"Noto Sans",Arial,sans-serif;font-kerning:inherit;font-feature-settings:inherit;vertical-align:baseline;color:rgb(28,28,28)">I had noticed that I had to use the RPM-converted deb-based DKMS and user packages procedure as the native version had some dependency issues.</p><p style="margin:0px;padding:0.8em 0px 0.25em;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-variant-alternates:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"Noto Sans",Arial,sans-serif;font-kerning:inherit;font-feature-settings:inherit;vertical-align:baseline;color:rgb(28,28,28)">What if I don't get say zsys or some other packages with ZFS? I'm hoping the snapshots will still work but need to try that out.</p><p style="margin:0px;padding:0.8em 0px 0.25em;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-variant-alternates:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"Noto Sans",Arial,sans-serif;font-kerning:inherit;font-feature-settings:inherit;vertical-align:baseline;color:rgb(28,28,28)">After building, you will see .deb packages which I think, you can use to install ZFS and other associated programs. It seems that the order of installation was important and perhaps you should install the DKMS package first then ZFS, then try the others. But I also was not able to install all the available debs due to dependency errors. However, the resulting ZFS 2.2.2 installation did seem to work.</p><p style="margin:0px;padding:0.8em 0px 0.25em;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-variant-alternates:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"Noto Sans",Arial,sans-serif;font-kerning:inherit;font-feature-settings:inherit;vertical-align:baseline;color:rgb(28,28,28)">Moreover, and you likely know this already, you might want to hold off upgrading your ZFS pools themselves after upgrading to ZFS 2.2.2 in case you need to fall back to the original ZFS.</p><p style="margin:0px;padding:0.8em 0px 0.25em;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-variant-alternates:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"Noto Sans",Arial,sans-serif;font-kerning:inherit;font-feature-settings:inherit;vertical-align:baseline;color:rgb(28,28,28)">I can elaborate after I use trial and error to get a stable method but you can try this yourself on a chroot machine, virtual machine, or non-production box.</p><p style="margin:0px;padding:0.8em 0px 0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-variant-alternates:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"Noto Sans",Arial,sans-serif;font-kerning:inherit;font-feature-settings:inherit;vertical-align:baseline;color:rgb(28,28,28)">Best of luck and thanks</p><p style="margin:0px;padding:0.8em 0px 0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-variant-alternates:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"Noto Sans",Arial,sans-serif;font-kerning:inherit;font-feature-settings:inherit;vertical-align:baseline;color:rgb(28,28,28)">Phil</p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 4, 2023 at 2:44 PM Sean Reifschneider <<a href="mailto:jafo00@gmail.com" target="_blank">jafo00@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">When I want to update software on an Ubuntu system, the first place I look is to go to <a href="http://packages.ubuntu.com" target="_blank">packages.ubuntu.com</a> and grab a version from there (usually I'll grab the one from the most recent release, in this case 23.11, then if that one has issues building I'll grab the one matching my release, in this case 22.04), grab the "debian.tar.xz" and try extracting that in the latest source, and try using that deb to build it.  In this case since there's a kernel component, you probably want to start with the version matching your release, 22.04.  <a href="http://archive.ubuntu.com/ubuntu/pool/main/z/zfs-linux/zfs-linux_2.1.5-1ubuntu6~22.04.2.debian.tar.xz" target="_blank">http://archive.ubuntu.com/ubuntu/pool/main/z/zfs-linux/zfs-linux_2.1.5-1ubuntu6~22.04.2.debian.tar.xz</a><div><br></div><div>Then grab the latest zfs: <a href="https://github.com/openzfs/zfs/releases/download/zfs-2.2.2/zfs-2.2.2.tar.gz" target="_blank">https://github.com/openzfs/zfs/releases/download/zfs-2.2.2/zfs-2.2.2.tar.gz</a></div><div><br></div><div>Extract ZFS, then go into that directory and extract the debian.tar.xz</div><div><br></div><div>Then run "debuild" and see what breaks.</div><div><br></div><div>Because this is ZFS we're talking about, it is heavily patched, and so it's not looking like it'll cleanly build.  But, you now have a set of patches you can check to see what needed to happen to the 2.1.5 code to integrate into Ubuntu, and what sort of things you might want to do to the 2.2.2 code...</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 3, 2023 at 2:54 PM Bob Proulx <<a href="mailto:bob@proulx.com" target="_blank">bob@proulx.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> Basically, my question amounts to:<br>
> How do I install ZFS via manual compilation to get the latest version so<br>
> that I can use zfs-dkms or equivalent to automatically compile and install<br>
> kernel modules when the kernel is updated?<br>
<br>
First, I have no idea!  I haven't done it.  But to compile it from<br>
source I would think the Gentoo instructions might help.  Then combine<br>
that with the DKMS instructions.<br>
<br>
    <a href="https://wiki.gentoo.org/wiki/ZFS" rel="noreferrer" target="_blank">https://wiki.gentoo.org/wiki/ZFS</a><br>
    <a href="https://help.ubuntu.com/community/DKMS" rel="noreferrer" target="_blank">https://help.ubuntu.com/community/DKMS</a><br>
<br>
That information will probably need to be combined with compiling your<br>
own custom Ubuntu kernel.  In the long distant past I had troubles<br>
matching expected versions between modules and prebuilt kernels and<br>
found it easier to compile both.<br>
<br>
    <a href="https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel" rel="noreferrer" target="_blank">https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel</a><br>
<br>
Again I haven't done it.  I don't know what problems will appear.  But<br>
not seeing anyone else jump in with something I thought I would<br>
contribute the above.  Little help though it might be.<br>
<br>
Bob<br>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>