Skip to content
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

Runtime error on Alpine Linux #9

Open
centromere opened this issue Jun 26, 2020 · 3 comments
Open

Runtime error on Alpine Linux #9

centromere opened this issue Jun 26, 2020 · 3 comments

Comments

@centromere
Copy link

When building and running from the alpine:latest Docker image, the following error occurs:

zpool_latency_vdev_scrub_histo_seconds_bucket{name="tank",vdev="root",le="+Inf"} 14168517
zpool_latency_vdev_scrub_histo_seconds_sum{name="tank",vdev="root"} 0
zpool_latency_vdev_scrub_histo_seconds_count{name="tank",vdev="root"} 14168517
error: can't get vdev_trim_histo

I do not have any SSDs attached to this machine, so perhaps that's why it isn't working. When I remove the TRIM-related lines, the application runs to completion.

@richardelling
Copy link
Owner

This can happen if the runtime ZFS kernel module does not match the compiled header files.
Can you share the version of the ZFS kernel module: modinfo zfs | grep version ?

@centromere
Copy link
Author

version:        0.7.5-1ubuntu16.8
srcversion:     A3222A8FEA8707E8E568D80

@richardelling
Copy link
Owner

ok, trim support appears in ZFS version 0.8.0. So the binary must have been compiled in a
version 0.8.x or later system.

Ideally, the runtime is the same version of ZFS as compile time. If they are not the same,
then it is possible to cause zpool_prometheus to break for other incompatibility reasons.

That said, I think we can be a little bit smarter about backwards compatibility. I'll take a look
at it this week. Either way, there will need to be a recompilation of zpool_prometheus for
your container.

Long term, I plan to contribute zpool_prometheus into the OpenZFS mainline. Once that
happens there will always be a zpool_prometheus compiled to match the corresponding
ZFS kernel module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants