I just did a omv-upgrade on the console and the update process tried to upgrade from 5.16 to 5.18. While compiling the kernel there was an error compiling the zfs module which resulted in no zfs available when booting the new kernel. I could temp fix this by rebooting and selecting the old 5.16, but I am not wondering how I can fix this by getting back into a sane state, either removing that latest update with the 5.18 from my system or retrying the build.
Any help appreciated.
below some errors of the logs. Seems like problems in the build script, so I cam really clueless how to fix this:
Code
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c: In function 'vdev_bio_set_dev':
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:540:22: error: implicit declaration of function 'vdev_blkg_tryget' [-Werror=implicit-function-declaration]
540 | if (q->root_blkg && vdev_blkg_tryget(q->root_blkg))
| ^~~~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/umh.h:4,
from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/kmod.h:9,
from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/module.h:17,
from /var/lib/dkms/zfs/2.1.4/build/include/os/linux/spl/sys/atomic.h:27,
from /var/lib/dkms/zfs/2.1.4/build/include/sys/zfs_context.h:46,
from /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:29:
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c: In function '__vdev_disk_physio':
/usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/gfp.h:344:18: warning: passing argument 1 of 'bio_alloc' makes pointer from integer without a cast [-Wint-conversion]
344 | #define GFP_NOIO (__GFP_RECLAIM)
| ^~~~~~~~~~~~~~~
| |
| unsigned int
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:628:29: note: in expansion of macro 'GFP_NOIO'
628 | dr->dr_bio[i] = bio_alloc(GFP_NOIO, bio_max_segs(
| ^~~~~~~~
In file included from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/writeback.h:209,
from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/memcontrol.h:22,
from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/swap.h:9,
from /var/lib/dkms/zfs/2.1.4/build/include/os/linux/spl/sys/vmsystm.h:29,
from /var/lib/dkms/zfs/2.1.4/build/include/sys/zfs_context.h:48,
from /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:29:
/usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/bio.h:423:58: note: expected 'struct block_device *' but argument is of type 'unsigned int'
423 | static inline struct bio *bio_alloc(struct block_device *bdev,
| ~~~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:628:19: error: too few arguments to function 'bio_alloc'
628 | dr->dr_bio[i] = bio_alloc(GFP_NOIO, bio_max_segs(
| ^~~~~~~~~
In file included from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/writeback.h:209,
from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/memcontrol.h:22,
from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/swap.h:9,
from /var/lib/dkms/zfs/2.1.4/build/include/os/linux/spl/sys/vmsystm.h:29,
from /var/lib/dkms/zfs/2.1.4/build/include/sys/zfs_context.h:48,
from /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:29:
/usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/bio.h:423:27: note: declared here
423 | static inline struct bio *bio_alloc(struct block_device *bdev,
| ^~~~~~~~~
In file included from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/umh.h:4,
from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/kmod.h:9,
from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/module.h:17,
from /var/lib/dkms/zfs/2.1.4/build/include/os/linux/spl/sys/atomic.h:27,
from /var/lib/dkms/zfs/2.1.4/build/include/sys/zfs_context.h:46,
from /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:29:
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c: In function 'vdev_disk_io_flush':
/usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/gfp.h:344:18: warning: passing argument 1 of 'bio_alloc' makes pointer from integer without a cast [-Wint-conversion]
344 | #define GFP_NOIO (__GFP_RECLAIM)
| ^~~~~~~~~~~~~~~
| |
| unsigned int
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:707:18: note: in expansion of macro 'GFP_NOIO'
707 | bio = bio_alloc(GFP_NOIO, 0);
| ^~~~~~~~
In file included from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/writeback.h:209,
from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/memcontrol.h:22,
from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/swap.h:9,
from /var/lib/dkms/zfs/2.1.4/build/include/os/linux/spl/sys/vmsystm.h:29,
from /var/lib/dkms/zfs/2.1.4/build/include/sys/zfs_context.h:48,
from /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:29:
/usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/bio.h:423:58: note: expected 'struct block_device *' but argument is of type 'unsigned int'
423 | static inline struct bio *bio_alloc(struct block_device *bdev,
| ~~~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:707:8: error: too few arguments to function 'bio_alloc'
707 | bio = bio_alloc(GFP_NOIO, 0);
| ^~~~~~~~~
In file included from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/writeback.h:209,
from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/memcontrol.h:22,
from /usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/swap.h:9,
from /var/lib/dkms/zfs/2.1.4/build/include/os/linux/spl/sys/vmsystm.h:29,
from /var/lib/dkms/zfs/2.1.4/build/include/sys/zfs_context.h:48,
from /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:29:
/usr/src/linux-headers-5.18.0-0.bpo.1-common/include/linux/bio.h:423:27: note: declared here
423 | static inline struct bio *bio_alloc(struct block_device *bdev,
| ^~~~~~~~~
cc1: some warnings being treated as errors
make[5]: *** [/usr/src/linux-headers-5.18.0-0.bpo.1-common/scripts/Makefile.build:293: /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [/usr/src/linux-headers-5.18.0-0.bpo.1-common/scripts/Makefile.build:555: /var/lib/dkms/zfs/2.1.4/build/module/zfs] Error 2
make[3]: *** [/usr/src/linux-headers-5.18.0-0.bpo.1-common/Makefile:1858: /var/lib/dkms/zfs/2.1.4/build/module] Error 2
make[3]: Leaving directory '/usr/src/linux-headers-5.18.0-0.bpo.1-amd64'
make[2]: *** [Makefile:55: modules-Linux] Error 2
make[2]: Leaving directory '/var/lib/dkms/zfs/2.1.4/build/module'
make[1]: *** [Makefile:880: all-recursive] Error 1
make[1]: Leaving directory '/var/lib/dkms/zfs/2.1.4/build'
make: *** [Makefile:741: all] Error 2
Display More