zfs upgrade issue zfs-0.6.3-1.el6.x86_64

Issues related to applications and software problems
sbonds
Posts: 5
Joined: 2014/09/19 08:17:48

Re: zfs upgrade issue zfs-0.6.3-1.el6.x86_64

Post by sbonds » 2014/09/19 08:20:09

For the benefit of future searchers with this issue, I had to disable non-EPEL repos to get this upgrade to work. E.g. "yum --disablerepo=rpmforge install zfs".

jogiba
Posts: 1
Joined: 2014/11/11 21:20:31

Re: zfs upgrade issue zfs-0.6.3-1.el6.x86_64

Post by jogiba » 2014/11/11 22:49:46

After yum update to kernel 2.6.32-504.el6.x86_64
the zfs.ko 0.6.3.x86_64 module can no longer be loaded.

#insmod /lib/modules/2.6.32-504.el6.x86_64/weak-updates/zfs.ko
=> insmod: error inserting '/lib/modules/2.6.32-504.el6.x86_64/weak-updates/zfs.ko': -1 Unknown symbol in module

so i tried, with kernel-headers and kernel-devel in version 2.6.32.504.el6 rebuilding modules:
#dkms install spl/0.6.3 -k 2.6.32-504.el6.x86_64
#dkms install zfs/0.6.3 -k 2.6.32-504.el6.x86_64


but zfs showed so many errors like :
....
Adding any weak-modules
ERROR: modinfo: could not open /lib/modules/2.6.32-431.17.1.el6.x86_64/weak-updates/: Is a directory
ERROR: modinfo: could not open /lib/modules/2.6.32-504.el6.x86_64/zavl.ko: No such file or directory
FATAL: /lib/modules/2.6.32-504.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.17.1.el6.x86_64
ERROR: modinfo: could not open /lib/modules/2.6.32-431.17.1.el6.x86_64/weak-updates/: Is a directory
ERROR: modinfo: could not open /lib/modules/2.6.32-504.el6.x86_64/znvpair.ko: No such file or directory
FATAL: /lib/modules/2.6.32-504.el6.x86_64/znvpair.ko: No such file or directory

...
i recieve these errors for some more modules: splat.ko, spl.ko, zavl.ko, zcommon.ko, zunicode.ko, zfs.ko, zpios.ko, znvpair

looking in those directorys :
# ll /lib/modules/2.6.32-431.17.1.el6.x86_64/weak-updates/
insgesamt 0
lrwxrwxrwx 1 root root 54 25. Okt 15:29 splat.ko -> /lib/modules/2.6.32-431.29.2.el6.x86_64/extra/splat.ko
lrwxrwxrwx 1 root root 52 25. Okt 15:35 spl.ko -> /lib/modules/2.6.32-431.23.3.el6.x86_64/extra/spl.ko
lrwxrwxrwx 1 root root 53 25. Okt 15:53 zavl.ko -> /lib/modules/2.6.32-431.11.2.el6.x86_64/extra/zavl.ko
lrwxrwxrwx 1 root root 56 25. Okt 15:53 zcommon.ko -> /lib/modules/2.6.32-431.11.2.el6.x86_64/extra/zcommon.ko
lrwxrwxrwx 1 root root 52 25. Okt 15:53 zfs.ko -> /lib/modules/2.6.32-431.11.2.el6.x86_64/extra/zfs.ko
lrwxrwxrwx 1 root root 56 25. Okt 15:53 znvpair.ko -> /lib/modules/2.6.32-431.11.2.el6.x86_64/extra/znvpair.ko
lrwxrwxrwx 1 root root 54 25. Okt 15:53 zpios.ko -> /lib/modules/2.6.32-431.11.2.el6.x86_64/extra/zpios.ko
lrwxrwxrwx 1 root root 57 25. Okt 15:53 zunicode.ko -> /lib/modules/2.6.32-431.11.2.el6.x86_64/extra/zunicode.ko


and

# ll /lib/modules/2.6.32-504.el6.x86_64/weak-updates
lrwxrwxrwx 1 root root 54 9. Nov 16:02 splat.ko -> /lib/modules/2.6.32-431.11.2.el6.x86_64/extra/splat.ko
lrwxrwxrwx 1 root root 52 9. Nov 16:02 spl.ko -> /lib/modules/2.6.32-431.23.3.el6.x86_64/extra/spl.ko
lrwxrwxrwx 1 root root 53 9. Nov 16:02 zavl.ko -> /lib/modules/2.6.32-431.11.2.el6.x86_64/extra/zavl.ko
lrwxrwxrwx 1 root root 56 9. Nov 16:02 zcommon.ko -> /lib/modules/2.6.32-431.11.2.el6.x86_64/extra/zcommon.ko
lrwxrwxrwx 1 root root 52 9. Nov 16:02 zfs.ko -> /lib/modules/2.6.32-431.11.2.el6.x86_64/extra/zfs.ko
lrwxrwxrwx 1 root root 56 9. Nov 16:02 znvpair.ko -> /lib/modules/2.6.32-431.11.2.el6.x86_64/extra/znvpair.ko
lrwxrwxrwx 1 root root 54 9. Nov 16:02 zpios.ko -> /lib/modules/2.6.32-431.11.2.el6.x86_64/extra/zpios.ko
lrwxrwxrwx 1 root root 57 9. Nov 16:02 zunicode.ko -> /lib/modules/2.6.32-431.11.2.el6.x86_64/extra/zunicode.ko


wrong versions...so i think i have to install kernel-sources and build my own kernel modules ? right ?
or is there a faster way making zfs work again? So i tried rebooting the older kernel.... but zfs is still broken.

Thanx for any help/hint
joe

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: zfs upgrade issue zfs-0.6.3-1.el6.x86_64

Post by gerald_clark » 2014/11/11 23:35:20

CentOS neither ships nor supports zfs.

sbonds
Posts: 5
Joined: 2014/09/19 08:17:48

Re: zfs upgrade issue zfs-0.6.3-1.el6.x86_64

Post by sbonds » 2015/02/14 02:14:05

This github discussion has some good info: https://github.com/zfsonlinux/zfs/issues/2400

Merely using "yum remove" does not delete the DKMS auto-built kernel modules and it may be using cruft left over from a prior version of ZFS. Something like this is needed to clear it out:

Code: Select all

# 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

Post Reply

Return to “CentOS 6 - Software Support”