Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane

From: Michal Kozanecki via zfs-discuss <zfs-discuss-bbPZIewyPPxDbMRORQRxHEB+6BGkLq7r <at> public.gmane.org>
Subject: Re: CentOS: Failed to load ZFS module stack
Newsgroups: gmane.linux.file-systems.zfs.user
Date: Sunday 26th April 2015 21:40:50 UTC (over 3 years ago)
Might have something to do with old kernel-devel packages and whatnot, I
take it you recently updated to CentOS 7.1 recently? Try this;

#### Now remove all references to 0.6.3 - since your install looks broken
already, this may not work/error out.
dkms remove --all zfs/0.6.3
dkms remove --all spl/0.6.3

#### Now remove all traces of ZoL, second via any remaining zfs kernel
modules
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

#### Now get a list of all installed kernel and related RPMs
rpm -qa | grep kernel 

#### Now erase all kernel headers and etc that are older than your current
kernel. Below are examples assuming you updated from CentOS 7.0 to 7.1 **DO
NOT COPY PASTE THIS LINE, PAY CLOSE ATTENTION TO RESULTS OF LAST COMMAND
AND COMMON SENSE**
yum erase kernel-3.10.0-123.13.2.el7.x86_64
kernel-devel-3.10.0-123.13.2.el7.x86_64

#### Now remove all current kernel headers and tools - **this is probably
not needed and overkill**
yum erase kernel-headers kernel-devel kernel-tools

#### Now remove all traces of ZoL, first via yum
yum erase zfs zfs-dkms libzfs2 spl spl-dkms dkmsc

#### After all this try installing ZFS again.
yum install zfs

YMMV and all that jazz.

Cheers,

Michal Kozanecki | Linux Administrator | E:
[email protected]


-----Original Message-----
From: zfs-discuss
[mailto:[email protected]e.org]
On Behalf Of Andrew Munn via zfs-discuss
Sent: April-26-15 4:01 PM
To: Hajo Möller
Cc: Andrew Munn;
[email protected]
Subject: Re: [zfs-discuss] CentOS: Failed to load ZFS module stack

On Sun, 26 Apr 2015, Hajo M?ller wrote:
> 
> I'm not familiar with CentOS' packages, but those lines should refer 
> to "0.6.4.1", not just "0.6.4".
> 
> You can probaby fix this by forcefully removing and reinstalling the 
> -dkms package(s), either by running "rpm -e --nodeps spl-dkms", then 
> "yum install spl-dkms" (first spl-dkms, then zfs-dkms if still 
> broken), or by manually removing the built modules and reinstalling 
> zfs-release, as done in
> https://github.com/zfsonlinux/zfs/issues/2400#issuecomment-46118193

I am seeing some errors and many more warnings such as:

[[email protected] andrew]# yum install zfs-dkms Loaded plugins: fastestmirror,
langpacks Loading mirror speeds from cached hostfile
 * base: mirror.symnds.com
 * epel: mirror.nexcess.net
 * extras: mirror.nexcess.net
 * updates: mirrors.gigenet.com
Resolving Dependencies
--> Running transaction check
---> Package zfs-dkms.noarch 0:0.6.4-1.el7.centos will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================
 Package                              Arch                               
Version                                         Repository                 
     
Size
===============================================================================================================================================================
Installing:
 zfs-dkms                             noarch                             
0.6.4-1.el7.centos                              zfs                        
    
1.8 M

Transaction Summary
===============================================================================================================================================================
Install  1 Package

Total download size: 1.8 M
Installed size: 11 M
Is this ok [y/d/N]: y
Downloading packages:
zfs-dkms-0.6.4-1.el7.centos.noarch.rpm                                     
                                                            
| 1.8 MB  00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
zfs-0.6.4-1.el7.centos.x86_64 has missing requires of zfs-kmod = ('0',
'0.6.4', None)
  Installing : zfs-dkms-0.6.4-1.el7.centos.noarch                          
                                                                           
   
1/1
Removing old zfs-0.6.4 DKMS files...

-------- Uninstall Beginning --------
Module:  zfs
Version: 0.6.4
Kernel:  3.10.0-229.1.2.el7.x86_64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.
Removing any linked weak-modules
depmod: ERROR: fstatat(4, spl.ko): No such file or directory
depmod: ERROR: fstatat(4, zunicode.ko): No such file or directory
depmod: WARNING: 
/lib/modules/3.10.0-123.13.1.el7.x86_64/weak-updates/zpios.ko needs unknown
symbol spl_kmem_zalloc
depmod: WARNING: 
/lib/modules/3.10.0-123.13.1.el7.x86_64/weak-updates/zpios.ko needs unknown
symbol dmu_tx_hold_write
depmod: WARNING: 
/lib/modules/3.10.0-123.13.1.el7.x86_64/weak-updates/zpios.ko needs unknown
symbol spl_vmem_free




_______________________________________________
zfs-discuss mailing list
[email protected]
http://list.zfsonlinux.org/mailman/listinfo/zfs-discuss
_______________________________________________
zfs-discuss mailing list
[email protected]
http://list.zfsonlinux.org/mailman/listinfo/zfs-discuss
 
CD: 33ms