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

Upgrading / Updating ZoL from 0.6.2 to 0.6.3 fails #2400

Closed
deajan opened this issue Jun 15, 2014 · 34 comments
Closed

Upgrading / Updating ZoL from 0.6.2 to 0.6.3 fails #2400

deajan opened this issue Jun 15, 2014 · 34 comments
Labels
Type: Building Indicates an issue related to building binaries Type: Documentation Indicates a requested change to the documentation
Milestone

Comments

@deajan
Copy link

deajan commented Jun 15, 2014

Hello,

I tried to update ZoL 0.6.2 to 0.6.3 on a production server with the following specs:
CentOS 6.5 x64, 8GB RAM, 4xSAS HDD from which 2x1To ZFS mirror on IBM x3100M4.

Something went wrong with building the new modules.
Here's the transcript of what i've done so far.

First, i removed elder kernels so i won't have to wait building unnecessary old kernel modules:
[root@backupmaster ~]# yum remove kernel-2.6.32-431.3.1.el6.x86_64 kernel-devel-2.6.32-431.3.1.el6.x86_64 kernel-2.6.32-431.11.2.el6.x86_64 kernel-devel-2.6.32-431.11.2.el6.x86_64 kernel-2.6.32-431.5.1.el6.x86_64 kernel-devel-2.6.32-431.5.1.el6.x86_64

Then, i just tried to update my system (including zfs):

[root@backupmaster ~]# yum update
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * base: centos.quelquesmots.fr
 * epel: mirrors.coreix.net
 * extras: mirror.in2p3.fr
 * updates: mirror.in2p3.fr
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package dkms.noarch 0:2.2.0.3-14.zfs1.el6 will be updated
---> Package dkms.noarch 0:2.2.0.3-20.el6 will be an update
---> Package firefox.x86_64 0:24.5.0-1.el6.centos will be updated
---> Package firefox.x86_64 0:24.6.0-1.el6.centos will be an update
---> Package libvirt.x86_64 0:0.10.2-29.el6_5.8 will be updated
---> Package libvirt.x86_64 0:0.10.2-29.el6_5.9 will be an update
---> Package libvirt-client.x86_64 0:0.10.2-29.el6_5.8 will be updated
---> Package libvirt-client.x86_64 0:0.10.2-29.el6_5.9 will be an update
---> Package libvirt-python.x86_64 0:0.10.2-29.el6_5.8 will be updated
---> Package libvirt-python.x86_64 0:0.10.2-29.el6_5.9 will be an update
---> Package qemu-img.x86_64 2:0.12.1.2-2.415.el6_5.8 will be updated
---> Package qemu-img.x86_64 2:0.12.1.2-2.415.el6_5.10 will be an update
---> Package qemu-kvm.x86_64 2:0.12.1.2-2.415.el6_5.8 will be updated
---> Package qemu-kvm.x86_64 2:0.12.1.2-2.415.el6_5.10 will be an update
---> Package spice-server.x86_64 0:0.12.4-6.el6_5.1 will be updated
---> Package spice-server.x86_64 0:0.12.4-6.el6_5.2 will be an update
---> Package spl.x86_64 0:0.6.2-1.el6 will be updated
---> Package spl.x86_64 0:0.6.3-1.el6 will be an update
---> Package spl-dkms.noarch 0:0.6.2-1.el6 will be updated
---> Package spl-dkms.noarch 0:0.6.3-1.el6 will be an update
---> Package zfs.x86_64 0:0.6.2-1.el6 will be updated
--> Processing Dependency: libnvpair.so.1()(64bit) for package: zfs-0.6.3-1.el6.x86_64
--> Processing Dependency: libuutil.so.1()(64bit) for package: zfs-0.6.3-1.el6.x86_64
---> Package zfs.x86_64 0:0.6.3-1.el6 will be an update
--> Processing Dependency: libzpool2 = 0.6.3 for package: zfs-0.6.3-1.el6.x86_64
--> Processing Dependency: libzfs2 = 0.6.3 for package: zfs-0.6.3-1.el6.x86_64
--> Processing Dependency: libzpool.so.2()(64bit) for package: zfs-0.6.3-1.el6.x86_64
--> Processing Dependency: libzfs_core.so.1()(64bit) for package: zfs-0.6.3-1.el6.x86_64
--> Processing Dependency: libzfs.so.2()(64bit) for package: zfs-0.6.3-1.el6.x86_64
---> Package zfs-dkms.noarch 0:0.6.2-1.el6 will be updated
---> Package zfs-dkms.noarch 0:0.6.3-1.el6 will be an update
---> Package zfs-release.noarch 0:1-3.el6 will be updated
---> Package zfs-release.noarch 0:1-4.el6 will be an update
--> Running transaction check
---> Package libnvpair1.x86_64 0:0.6.3-1.el6 will be installed
---> Package libuutil1.x86_64 0:0.6.3-1.el6 will be installed
---> Package libzfs2.x86_64 0:0.6.3-1.el6 will be installed
---> Package libzpool2.x86_64 0:0.6.3-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================================================================
 Package                                        Arch                                   Version                                                    Repository                               Size
================================================================================================================================================================================================
Updating:
 dkms                                           noarch                                 2.2.0.3-20.el6                                             epel                                     75 k
 firefox                                        x86_64                                 24.6.0-1.el6.centos                                        updates                                  47 M
 libvirt                                        x86_64                                 0.10.2-29.el6_5.9                                          updates                                 2.4 M
 libvirt-client                                 x86_64                                 0.10.2-29.el6_5.9                                          updates                                 4.0 M
 libvirt-python                                 x86_64                                 0.10.2-29.el6_5.9                                          updates                                 478 k
 qemu-img                                       x86_64                                 2:0.12.1.2-2.415.el6_5.10                                  updates                                 596 k
 qemu-kvm                                       x86_64                                 2:0.12.1.2-2.415.el6_5.10                                  updates                                 1.5 M
 spice-server                                   x86_64                                 0.12.4-6.el6_5.2                                           updates                                 344 k
 spl                                            x86_64                                 0.6.3-1.el6                                                zfs                                      22 k
 spl-dkms                                       noarch                                 0.6.3-1.el6                                                zfs                                     481 k
 zfs                                            x86_64                                 0.6.3-1.el6                                                zfs                                     282 k
 zfs-dkms                                       noarch                                 0.6.3-1.el6                                                zfs                                     1.8 M
 zfs-release                                    noarch                                 1-4.el6                                                    zfs                                     5.0 k
Installing for dependencies:
 libnvpair1                                     x86_64                                 0.6.3-1.el6                                                zfs                                      26 k
 libuutil1                                      x86_64                                 0.6.3-1.el6                                                zfs                                      31 k
 libzfs2                                        x86_64                                 0.6.3-1.el6                                                zfs                                     109 k
 libzpool2                                      x86_64                                 0.6.3-1.el6                                                zfs                                     377 k

Transaction Summary
================================================================================================================================================================================================
Install       4 Package(s)
Upgrade      13 Package(s)

Total download size: 59 M
Is this ok [y/N]: y
Downloading Packages:
(1/17): dkms-2.2.0.3-20.el6.noarch.rpm                                                                                                                                   |  75 kB     00:00
(2/17): firefox-24.6.0-1.el6.centos.x86_64.rpm                                                                                                                           |  47 MB     00:48
(3/17): libnvpair1-0.6.3-1.el6.x86_64.rpm                                                                                                                                |  26 kB     00:00
(4/17): libuutil1-0.6.3-1.el6.x86_64.rpm                                                                                                                                 |  31 kB     00:00
(5/17): libvirt-0.10.2-29.el6_5.9.x86_64.rpm                                                                                                                             | 2.4 MB     00:02
(6/17): libvirt-client-0.10.2-29.el6_5.9.x86_64.rpm                                                                                                                      | 4.0 MB     00:04
(7/17): libvirt-python-0.10.2-29.el6_5.9.x86_64.rpm                                                                                                                      | 478 kB     00:00
(8/17): libzfs2-0.6.3-1.el6.x86_64.rpm                                                                                                                                   | 109 kB     00:00
(9/17): libzpool2-0.6.3-1.el6.x86_64.rpm                                                                                                                                 | 377 kB     00:02
(10/17): qemu-img-0.12.1.2-2.415.el6_5.10.x86_64.rpm                                                                                                                     | 596 kB     00:01
(11/17): qemu-kvm-0.12.1.2-2.415.el6_5.10.x86_64.rpm                                                                                                                     | 1.5 MB     00:01
(12/17): spice-server-0.12.4-6.el6_5.2.x86_64.rpm                                                                                                                        | 344 kB     00:00
(13/17): spl-0.6.3-1.el6.x86_64.rpm                                                                                                                                      |  22 kB     00:00
(14/17): spl-dkms-0.6.3-1.el6.noarch.rpm                                                                                                                                 | 481 kB     00:00
(15/17): zfs-0.6.3-1.el6.x86_64.rpm                                                                                                                                      | 282 kB     00:00
(16/17): zfs-dkms-0.6.3-1.el6.noarch.rpm                                                                                                                                 | 1.8 MB     00:03
(17/17): zfs-release-1-4.el6.noarch.rpm                                                                                                                                  | 5.0 kB     00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                           867 kB/s |  59 MB     01:10
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libuutil1-0.6.3-1.el6.x86_64                                                                                                                                                1/30
  Installing : libnvpair1-0.6.3-1.el6.x86_64                                                                                                                                               2/30
  Installing : libzpool2-0.6.3-1.el6.x86_64                                                                                                                                                3/30
  Updating   : dkms-2.2.0.3-20.el6.noarch                                                                                                                                                  4/30
  Updating   : spl-dkms-0.6.3-1.el6.noarch                                                                                                                                                 5/30
Loading new spl-0.6.3 DKMS files...
First Installation: checking all kernels...
Building only for 2.6.32-431.17.1.el6.x86_64
Building initial module for 2.6.32-431.17.1.el6.x86_64
Done.

spl:
Running module version sanity check.
Error! Module version 0.6.3-1 for spl.ko
is not newer than what is already found in kernel 2.6.32-431.17.1.el6.x86_64 (664F7C79EA3E7B6E8FA6871).
You may override by specifying --force.

splat.ko:
Running module version sanity check.
Error! Module version 0.6.3-1 for splat.ko
is not newer than what is already found in kernel 2.6.32-431.17.1.el6.x86_64 (0.6.3-1).
You may override by specifying --force.
Adding any weak-modules
ERROR: modinfo: could not open /lib/modules/2.6.32-431.1.2.0.1.el6.x86_64/weak-updates/: Is a directory
ERROR: modinfo: could not open /lib/modules/2.6.32-431.17.1.el6.x86_64/spl.ko: No such file or directory
FATAL: /lib/modules/2.6.32-431.17.1.el6.x86_64/spl.ko: No such file or directory
Warning: Module spl.ko from kernel  has no modversions, so it cannot be reused for kernel 2.6.32-431.1.2.0.1.el6.x86_64
ERROR: modinfo: could not open /lib/modules/2.6.32-431.1.2.0.1.el6.x86_64/weak-updates/: Is a directory
ERROR: modinfo: could not open /lib/modules/2.6.32-431.17.1.el6.x86_64/splat.ko: No such file or directory
FATAL: /lib/modules/2.6.32-431.17.1.el6.x86_64/splat.ko: No such file or directory
Warning: Module splat.ko from kernel  has no modversions, so it cannot be reused for kernel 2.6.32-431.1.2.0.1.el6.x86_64
WARNING: Can't read module /lib/modules/2.6.32-431.17.1.el6.x86_64/weak-updates/splat.ko: No such file or directory
WARNING: Can't read module /lib/modules/2.6.32-431.17.1.el6.x86_64/weak-updates/spl.ko: No such file or directory
egrep: /lib/modules/2.6.32-431.17.1.el6.x86_64//weak-updates/splat.ko: No such file or directory
egrep: /lib/modules/2.6.32-431.17.1.el6.x86_64//weak-updates/spl.ko: No such file or directory

Running the post_install script:

depmod...

DKMS: install completed.
  Updating   : libvirt-client-0.10.2-29.el6_5.9.x86_64                                                                                                                                     6/30
  Updating   : 2:qemu-img-0.12.1.2-2.415.el6_5.10.x86_64                                                                                                                                   7/30
  Updating   : spl-0.6.3-1.el6.x86_64                                                                                                                                                      8/30
  Updating   : zfs-dkms-0.6.3-1.el6.noarch                                                                                                                                                 9/30
Loading new zfs-0.6.3 DKMS files...
First Installation: checking all kernels...
Building only for 2.6.32-431.17.1.el6.x86_64
Building initial module for 2.6.32-431.17.1.el6.x86_64
Done.

zavl:
Running module version sanity check.
Error! Module version 0.6.3-1 for zavl.ko
is not newer than what is already found in kernel 2.6.32-431.17.1.el6.x86_64 (5835515F233A845D5B11799).
You may override by specifying --force.

znvpair.ko:
Running module version sanity check.
Error! Module version 0.6.3-1 for znvpair.ko
is not newer than what is already found in kernel 2.6.32-431.17.1.el6.x86_64 (0.6.3-1).
You may override by specifying --force.

zunicode.ko:
Running module version sanity check.
Error! Module version 0.6.3-1 for zunicode.ko
is not newer than what is already found in kernel 2.6.32-431.17.1.el6.x86_64 (0.6.3-1).
You may override by specifying --force.

zcommon.ko:
Running module version sanity check.
Error! Module version 0.6.3-1 for zcommon.ko
is not newer than what is already found in kernel 2.6.32-431.17.1.el6.x86_64 (0.6.3-1).
You may override by specifying --force.

zfs.ko:
Running module version sanity check.
Error! Module version 0.6.3-1 for zfs.ko
is not newer than what is already found in kernel 2.6.32-431.17.1.el6.x86_64 (0.6.3-1).
You may override by specifying --force.

zpios.ko:
Running module version sanity check.
Error! Module version 0.6.3-1 for zpios.ko
is not newer than what is already found in kernel 2.6.32-431.17.1.el6.x86_64 (0.6.3-1).
You may override by specifying --force.
Adding any weak-modules
ERROR: modinfo: could not open /lib/modules/2.6.32-431.1.2.0.1.el6.x86_64/weak-updates/: Is a directory
ERROR: modinfo: could not open /lib/modules/2.6.32-431.17.1.el6.x86_64/zavl.ko: No such file or directory
FATAL: /lib/modules/2.6.32-431.17.1.el6.x86_64/zavl.ko: No such file or directory
Warning: Module zavl.ko from kernel  has no modversions, so it cannot be reused for kernel 2.6.32-431.1.2.0.1.el6.x86_64
ERROR: modinfo: could not open /lib/modules/2.6.32-431.1.2.0.1.el6.x86_64/weak-updates/: Is a directory
ERROR: modinfo: could not open /lib/modules/2.6.32-431.17.1.el6.x86_64/znvpair.ko: No such file or directory
FATAL: /lib/modules/2.6.32-431.17.1.el6.x86_64/znvpair.ko: No such file or directory
Warning: Module znvpair.ko from kernel  has no modversions, so it cannot be reused for kernel 2.6.32-431.1.2.0.1.el6.x86_64
ERROR: modinfo: could not open /lib/modules/2.6.32-431.1.2.0.1.el6.x86_64/weak-updates/: Is a directory
ERROR: modinfo: could not open /lib/modules/2.6.32-431.17.1.el6.x86_64/zunicode.ko: No such file or directory
FATAL: /lib/modules/2.6.32-431.17.1.el6.x86_64/zunicode.ko: No such file or directory
Warning: Module zunicode.ko from kernel  has no modversions, so it cannot be reused for kernel 2.6.32-431.1.2.0.1.el6.x86_64
ERROR: modinfo: could not open /lib/modules/2.6.32-431.1.2.0.1.el6.x86_64/weak-updates/: Is a directory
ERROR: modinfo: could not open /lib/modules/2.6.32-431.17.1.el6.x86_64/zcommon.ko: No such file or directory
FATAL: /lib/modules/2.6.32-431.17.1.el6.x86_64/zcommon.ko: No such file or directory
Warning: Module zcommon.ko from kernel  has no modversions, so it cannot be reused for kernel 2.6.32-431.1.2.0.1.el6.x86_64
ERROR: modinfo: could not open /lib/modules/2.6.32-431.1.2.0.1.el6.x86_64/weak-updates/: Is a directory
ERROR: modinfo: could not open /lib/modules/2.6.32-431.17.1.el6.x86_64/zfs.ko: No such file or directory
FATAL: /lib/modules/2.6.32-431.17.1.el6.x86_64/zfs.ko: No such file or directory
Warning: Module zfs.ko from kernel  has no modversions, so it cannot be reused for kernel 2.6.32-431.1.2.0.1.el6.x86_64
ERROR: modinfo: could not open /lib/modules/2.6.32-431.1.2.0.1.el6.x86_64/weak-updates/: Is a directory
ERROR: modinfo: could not open /lib/modules/2.6.32-431.17.1.el6.x86_64/zpios.ko: No such file or directory
FATAL: /lib/modules/2.6.32-431.17.1.el6.x86_64/zpios.ko: No such file or directory
Warning: Module zpios.ko from kernel  has no modversions, so it cannot be reused for kernel 2.6.32-431.1.2.0.1.el6.x86_64
WARNING: Can't read module /lib/modules/2.6.32-431.17.1.el6.x86_64/weak-updates/splat.ko: No such file or directory
WARNING: Can't read module /lib/modules/2.6.32-431.17.1.el6.x86_64/weak-updates/spl.ko: No such file or directory
egrep: /lib/modules/2.6.32-431.17.1.el6.x86_64//weak-updates/splat.ko: No such file or directory
egrep: /lib/modules/2.6.32-431.17.1.el6.x86_64//weak-updates/spl.ko: No such file or directory

Running the post_install script:

depmod...

DKMS: install completed.
  Installing : libzfs2-0.6.3-1.el6.x86_64                                                                                                                                                 10/30
  Updating   : spice-server-0.12.4-6.el6_5.2.x86_64                                                                                                                                       11/30
  Updating   : 2:qemu-kvm-0.12.1.2-2.415.el6_5.10.x86_64                                                                                                                                  12/30
  Updating   : zfs-0.6.3-1.el6.x86_64                                                                                                                                                     13/30
  Updating   : libvirt-0.10.2-29.el6_5.9.x86_64                                                                                                                                           14/30
  Updating   : libvirt-python-0.10.2-29.el6_5.9.x86_64                                                                                                                                    15/30
  Updating   : firefox-24.6.0-1.el6.centos.x86_64                                                                                                                                         16/30
  Updating   : zfs-release-1-4.el6.noarch                                                                                                                                                 17/30
  Cleanup    : libvirt-0.10.2-29.el6_5.8.x86_64                                                                                                                                           18/30
  Cleanup    : 2:qemu-kvm-0.12.1.2-2.415.el6_5.8.x86_64                                                                                                                                   19/30
  Cleanup    : zfs-0.6.2-1.el6.x86_64                                                                                                                                                     20/30
  Cleanup    : zfs-dkms-0.6.2-1.el6.noarch                                                                                                                                                21/30

-------- Uninstall Beginning --------
Module:  zfs
Version: 0.6.2
Kernel:  2.6.32-431.17.1.el6.x86_64 (x86_64)
-------------------------------------

Status: This module version was INACTIVE for this kernel.
depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 0.6.2
completely from the DKMS tree.
------------------------------
Done.
  Cleanup    : firefox-24.5.0-1.el6.centos.x86_64                                                                                                                                         22/30
  Cleanup    : zfs-release-1-3.el6.noarch                                                                                                                                                 23/30
  Cleanup    : spl-0.6.2-1.el6.x86_64                                                                                                                                                     24/30
  Cleanup    : spl-dkms-0.6.2-1.el6.noarch                                                                                                                                                25/30

-------- Uninstall Beginning --------
Module:  spl
Version: 0.6.2
Kernel:  2.6.32-431.17.1.el6.x86_64 (x86_64)
-------------------------------------

Status: This module version was INACTIVE for this kernel.
depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 0.6.2
completely from the DKMS tree.
------------------------------
Done.
  Cleanup    : libvirt-python-0.10.2-29.el6_5.8.x86_64                                                                                                                                    26/30
  Cleanup    : dkms-2.2.0.3-14.zfs1.el6.noarch                                                                                                                                            27/30
  Cleanup    : libvirt-client-0.10.2-29.el6_5.8.x86_64                                                                                                                                    28/30
  Cleanup    : spice-server-0.12.4-6.el6_5.1.x86_64                                                                                                                                       29/30
  Cleanup    : 2:qemu-img-0.12.1.2-2.415.el6_5.8.x86_64                                                                                                                                   30/30
  Verifying  : spl-0.6.3-1.el6.x86_64                                                                                                                                                      1/30
  Verifying  : 2:qemu-img-0.12.1.2-2.415.el6_5.10.x86_64                                                                                                                                   2/30
  Verifying  : zfs-0.6.3-1.el6.x86_64                                                                                                                                                      3/30
  Verifying  : zfs-release-1-4.el6.noarch                                                                                                                                                  4/30
  Verifying  : libzfs2-0.6.3-1.el6.x86_64                                                                                                                                                  5/30
  Verifying  : spice-server-0.12.4-6.el6_5.2.x86_64                                                                                                                                        6/30
  Verifying  : 2:qemu-kvm-0.12.1.2-2.415.el6_5.10.x86_64                                                                                                                                   7/30
  Verifying  : firefox-24.6.0-1.el6.centos.x86_64                                                                                                                                          8/30
  Verifying  : libvirt-0.10.2-29.el6_5.9.x86_64                                                                                                                                            9/30
  Verifying  : libvirt-client-0.10.2-29.el6_5.9.x86_64                                                                                                                                    10/30
  Verifying  : libuutil1-0.6.3-1.el6.x86_64                                                                                                                                               11/30
  Verifying  : libnvpair1-0.6.3-1.el6.x86_64                                                                                                                                              12/30
  Verifying  : libzpool2-0.6.3-1.el6.x86_64                                                                                                                                               13/30
  Verifying  : spl-dkms-0.6.3-1.el6.noarch                                                                                                                                                14/30
  Verifying  : dkms-2.2.0.3-20.el6.noarch                                                                                                                                                 15/30
  Verifying  : zfs-dkms-0.6.3-1.el6.noarch                                                                                                                                                16/30
  Verifying  : libvirt-python-0.10.2-29.el6_5.9.x86_64                                                                                                                                    17/30
  Verifying  : 2:qemu-img-0.12.1.2-2.415.el6_5.8.x86_64                                                                                                                                   18/30
  Verifying  : spl-0.6.2-1.el6.x86_64                                                                                                                                                     19/30
  Verifying  : zfs-0.6.2-1.el6.x86_64                                                                                                                                                     20/30
  Verifying  : 2:qemu-kvm-0.12.1.2-2.415.el6_5.8.x86_64                                                                                                                                   21/30
  Verifying  : firefox-24.5.0-1.el6.centos.x86_64                                                                                                                                         22/30
  Verifying  : libvirt-python-0.10.2-29.el6_5.8.x86_64                                                                                                                                    23/30
  Verifying  : dkms-2.2.0.3-14.zfs1.el6.noarch                                                                                                                                            24/30
  Verifying  : spice-server-0.12.4-6.el6_5.1.x86_64                                                                                                                                       25/30
  Verifying  : spl-dkms-0.6.2-1.el6.noarch                                                                                                                                                26/30
  Verifying  : zfs-dkms-0.6.2-1.el6.noarch                                                                                                                                                27/30
  Verifying  : libvirt-client-0.10.2-29.el6_5.8.x86_64                                                                                                                                    28/30
  Verifying  : libvirt-0.10.2-29.el6_5.8.x86_64                                                                                                                                           29/30
  Verifying  : zfs-release-1-3.el6.noarch                                                                                                                                                 30/30

Dependency Installed:
  libnvpair1.x86_64 0:0.6.3-1.el6                  libuutil1.x86_64 0:0.6.3-1.el6                  libzfs2.x86_64 0:0.6.3-1.el6                  libzpool2.x86_64 0:0.6.3-1.el6

Updated:
  dkms.noarch 0:2.2.0.3-20.el6                   firefox.x86_64 0:24.6.0-1.el6.centos           libvirt.x86_64 0:0.10.2-29.el6_5.9             libvirt-client.x86_64 0:0.10.2-29.el6_5.9
  libvirt-python.x86_64 0:0.10.2-29.el6_5.9      qemu-img.x86_64 2:0.12.1.2-2.415.el6_5.10      qemu-kvm.x86_64 2:0.12.1.2-2.415.el6_5.10      spice-server.x86_64 0:0.12.4-6.el6_5.2
  spl.x86_64 0:0.6.3-1.el6                       spl-dkms.noarch 0:0.6.3-1.el6                  zfs.x86_64 0:0.6.3-1.el6                       zfs-dkms.noarch 0:0.6.3-1.el6
  zfs-release.noarch 0:1-4.el6

From what i read, it seems that the update process thinks that the kernel modules are already up to date (so it keeps ZoL 0.6.2 modules ?).

Here's some additionnal info (i didn't find a way to get the modules version yet):

[root@backupmaster ~]# modinfo spl
filename:       /lib/modules/2.6.32-431.17.1.el6.x86_64/extra/spl.ko
license:        GPL
description:    Solaris Porting Layer
author:         Lawrence Livermore National Labs
srcversion:     664F7C79EA3E7B6E8FA6871
depends:        zlib_deflate
vermagic:       2.6.32-431.17.1.el6.x86_64 SMP mod_unload modversions
parm:           spl_hostid:The system hostid. (ulong)
parm:           spl_hostid_path:The system hostid file (/etc/hostid) (charp)
parm:           spl_kmem_cache_expire:By age (0x1) or low memory (0x2) (uint)
parm:           spl_debug_subsys:Subsystem debugging level mask. (ulong)
parm:           spl_debug_mask:Debugging level mask. (ulong)
parm:           spl_debug_printk:Console printk level mask. (ulong)
parm:           spl_debug_mb:Total debug buffer size. (int)
parm:           spl_debug_panic_on_bug:Panic on BUG (uint)

[root@backupmaster ~]# modinfo zfs
filename:       /lib/modules/2.6.32-431.17.1.el6.x86_64/extra/zfs.ko
license:        CDDL
author:         Sun Microsystems/Oracle, Lawrence Livermore National Laboratory
description:    ZFS
srcversion:     6B0A2BDB1B0D0798F123A83
depends:        spl,znvpair,zcommon,zunicode,zavl
vermagic:       2.6.32-431.17.1.el6.x86_64 SMP mod_unload modversions
parm:           zvol_inhibit_dev:Do not create zvol device nodes (uint)
parm:           zvol_major:Major number for zvol device (uint)
parm:           zvol_threads:Number of threads for zvol device (uint)
parm:           zvol_max_discard_blocks:Max number of blocks to discard at once (ulong)
parm:           zio_injection_enabled:Enable fault injection (int)
parm:           zio_bulk_flags:Additional flags to pass to bulk buffers (int)
parm:           zio_delay_max:Max zio millisec delay before posting event (int)
parm:           zio_requeue_io_start_cut_in_line:Prioritize requeued I/O (int)
parm:           zfs_sync_pass_deferred_free:defer frees starting in this pass (int)
parm:           zfs_sync_pass_dont_compress:don't compress starting in this pass (int)
parm:           zfs_sync_pass_rewrite:rewrite new bps starting in this pass (int)
parm:           zil_replay_disable:Disable intent logging replay (int)
parm:           zfs_nocacheflush:Disable cache flushes (int)
parm:           zil_slog_limit:Max commit bytes to separate log device (ulong)
parm:           zfs_read_chunk_size:Bytes to read per chunk (long)
parm:           zfs_immediate_write_sz:Largest data block to write to zil (long)
parm:           zfs_flags:Set additional debugging flags (int)
parm:           zfs_recover:Set to attempt to recover from fatal errors (int)
parm:           zfs_expire_snapshot:Seconds to expire .zfs/snapshot (int)
parm:           zfs_vdev_max_pending:Max pending per-vdev I/Os (int)
parm:           zfs_vdev_min_pending:Min pending per-vdev I/Os (int)
parm:           zfs_vdev_aggregation_limit:Max vdev I/O aggregation size (int)
parm:           zfs_vdev_time_shift:Deadline time shift for vdev I/O (int)
parm:           zfs_vdev_ramp_rate:Exponential I/O issue ramp-up rate (int)
parm:           zfs_vdev_read_gap_limit:Aggregate read I/O over gap (int)
parm:           zfs_vdev_write_gap_limit:Aggregate write I/O over gap (int)
parm:           zfs_vdev_mirror_switch_us:Switch mirrors every N usecs (int)
parm:           zfs_vdev_scheduler:I/O scheduler (charp)
parm:           zfs_vdev_cache_max:Inflate reads small than max (int)
parm:           zfs_vdev_cache_size:Total size of the per-disk cache (int)
parm:           zfs_vdev_cache_bshift:Shift size to inflate reads too (int)
parm:           zfs_txg_timeout:Max seconds worth of delta per txg (int)
parm:           zfs_deadman_synctime:Expire in units of zfs_txg_synctime_ms (ulong)
parm:           zfs_deadman_enabled:Enable deadman timer (int)
parm:           spa_config_path:SPA config file (/etc/zfs/zpool.cache) (charp)
parm:           zfs_autoimport_disable:Disable pool import at module load (int)
parm:           metaslab_debug:keep space maps in core to verify frees (int)
parm:           zfs_zevent_len_max:Max event queue length (int)
parm:           zfs_zevent_cols:Max event column width (int)
parm:           zfs_zevent_console:Log events to the console (int)
parm:           zfs_top_maxinflight:Max I/Os per top-level (int)
parm:           zfs_resilver_delay:Number of ticks to delay resilver (int)
parm:           zfs_scrub_delay:Number of ticks to delay scrub (int)
parm:           zfs_scan_idle:Idle window in clock ticks (int)
parm:           zfs_scan_min_time_ms:Min millisecs to scrub per txg (int)
parm:           zfs_free_min_time_ms:Min millisecs to free per txg (int)
parm:           zfs_resilver_min_time_ms:Min millisecs to resilver per txg (int)
parm:           zfs_no_scrub_io:Set to disable scrub I/O (int)
parm:           zfs_no_scrub_prefetch:Set to disable scrub prefetching (int)
parm:           zfs_no_write_throttle:Disable write throttling (int)
parm:           zfs_write_limit_shift:log2(fraction of memory) per txg (int)
parm:           zfs_txg_synctime_ms:Target milliseconds between txg sync (int)
parm:           zfs_txg_history:Historic statistics for the last N txgs (int)
parm:           zfs_write_limit_min:Min txg write limit (ulong)
parm:           zfs_write_limit_max:Max txg write limit (ulong)
parm:           zfs_write_limit_inflated:Inflated txg write limit (ulong)
parm:           zfs_write_limit_override:Override txg write limit (ulong)
parm:           zfs_prefetch_disable:Disable all ZFS prefetching (int)
parm:           zfetch_max_streams:Max number of streams per zfetch (uint)
parm:           zfetch_min_sec_reap:Min time before stream reclaim (uint)
parm:           zfetch_block_cap:Max number of blocks to fetch at a time (uint)
parm:           zfetch_array_rd_sz:Number of bytes in a array_read (ulong)
parm:           zfs_pd_blks_max:Max number of blocks to prefetch (int)
parm:           zfs_mdcomp_disable:Disable meta data compression (int)
parm:           zfs_dedup_prefetch:Enable prefetching dedup-ed blks (int)
parm:           zfs_arc_min:Min arc size (ulong)
parm:           zfs_arc_max:Max arc size (ulong)
parm:           zfs_arc_meta_limit:Meta limit for arc size (ulong)
parm:           zfs_arc_meta_prune:Bytes of meta data to prune (int)
parm:           zfs_arc_grow_retry:Seconds before growing arc size (int)
parm:           zfs_arc_shrink_shift:log2(fraction of arc to reclaim) (int)
parm:           zfs_arc_p_min_shift:arc_c shift to calc min/max arc_p (int)
parm:           zfs_disable_dup_eviction:disable duplicate buffer eviction (int)
parm:           zfs_arc_memory_throttle_disable:disable memory throttle (int)
parm:           zfs_arc_min_prefetch_lifespan:Min life of prefetch block (int)
parm:           l2arc_write_max:Max write bytes per interval (ulong)
parm:           l2arc_write_boost:Extra write bytes during device warmup (ulong)
parm:           l2arc_headroom:Number of max device writes to precache (ulong)
parm:           l2arc_headroom_boost:Compressed l2arc_headroom multiplier (ulong)
parm:           l2arc_feed_secs:Seconds between L2ARC writing (ulong)
parm:           l2arc_feed_min_ms:Min feed interval in milliseconds (ulong)
parm:           l2arc_noprefetch:Skip caching prefetched buffers (int)
parm:           l2arc_nocompress:Skip compressing L2ARC buffers (int)
parm:           l2arc_feed_again:Turbo L2ARC warmup (int)
parm:           l2arc_norw:No reads during writes (int)

Also, my system says ZoL 0.6.3 is installed:

[root@backupmaster ~]# rpm -qa | egrep -i "zfs|spl"
spl-dkms-0.6.3-1.el6.noarch
zfs-dkms-0.6.3-1.el6.noarch
zfs-0.6.3-1.el6.x86_64
zfs-release-1-4.el6.noarch
spl-0.6.3-1.el6.x86_64
libzfs2-0.6.3-1.el6.x86_64

I think i could indeed resolve my problem by removing all zfs and spl packages, and reinstalling them, but i've left my system in this state right now to be able to understand what happened, and maybe find a better solution which might help further install processes.

Any idea of what could have gone wrong ? Something to do with the new dkms pacakge which ain't from ZoL ? I heard dkms merged patches from ZoL. Has that happened yet ?

@srlefevre
Copy link

I ran into the same issue and tried a few things.

Reinstall

I first tried

yum reinstall zfs*spl* 

but that produced the same results. After rebooting, I noticed a boot message about the zfs module not loading. This might help in debugging this issue.

# dmesg |grep zfs
zfs: disagrees about version of symbol spl_kmem_cache_reap_now
zfs: Unknown symbol spl_kmem_cache_reap_now
zfs: disagrees about version of symbol __kstat_delete
zfs: Unknown symbol __kstat_delete
zfs: disagrees about version of symbol spl_kmem_cache_set_move
zfs: Unknown symbol spl_kmem_cache_set_move
zfs: disagrees about version of symbol spl_kmem_cache_alloc
zfs: Unknown symbol spl_kmem_cache_alloc
zfs: disagrees about version of symbol __kstat_create
zfs: Unknown symbol __kstat_create
zfs: disagrees about version of symbol spl_kmem_cache_create
zfs: Unknown symbol spl_kmem_cache_create
zfs: disagrees about version of symbol spl_kmem_cache_destroy
zfs: Unknown symbol spl_kmem_cache_destroy
zfs: disagrees about version of symbol spl_kmem_cache_free
zfs: Unknown symbol spl_kmem_cache_free
zfs: disagrees about version of symbol __kstat_install
zfs: Unknown symbol __kstat_install
zfs: disagrees about version of symbol spl_kmem_cache_reap_now
zfs: Unknown symbol spl_kmem_cache_reap_now
zfs: disagrees about version of symbol __kstat_delete
zfs: Unknown symbol __kstat_delete
zfs: disagrees about version of symbol spl_kmem_cache_set_move
zfs: Unknown symbol spl_kmem_cache_set_move
zfs: disagrees about version of symbol spl_kmem_cache_alloc
zfs: Unknown symbol spl_kmem_cache_alloc
zfs: disagrees about version of symbol __kstat_create
zfs: Unknown symbol __kstat_create
zfs: disagrees about version of symbol spl_kmem_cache_create
zfs: Unknown symbol spl_kmem_cache_create
zfs: disagrees about version of symbol spl_kmem_cache_destroy
zfs: Unknown symbol spl_kmem_cache_destroy
zfs: disagrees about version of symbol spl_kmem_cache_free
zfs: Unknown symbol spl_kmem_cache_free
zfs: disagrees about version of symbol __kstat_install
zfs: Unknown symbol __kstat_install

Downgrade

I then tried to downgrade to 0.6.2 but that got nowhere as well.

# yum downgrade zfs* spl*
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Setting up Downgrade Process
Loading mirror speeds from cached hostfile
 * base: mirror.fdcservers.net
 * epel: mirror.steadfast.net
 * extras: mirror.fdcservers.net
 * rpmforge: mirror.team-cymru.org
 * updates: mirror.fdcservers.net
1361 packages excluded due to repository priority protections
No Match for available package: zfs-debuginfo-0.6.1-1.el6.x86_64
No Match for available package: zfs-devel-0.6.1-1.el6.x86_64
No Match for available package: zfs-fuse-0.6.9-6.20100709git.el6.x86_64
No Match for available package: zfs-test-0.6.1-1.el6.x86_64
No Match for available package: spl-debuginfo-0.6.1-1.el6.x86_64
No Match for available package: splint-3.1.1-1.2.el6.rf.x86_64
Resolving Dependencies
--> Running transaction check
---> Package spl.x86_64 0:0.6.2-1.el6 will be a downgrade
---> Package spl.x86_64 0:0.6.3-1.el6 will be erased
---> Package spl-dkms.noarch 0:0.6.2-1.el6 will be a downgrade
---> Package spl-dkms.noarch 0:0.6.3-1.el6 will be erased
---> Package zfs.x86_64 0:0.6.2-1.el6 will be a downgrade
---> Package zfs.x86_64 0:0.6.3-1.el6 will be erased
---> Package zfs-dkms.noarch 0:0.6.2-1.el6 will be a downgrade
--> Processing Dependency: dkms = 2.2.0.3-14.zfs1.el6 for package: zfs-dkms-0.6.2-1.el6.noarch
---> Package zfs-dkms.noarch 0:0.6.3-1.el6 will be erased
---> Package zfs-dracut.x86_64 0:0.6.2-1.el6 will be a downgrade
---> Package zfs-dracut.x86_64 0:0.6.3-1.el6 will be erased
---> Package zfs-release.noarch 0:1-3.el6 will be a downgrade
---> Package zfs-release.noarch 0:1-4.el6 will be erased
--> Finished Dependency Resolution
Error: Package: zfs-dkms-0.6.2-1.el6.noarch (zfs)
           Requires: dkms = 2.2.0.3-14.zfs1.el6
           Installed: dkms-2.2.0.3-20.el6.noarch (@epel)
               dkms = 2.2.0.3-20.el6
           Available: dkms-2.1.1.2-1.el6.rf.noarch (rpmforge)
               dkms = 2.1.1.2-1.el6.rf
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

So can't downgrade since dkms-2.2.0.3-14.zfs1.el6.noarch.rpm has been pulled.

So we are left where we upgraded and it doesn't work and there's no way to revert back to a working version.

@shockre
Copy link

shockre commented Jun 15, 2014

This exact same thing happened to me today.
Fortunately I had backups freshly created, so nothing is most probably lost.
Hope you didn't loose any data.

Guys be careful when doing upgrade, make backup and make sure its valid!!

@srlefevre
Copy link

The data isn't lost; just inaccessible until this issue is resolved. Not a production box but just testing.

I'm sure I can find and download the zfs/spl 0.6.2 and appropriate dkms rpms, manually install them, and get things working again. The yum downgrade approach is much more preferable.

@deajan
Copy link
Author

deajan commented Jun 15, 2014

It seems that earlier ZoL versions kernel modules built for the current kernel stay and dkms don't wan't to update them.
The weak-updates symbolic links also point to earlier kernel modules. In my case this gives the following:

[root@backupmaster ~]# ls /lib/modules/2.6.32-431.17.1.el6.x86_64/weak-updates/ -la
total 8
drwxr-xr-x 2 root root 4096 15 juin  11:11 .
drwxr-xr-x 7 root root 4096 15 juin  11:43 ..
lrwxrwxrwx 1 root root   54 15 juin  11:08 splat.ko -> /lib/modules/2.6.32-431.11.2.el6.x86_64/extra/splat.ko
lrwxrwxrwx 1 root root   52 15 juin  11:08 spl.ko -> /lib/modules/2.6.32-431.11.2.el6.x86_64/extra/spl.ko

You can restore a fully working ZoL 0.6.3 (on RHEL 6 / CentOS 6) by running the following:


$ find /lib/modules/$(uname -r)/extra -name "splat.ko" -or -name "zcommon.ko" -or -name "zpios.ko" -or -name "spl.ko" -or -name "zavl.ko" -or -name "zfs.ko" -or -name "znvpair.ko" -or -name "zunicode.ko" | xargs rm -f
$ find /lib/modules/$(uname -r)/weak-updates -name "splat.ko" -or -name "zcommon.ko" -or -name "zpios.ko" -or -name "spl.ko" -or -name "zavl.ko" -or -name "zfs.ko" -or -name "znvpair.ko" -or -name "zunicode.ko" | xargs rm -f
$ yum reinstall zfs-release
$ yum reinstall $(rpm -qa | egrep "zfs|spl")

@shockre
Copy link

shockre commented Jun 17, 2014

Works fine, restored my zpool.
Thanks for posting!

@JohnRobson
Copy link

Thank you very much deajan!!!

You solved my upgrading problem.

@behlendorf behlendorf added this to the 0.6.3 milestone Jun 18, 2014
@olw2005
Copy link

olw2005 commented Jun 18, 2014

Similar experience here on three machines, slightly complicated by a kernel update immediately prior to the zfs update. It resulted in a weird mix of the old / existing "0.6.2+patches" .ko's and new "0.6.3" .ko's. [Spl modules were 0.6.3, zfs modules were 0.6.2+patches. Even though the rpm's were all 0.6.3.] All fine until next reboot, when the .ko version mismatch caused log spew about missing symbols, blah, blah and it of course failed to start zfs.

The installation procedure was "yum update -y" (with existing zfs modules and kernel version 2.6.32-431.5.1.el6.x86_64 installed) followed by reboot. Fair bit of dkms spammage resulted. It was rebuilding 0.6.2+patches module versions for the new kernel (2.6.32-431.17.1.el6.x86_64). Does dkms activity get logged somewhere?? After the reboot, ran the "yum localinstall zfs-release-1.4...." and "yum install zfs" per the website. More dkms spammage as it allegedly built new module versions. It left two of the older version "debuginfo" rpm's installed. Removed those, all showed current 0.6.3 rpm's. Everything fine until next reboot when it went up the spout due to the ver mismatch.

FIX: Manually removed the zfs & spl rpm's, rm -rf all zfs & spl-related modules / links from /lib/modules/{kernel-ver}/weak-updates plus any remnant module versions in /lib/modules/{kernel-ver}/extra/[spl | zfs] on two of the servers. Then performed a normal installation per the zfsonlinux.org website instructions. That worked as expected. End result was a system with consistent module versions working. =)

Still have a third server that has the inconsistent kernel modules on-disk. It's running a multi-day zfs send out to tape. I can grab any directory structure, package, log file info from that if it's useful.

Also planning to update our two primary servers this coming weekend. I can record any dkms errors, etc. on one of the two if that would prove useful. Just let me know.

@reissem
Copy link

reissem commented Jun 19, 2014

deejan, thank you for posting this fix! I need help translating it into ubuntu folder hierarchy/commands. Can you help me?

@deajan
Copy link
Author

deajan commented Jun 19, 2014

Well i'm not really into ubuntu, but here's a more or less accurate translation that should work as long as the built kernel modules are named the same way they are on RHEL.
The find command is pretty generic, maybe you should specify your current kernel path like /lib/modules/3.xx.yy-generic

$ find /lib/modules -name "splat.ko" -or -name "zcommon.ko" -or -name "zpios.ko" -or -name "spl.ko" -or -name "zavl.ko" -or -name "zfs.ko" -or -name "znvpair.ko" -or -name "zunicode.ko" | xargs rm -f
$ apt-get install --reinstall ubuntu-zfs
$ apt-get install --reinstall dkms spl-linux zfs-linux

@deajan
Copy link
Author

deajan commented Jun 20, 2014

Just had a kernel update today on one of my machines.
The problem stays the same, as long as elder built kernel modules exist, they are used for new kernels instead of a rebuild process (which isn't a problem when upgrading the kernel, but becomes a problem when upgrading ZoL).
In my case, the kernel modules 2.6.32-431.17.3.el6.x86_64 are used for my new kernel /2.6.32-431.20.3.el6.x86_64:

[root@backupmaster /]# ls -la /lib/modules/2.6.32-431.20.3.el6.x86_64/weak-updates/
total 8
drwxr-xr-x 2 root root 4096 20 juin  10:13 .
drwxr-xr-x 7 root root 4096 20 juin  10:13 ..
lrwxrwxrwx 1 root root   54 20 juin  10:13 splat.ko -> /lib/modules/2.6.32-431.17.1.el6.x86_64/extra/splat.ko
lrwxrwxrwx 1 root root   52 20 juin  10:13 spl.ko -> /lib/modules/2.6.32-431.17.1.el6.x86_64/extra/spl.ko
lrwxrwxrwx 1 root root   53 20 juin  10:13 zavl.ko -> /lib/modules/2.6.32-431.17.1.el6.x86_64/extra/zavl.ko
lrwxrwxrwx 1 root root   56 20 juin  10:13 zcommon.ko -> /lib/modules/2.6.32-431.17.1.el6.x86_64/extra/zcommon.ko
lrwxrwxrwx 1 root root   52 20 juin  10:13 zfs.ko -> /lib/modules/2.6.32-431.17.1.el6.x86_64/extra/zfs.ko
lrwxrwxrwx 1 root root   56 20 juin  10:13 znvpair.ko -> /lib/modules/2.6.32-431.17.1.el6.x86_64/extra/znvpair.ko
lrwxrwxrwx 1 root root   54 20 juin  10:13 zpios.ko -> /lib/modules/2.6.32-431.17.1.el6.x86_64/extra/zpios.ko
lrwxrwxrwx 1 root root   57 20 juin  10:13 zunicode.ko -> /lib/modules/2.6.32-431.17.1.el6.x86_64/extra/zunicode.ko

@ahmgithubahm
Copy link

Hi all.

Would anyone have a full set of steps to upgrade ZoL on a CentOS 6 box, bearing in mind the problems deajan has found and worked around? Now we know about this, how would one start the upgrade, without having to install and then re-install?

Also, can anyone edit the title of this issue to fix the typo 'Uprading', so others may find this more easily?

cheers Andy

@srlefevre
Copy link

Upgrading is fairly easy. I did the following on my daily use machine and had no issues.

$ sudo find /lib/modules/$(uname -r)/extra -name "splat.ko" -or -name "zcommon.ko" -or -name "zpios.ko" -or -name "spl.ko" -or -name "zavl.ko" -or -name "zfs.ko" -or -name "znvpair.ko" -or -name "zunicode.ko" | xargs rm -f
$ sudo find /lib/modules/$(uname -r)/weak-updates -name "splat.ko" -or -name "zcommon.ko" -or -name "zpios.ko" -or -name "spl.ko" -or -name "zavl.ko" -or -name "zfs.ko" -or -name "znvpair.ko" -or -name "zunicode.ko" | xargs rm -f
$ sudo yum  update

The first two lines/commands come from deajan's post and just delete any existing zfs related kernel modules for the currently running kernel. The last line is the standard yum update.

Cheers,
Scott

@ahmgithubahm
Copy link

Hi Scott.

Many thanks, was just about to post that I tried that same order of things myself, and it worked fine for me (too).

It does take an age though, on a VirtualBox VM anyway. Nearly an hour for the 'yum update', and that was after removing two older kernels first, which took a long time in itself to finish (dracut running for ages, why??).

Andy

@srlefevre
Copy link

Andy,
In my experience, dkms took much longer then dracut.

One trick I found on accident was installing pigz (parallel implementation of gzip) which sped up the compression portion of dracut quite a bit since it will utilize all your cores instead of just one. In my experience, no configuration required as dracut just found pigz and started using it instead of gzip.

I just re-ran dracut on my daily use machine and it took less then a minute.

# time dracut --force /boot/initramfs-$(uname -r).img  $(uname -r) 

real    0m52.860s
user    1m45.182s
sys 0m12.662s

I hope that helps some.
Cheers,
Scott

@deajan deajan changed the title Uprading ZoL from 0.6.2 to 0.6.3 fails Upgrading / Updating ZoL from 0.6.2 to 0.6.3 fails Jun 21, 2014
@deajan
Copy link
Author

deajan commented Jun 21, 2014

@ahmgithubahm As you pointed out ZoL modules get built for any installed kernel.
You should remove all elder kernels by trying the following:

$ yum remove $(rpm -qa | egrep "kernel-2|kernel-devel-2|kernel-headers-2" | grep -v "$(uname -r)")

Also, you might set installonly_limit=2 in /etc/yum.conf to make yum only keep the latest two kernels instead of keeping 5, for future rebuilds.

Btw, thanks for pointing out the "Uprading" typo.

@srlefevre Your idea with pigz is great. I just tested before and after installing pigz and got a speed increase of 39% for dracut.

@ikiris
Copy link

ikiris commented Jun 22, 2014

Removing older kernels is not a solution, just a workaround. DKMS is supposed to handle this properly. This is either a problem with DKMS, or how zfs is set to use it. It needs to be figured out which, and either fixed here, or submitted as an issue to dkms if it's found to be dkms at fault.

I ran into this as well on every box I manage. It's easy to work around with an after upgrade script that manally runs the dkms clean and fix sequence, but this should "just work".

@ahmgithubahm
Copy link

Hi skylis.

Deajan's suggestion for removing older kernels wasn't really to address the main problem handled under this github issue, but rather, just to speed up the ZFS upgrade process, since having fewer older kernels installed means less compilation has to be done. Right, deajan, or have I got it all wrong? :-)

I entirely agree, the 'yum upgrade zfs' should just work.

Andy

@deajan
Copy link
Author

deajan commented Jun 22, 2014

@ahmgithubahm Andy, you just got it :)

