-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to install ZFS #1342
Comments
How are you getting the ZFS source / pacakges? One option is to create a akmods package for the module so that it gets rebuilt on update. Another one is to build via a container before updates. |
I'm not sure if I should link the gist here, because it's from someone else. It downloads the source from https://github.com/openzfs/zfs/releases/download But as said, that script does not work at all for me. akmod sounds good, but I lack the complete knowledge how to put that into coreos systems
that sounds like zincati has a pre-update hook? I would be happy with anything that does not involve custom coreos builds or breaking zincati updates ^^ |
since you mentioned akmod - I found a related github issue: openzfs/zfs#12641 where is stated that akmod is not available on coreos - did that change in the meantime? |
@sgohl - there's not an easy answer to this problem. I will point out that I think this use case (out of tree kernel modules) might be a good case for OSTree native containers (also known as CoreOS Layering). We should add an example of how to build an out of tree kernel module and use that to https://github.com/coreos/coreos-layering-examples |
I created a issue a few days back: coreos/layering-examples#40 I will try to get an example ready during this week. |
An example has been pushed in https://github.com/coreos/layering-examples/tree/main/build-zfs-module |
I just tried this and I am possibly missing a step or do it completely wrong I used an existing coreos machine to build the image (using docker)
what's the authentication it's talking about? And what I don't understand: I always use the Is it even possible to produce an image that can be installed with |
@sgohl try loging in to your private repository using
This is a gap in our doc that will be addressed soon: coreos/rpm-ostree#4180 As for generating bootable images from layered images, this is another open enhancement/issue we are tracking here: #1151 |
For unauthenticated images, this is this issue which is fixed in https://github.com/coreos/rpm-ostree/releases/tag/v2022.15 |
in my case, the image is in the /pub space of the registry, so no auth is requested or required.
yeah, we all have been there :-D I wish you would consider including the zfs kernel module in the official coreos build - it wouldn't be very much disk space, i think. I know of some people who did not choose CoreOS because of missing ZFS, also ... |
That's a |
oh right, there was something with CDDL But as I said initially, I would absolutely try to create my own coreos iso/ova/whatever, if I only knew how to do it. These tools like cosa are a book of seven seals to me, unfortunately. Docs seem to require that you already have base knowlege, but lack examples. An example how to do it on a coreos machine would be superior. I'm not sure if I like this container native ostree approach, but I still don't understand half of it yet since I was stuck at the first attempt, but I know, this is out of the scope of this issue 😆 |
Since there has been an example pushed for this I don't see much else to do here. Closing. |
I am struggling to get this to work, following the example. I can see the RPMs installed in the layer with
And modprobe:
For reference:
-- EDIT I figured out the issue: had to run |
Describe the enhancement
I am trying, without success, to get ZFS anyhow working on coreos.
I don't need it for root/boot, just for additional disks.
Is there any option I am just not aware of? I found and tested a gist which uses koji (but does not have the current kernel available), but I think then my systems break on the next zincati update.
I would also go with zfs-fuse if there's no other way, but that systemd-unit errors:
I guess that rpm-package is not compatible with coreos and I'd rather have it as kernel module, anyway.
Although I've not done it before, I would consider building a custom coreos via cosa, if that's the last option?
Thanks in advance for any help!
System details
bare metal / vmware esx
Additional information
No response
The text was updated successfully, but these errors were encountered: