[[+content_image]]
D
D
Dima Petrov2021-09-16 19:06:49
ZFS
Dima Petrov, 2021-09-16 19:06:49

Centos 8 won't install zfs, what's wrong?

[[email protected] ~]# dnf install kernel-devel zfs
Extra Packages for Enterprise Linux Modular 8 - x86_64                                                  1.5 MB/s | 939 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                                                           28 MB/s |  10 MB     00:00    
Зависимости разрешены.
========================================================================================================================================
 Пакет                                  Архитектура      Версия                                               Репозиторий         Размер
========================================================================================================================================
Установка:
 kernel-devel                           x86_64           4.18.0-305.19.1.el8_4                                baseos               18 M
 zfs                                    x86_64           0.8.6-1.el8                                          zfs                 516 k
Установка зависимостей:
 annobin                                x86_64           9.50-1.el8                                           appstream           106 k
 binutils                               x86_64           2.30-93.el8                                          baseos              5.8 M
 cpp                                    x86_64           8.4.1-1.el8.alma                                     appstream            10 M
 dkms                                   noarch           2.8.6-1.el8                                          epel                 81 k
 dwz                                    x86_64           0.12-9.el8                                           appstream           108 k
 efi-srpm-macros                        noarch           3-3.el8                                              appstream            21 k
 elfutils-libelf-devel                  x86_64           0.182-3.el8                                          baseos               57 k
 gcc                                    x86_64           8.4.1-1.el8.alma                                     appstream            23 M
 ghc-srpm-macros                        noarch           1.4.2-7.el8                                          appstream           9.2 k
 glibc-devel                            x86_64           2.28-151.el8                                         baseos              1.0 M
 glibc-headers                          x86_64           2.28-151.el8                                         baseos              477 k
 go-srpm-macros                         noarch           2-17.el8                                             appstream            12 k
 isl                                    x86_64           0.16.1-6.el8                                         appstream           841 k
 kernel-headers                         x86_64           4.18.0-305.19.1.el8_4                                baseos              7.1 M
 libmpc                                 x86_64           1.1.0-9.1.el8                                        appstream            60 k
 libnvpair1                             x86_64           0.8.6-1.el8                                          zfs                  37 k
 libpkgconf                             x86_64           1.4.2-1.el8                                          baseos               35 k
 libuutil1                              x86_64           0.8.6-1.el8                                          zfs                  31 k
 libxcrypt-devel                        x86_64           4.1.1-4.el8                                          baseos               25 k
 libzfs2                                x86_64           0.8.6-1.el8                                          zfs                 217 k
 libzpool2                              x86_64           0.8.6-1.el8                                          zfs                 874 k

  ........ 

  Установка        : perl-ExtUtils-Miniperl-1.06-419.el8.noarch                                                                 179/188 
  Установка        : perl-libnetcfg-4:5.26.3-419.el8.noarch                                                                     180/188 
  Установка        : perl-Encode-devel-4:2.97-3.el8.x86_64                                                                      181/188 
  Установка        : perl-inc-latest-2:0.500-9.el8.noarch                                                                       182/188 
  Установка        : perl-Module-Build-2:0.42.24-5.el8.noarch                                                                   183/188 
  Установка        : perl-CPAN-2.18-397.el8.noarch                                                                              184/188 
  Установка        : perl-4:5.26.3-419.el8.x86_64                                                                               185/188 
  Установка        : dkms-2.8.6-1.el8.noarch                                                                                    186/188 
  Запуск скриптлета: dkms-2.8.6-1.el8.noarch                                                                                    186/188 
  Установка        : zfs-dkms-0.8.6-1.el8.noarch                                                                                187/188 
  Запуск скриптлета: zfs-dkms-0.8.6-1.el8.noarch                                                                                187/188 
Loading new zfs-0.8.6 DKMS files...
Building for 4.18.0-305.el8.x86_64
Module build for kernel 4.18.0-305.el8.x86_64 was skipped since the
kernel headers for this kernel does not seem to be installed.

  Установка        : zfs-0.8.6-1.el8.x86_64                                                                                     188/188 
  Запуск скриптлета: zfs-0.8.6-1.el8.x86_64                                                                                     188/188 
  Проверка         : binutils-2.30-93.el8.x86_64                                                                                  1/188 
  Проверка         : elfutils-libelf-devel-0.182-3.el8.x86_64                                                                     2/188 
  Проверка         : glibc-devel-2.28-151.el8.x86_64                                                                              3/188 
  Проверка         : glibc-headers-2.28-151.el8.x86_64                                                                            4/188 
  Проверка         : kernel-devel-4.18.0-305.19.1.el8_4.x86_64                                                                    5/188 
  Проверка         : kernel-headers-4.18.0-305.19.1.el8_4.x86_64                                                                  6/188 
  Проверка         : libpkgconf-1.4.2-1.el8.x86_64                                                                                7/188 
  Проверка         : libxcrypt-devel-4.1.1-4.el8.x86_64                                                                           8/188 
  Проверка         : lm_sensors-libs-3.4.0-22.20180522git70f7e08.el8.x86_64                                                       9/188 
  Проверка         : make-1:4.2.1-10.el8.x86_64                                                                                  10/188 
  Проверка         : perl-Algorithm-Diff-1.1903-9.el8.noarch                                                                     11/188 
  Проверка         : perl-Archive-Tar-2.30-1.el8.noarch                                                                          12/188 
  Проверка         : perl-Carp-1.42-396.el8.noarch                                                                               13/188 

  ..........

[[email protected] ~]# modprobe zfs 
modprobe: FATAL: Module zfs not found in directory /lib/modules/4.18.0-305.el8.x86_64

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
D
Dima Petrov, 2021-09-16
@sajor2006

helped.
yum reinstall kernel*

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question