anyone compile and install ZFS manually?

Sean Reifschneider jafo00 at gmail.com
Mon Dec 4 21:43:17 UTC 2023


When I want to update software on an Ubuntu system, the first place I look
is to go to packages.ubuntu.com 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.
http://archive.ubuntu.com/ubuntu/pool/main/z/zfs-linux/zfs-linux_2.1.5-1ubuntu6~22.04.2.debian.tar.xz

Then grab the latest zfs:
https://github.com/openzfs/zfs/releases/download/zfs-2.2.2/zfs-2.2.2.tar.gz

Extract ZFS, then go into that directory and extract the debian.tar.xz

Then run "debuild" and see what breaks.

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

On Sun, Dec 3, 2023 at 2:54 PM Bob Proulx <bob at proulx.com> wrote:

> > Basically, my question amounts to:
> > How do I install ZFS via manual compilation to get the latest version so
> > that I can use zfs-dkms or equivalent to automatically compile and
> install
> > kernel modules when the kernel is updated?
>
> First, I have no idea!  I haven't done it.  But to compile it from
> source I would think the Gentoo instructions might help.  Then combine
> that with the DKMS instructions.
>
>     https://wiki.gentoo.org/wiki/ZFS
>     https://help.ubuntu.com/community/DKMS
>
> That information will probably need to be combined with compiling your
> own custom Ubuntu kernel.  In the long distant past I had troubles
> matching expected versions between modules and prebuilt kernels and
> found it easier to compile both.
>
>     https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel
>
> Again I haven't done it.  I don't know what problems will appear.  But
> not seeing anyone else jump in with something I thought I would
> contribute the above.  Little help though it might be.
>
> Bob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.nclug.org/pipermail/nclug/attachments/20231204/0dda5cd7/attachment.htm>


More information about the NCLUG mailing list