Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

ZFS build fails due to kernel version #2299

Closed
kingsd041 opened this issue Mar 20, 2018 · 7 comments
Closed

ZFS build fails due to kernel version #2299

kingsd041 opened this issue Mar 20, 2018 · 7 comments

Comments

@kingsd041
Copy link
Contributor

RancherOS Version: (ros os version)
v1.3.0-rc1
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
AWS

Starting zfs in rancheros v1.3.0-rc1 fails, when I run sudo ros service up zfs you can see the following logs

zfs_1 | checking linux distribution... debian
zfs_1 | checking default package type... deb
zfs_1 | checking whether rpm is available... no
zfs_1 | checking whether rpmbuild is available... no
zfs_1 | checking whether spec files are available... yes (rpm/generic/*.spec.in)
zfs_1 | checking whether dpkg is available... yes (1.18.24)
zfs_1 | checking whether dpkg-buildpackage is available... no
zfs_1 | checking whether alien is available... no
zfs_1 | checking spl config... all
zfs_1 | checking kernel source directory... /lib/modules/4.15.9-rancher/build
zfs_1 | checking kernel build directory... /lib/modules/4.15.9-rancher/build
zfs_1 | checking kernel source version... 4.15.9-rancher
zfs_1 | checking kernel file name for module symbols... Module.symvers
zfs_1 | checking whether debugging is enabled... no
zfs_1 | checking whether basic kmem accounting is enabled... no
zfs_1 | checking whether detailed kmem tracking is enabled... no
zfs_1 | checking whether modules can be built... no
zfs_1 | configure: error: *** Unable to build an empty module.
@niusmallnan
Copy link
Contributor

It seems that zfs is not compatible with the 4.15.x kernel.
openzfs/zfs#7159

@niusmallnan
Copy link
Contributor

niusmallnan commented Mar 27, 2018

An important user needs to use zfs, so I roll back the kernel to 4.9.x , then zfs can work fine.
Please try v1.3.0-rc2

@kingsd041
Copy link
Contributor Author

ZFS is available in rancher v1.3.0-rc2

@ryansch
Copy link

ryansch commented Mar 29, 2018

@niusmallnan is this why 4.15.x didn't make it out? Do you have a timeline? I've intentionally not deployed a workaround for the bug we've got because 1.3.0 was right around the corner.

@niusmallnan
Copy link
Contributor

niusmallnan commented May 31, 2018

Same issue in v1.4.0-rc2 with kernel 4.14.32.
I will drop the ZFS support before we fix it.

@niusmallnan niusmallnan removed this from the v1.3.0 milestone May 31, 2018
@niusmallnan niusmallnan reopened this May 31, 2018
@niusmallnan niusmallnan changed the title Starting zfs in rancheros v1.3.0-rc1 fails ZFS build fails due to kernel version May 31, 2018
@niusmallnan niusmallnan added this to the v1.5.0 milestone Jul 17, 2018
@rootwuj
Copy link

rootwuj commented Aug 24, 2018

Tested with RancherOS version- v1.4.1-rc2(Kernel Version: 4.14.65-rancher) with AWS.
This version of ZFS can be installed successfully.

@niusmallnan
Copy link
Contributor

Backported to v1.4.1.

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

No branches or pull requests

4 participants