@eborisch
Copy link

You can see the issue in the first post; 0.6.3 is built, but then it is confused when running the 'module version sanity check'and subsequenty not actually updated in /lib/modules/*/extras.

I have had success using dkms directly to remove zfs and then spl modules, then yum upgrading, and then using dkms directly to add spl and then zfs back in. Uninstalling the zfs* and spl* packages first, and then installing 0.6.3 would likely have the same effect.

@deajan
Copy link
Author

deajan commented Jun 23, 2014

@eborisch Uninstalling and reinstalling via yum / rpm won't have the same effect as the kernel modules stay.
You have to remove them manually as in #2400 (comment)

@eborisch
Copy link

@deajan thanks for pointing that out. Should have stopped while I was ahead. ;)

@behlendorf
Copy link
Contributor

I was able to reproduce this as well. Time permitting I'll do a little investigating. I completely agree that yum upgrade should just work.

@DjDCH
Copy link

DjDCH commented Jun 27, 2014

If you ever end up on this page and your running Debian, you only have to do the following to fix the issue:

# apt-get update
# apt-get dist-upgrade
# reboot

The issue occurred because a simple update doesn't not replace old library files with the newer ones. This is why a dist-upgrade is needed. From the apt-get manpage:

dist-upgrade in addition to performing the function of upgrade, also intelligently handles
changing dependencies with new versions of packages; apt-get has a "smart" conflict
resolution system, and it will attempt to upgrade the most important packages at the
expense of less important ones if necessary. The dist-upgrade command may therefore
remove some packages.

Source: http://bernaerts.dyndns.org/linux/75-debian/312-debian-wheezy-zfsonlinux-zpool-lost

@jfun
Copy link

jfun commented Jul 2, 2014

I'm running Ubuntu 14.04 LTS and this fixed the issue as well:

apt-get update && apt-get dist-upgrade
reboot

@ajfriesen
Copy link

I'm running Ubuntu 14.04 LTS and this fixed the issue as well:

apt-get update && apt-get dist-upgrade
reboot

Thank you, i that solved my problem as well!

@joshenders
Copy link

apt-get update
apt-get dist-upgrade
reboot

Solved my issue as well. Thanks for this.

@behlendorf behlendorf modified the milestones: 0.6.3, 0.6.4 Jul 30, 2014
@jefferai
Copy link

That did not fix my issue. In fact, using "apt-get update; apt-get dist-upgrade" followed by a reboot is how I ended up in this mess in the first place. I ended up with two kernels on my system (new one from the upgrade, and the previous one) and ZFS using the old modules with the new kernel.

@gcushen
Copy link

gcushen commented Nov 27, 2014

I have experienced the same issue as Jeff on Ubuntu Server 14.04. The reported ZFS Ubuntu "fix" above is actually what caused the failure of ZFS on my system.

@jefferai
Copy link

jefferai commented Dec 5, 2014

What worked for me (@neutreno) is purging all of the ZFS packages and all old kernels (so only one version of kernel package was on the system), then reinstalling ZoL. Some of those steps may be more extreme than necessary, but it did get my system back to a working state.

I believe I may have also had to import my pool, but honestly don't remember if that was necessary or just something I tried along the way.

@gcushen
Copy link

gcushen commented Dec 6, 2014

Thanks @jefferai ! I managed to fix it shortly after my last post. For others in the same boat, you may find my notes below useful in getting ZFS back up and running on Ubuntu 14.04 after upgrading to ZFS 0.6.3:

# find /lib/modules/$(uname -r)/updates -name "splat.ko" -or -name "zcommon.ko" -or -name "zpios.ko" -or -name "spl.ko" -or -name "zavl.ko" -or -name "zfs.ko" -or -name "znvpair.ko" -or -name "zunicode.ko" | xargs rm -f
# apt-get install --reinstall ubuntu-zfs
# apt-get install --reinstall $(dpkg-query --show --showformat='${binary:Package}\n' | egrep 'spl|zfs')
# reboot
# dkms remove zfs/0.6.3 --all
# dkms remove spl/0.6.3 --all 
# dkms install spl/0.6.3 --force
# dkms install zfs/0.6.3 --force
# zpool import <mypool>
# zpool status

@ajfriesen
Copy link

@neutreno I tried your steps and it worked, but after reboot the pool could not be mounted. So same problem again.
How should I handle my ubuntu 14.04 with "Linux N54L 3.13.0-43-generic #72-Ubuntu SMP Mon Dec 8 19:35:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux" to have a working system again?

@gcushen
Copy link

gcushen commented Dec 16, 2014

Hi @frieslog, glad my notes could be of use. Try lsblk to check your drives are recognised, then you could now try just the zpool import... line above and see if that works. If not, then perhaps your issue now is related to the multiple kernels that Ubuntu keeps. Ubuntu will keep a few old kernels, so possibly the kernel you fixed ZFS on is different to the one you just booted. Also, running apt-get dist-upgrade and then autoremove to get rid of some old kernels may possibly help prior to running the above commands to fix ZFS. Perhaps someone else can offer better advice! Good luck :)

@fmikker
Copy link

fmikker commented Apr 15, 2015

I experienced the same issue on upgrade from 0.6.3 -> 0.6.4 on CentOS 7 while upgrading to kernel 3.10.0-229.1.2.el7.x86_64.
Took a while to find this issue for the workaround. (#2400 (comment))
Adding my self to the quire that this should be handled upon upgrading via the package manager..

@herf
Copy link

herf commented Dec 12, 2015

Same -> 0.6.5 on CentOS 6 while upgrading kernel at the same time as ZFS.
Needs a 2-hop upgrade process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Building Indicates an issue related to building binaries Type: Documentation Indicates a requested change to the documentation
Projects
None yet
Development

No branches or pull requests