What should have been a routine upgrade to ZFS 0.6.4.1-1.el6.x86_64 somehow failed, and now I've lost access to a 2T raidz2 array. I've tried removing all zfs and related packages (spl*), then starting fresh. For reasons that have have nothing to do with this problem (I don't think), I'm still booted to kernel 2.6.32-431.29.2.el6.x86_64, and there are no other kernels installed.
The %post script in the spl-dkms package appears to have a serious problem. Complete captures follow.
Can anyone explain what's happening (or not happening) here?
--Doc Savage Fairview Heights, IL
============================================================= Here's the yumex installation log:
# yumex --root -n /usr/lib/python2.6/site-packages/guihelpers/__init__.py:256: GtkWarning: gtk_scrolled_window_add(): cannot add non scrollable widget use gtk_scrolled_window_add_with_viewport() instead self.add_from_file(filename) 22:00:19 : DEBUG - network interface eth0 (forcedeth) is connected 22:04:53 : INFO - Starting yum child process 22:04:53 : INFO - Using the following repositories : epel,rpmfusion-free-updates,rpmfusion-nonfree-updates,_local,adobe-linux-x86_64,base,updates,zfs,extras
22:04:53 : INFO - YUM: Yum Version : 3.2.29 22:04:53 : INFO - YUM: Loaded plugins: fastestmirror, local, presto, priorities, versionlock 22:04:54 : INFO - Getting available updates 22:04:54 : INFO - YUM: Loading mirror speeds from cached hostfile 22:04:54 : INFO - YUM: * base: mirror.metrocast.net 22:04:54 : INFO - YUM: * epel: mirror.steadfast.net 22:04:54 : INFO - YUM: * extras: mirror.metrocast.net 22:04:54 : INFO - YUM: * rpmfusion-free-updates: mirror.redsox.cc 22:04:54 : INFO - YUM: * rpmfusion-nonfree-updates: mirror.redsox.cc 22:04:54 : INFO - YUM: * updates: mirror.metrocast.net 22:04:55 : INFO - 5 packages returned 22:04:55 : INFO - Getting available obsoletes 22:04:55 : INFO - 0 packages returned 22:04:55 : INFO - Adding Packages to view 22:04:55 : INFO - Added 5 Packages to view 22:05:30 : INFO - Getting Category Packages 22:05:31 : INFO - Adding Packages to view 22:05:31 : INFO - Added 134 Packages to view 22:06:53 : INFO - YUM: Package matching dkms-2.2.0.3-14.zfs1.el6.noarch already installed. Checking for update. 22:06:53 : INFO - YUM: Package matching libzpool2-0.6.4-1.el6.x86_64 already installed. Checking for update. 22:06:54 : INFO - YUM: --> Running transaction check 22:06:54 : INFO - YUM: ---> Package libzfs2.x86_64 0:0.6.4.1-1.el6 will be installed 22:06:54 : INFO - YUM: ---> Package libzfs2-devel.x86_64 0:0.6.4.1-1.el6 will be installed 22:06:54 : INFO - YUM: ---> Package spl.x86_64 0:0.6.4.1-1.el6 will be installed 22:06:54 : INFO - YUM: ---> Package spl-dkms.noarch 0:0.6.4.1-1.el6 will be installed 22:06:54 : INFO - YUM: ---> Package zfs.x86_64 0:0.6.4.1-1.el6 will be installed 22:06:54 : INFO - YUM: ---> Package zfs-dkms.noarch 0:0.6.4.1-1.el6 will be installed 22:06:54 : INFO - YUM: ---> Package zfs-dracut.x86_64 0:0.6.4.1-1.el6 will be installed 22:06:54 : INFO - YUM: ---> Package zfs-test.x86_64 0:0.6.4.1-1.el6 will be installed 22:06:55 : INFO - YUM: --> Finished Dependency Resolution 22:07:11 : INFO - YUM: Setting up and reading Presto delta metadata 22:07:11 : INFO - YUM: Processing delta metadata 22:07:11 : INFO - YUM: Package(s) data still to download: 3.1 M 22:07:12 : INFO - Downloaded : (1/8): libzfs2-0.6.4.1-1.el6.x86_64.rpm ( 111 k ) 22:07:12 : INFO - Downloaded : (2/8): libzfs2-devel-0.6.4.1-1.el6.x86_64.rpm ( 284 k ) 22:07:12 : INFO - Downloaded : (3/8): spl-0.6.4.1-1.el6.x86_64.rpm ( 24 k ) 22:07:13 : INFO - Downloaded : (4/8): spl-dkms-0.6.4.1-1.el6.noarch.rpm ( 446 k ) 22:07:14 : INFO - Downloaded : (5/8): zfs-0.6.4.1-1.el6.x86_64.rpm ( 303 k ) 22:07:15 : INFO - Downloaded : (6/8): zfs-dkms-0.6.4.1-1.el6.noarch.rpm ( 1.9 M ) 22:07:15 : INFO - Downloaded : (7/8): zfs-dracut-0.6.4.1-1.el6.x86_64.rpm ( 9.7 k ) 22:07:15 : INFO - Downloaded : (8/8): zfs-test-0.6.4.1-1.el6.x86_64.rpm ( 41 k ) 22:07:16 : INFO - YUM: Running rpm_check_debug 22:07:16 : INFO - YUM: --> Populating transaction set with selected packages. Please wait. 22:07:16 : INFO - YUM: ---> Package libzfs2.x86_64 0:0.6.4.1-1.el6 will be an update 22:07:16 : INFO - YUM: ---> Package zfs.x86_64 0:0.6.4.1-1.el6 will be an update 22:07:16 : INFO - YUM: ---> Package zfs-dracut.x86_64 0:0.6.4.1-1.el6 will be an update 22:07:16 : INFO - YUM: ---> Package spl.x86_64 0:0.6.4.1-1.el6 will be an update 22:07:16 : INFO - YUM: ---> Package zfs-dkms.noarch 0:0.6.4.1-1.el6 will be an update 22:07:16 : INFO - YUM: ---> Package libzfs2-devel.x86_64 0:0.6.4.1-1.el6 will be an update 22:07:16 : INFO - YUM: ---> Package zfs-test.x86_64 0:0.6.4.1-1.el6 will be an update 22:07:16 : INFO - YUM: ---> Package spl-dkms.noarch 0:0.6.4.1-1.el6 will be an update 22:07:18 : INFO - spl-dkms-0.6.4.1-1.el6.noarch is installed 22:07:26 : INFO - YUM: Non-fatal POSTIN scriptlet failure in rpm package spl-dkms-0.6.4.1-1.el6.noarch 22:07:26 : INFO - RPM Scriptlet: Removing old spl-0.6.4.1 DKMS files... 22:07:26 : INFO - YUM: ------------------------------ 22:07:26 : INFO - YUM: Deleting module version: 0.6.4.1 22:07:26 : INFO - YUM: completely from the DKMS tree. 22:07:26 : INFO - YUM: ------------------------------ 22:07:26 : INFO - YUM: Done. 22:07:26 : INFO - YUM: Loading new spl-0.6.4.1 DKMS files... 22:07:26 : INFO - YUM: Building for 2.6.32-431.29.2.el6.x86_64 22:07:26 : INFO - YUM: Building initial module for 2.6.32-431.29.2.el6.x86_64 22:07:26 : INFO - YUM: configure: error: *** Unable to build an empty module. 22:07:26 : INFO - YUM: Error! Bad return status for module build on kernel: 2.6.32-431.29.2.el6.x86_64 (x86_64) 22:07:26 : INFO - YUM: Consult /var/lib/dkms/spl/0.6.4.1/build/make.log for more information. 22:07:26 : INFO - YUM: warning: %post(spl-dkms-0.6.4.1-1.el6.noarch) scriptlet failed, exit status 10 22:07:28 : INFO - zfs-dkms-0.6.4.1-1.el6.noarch is installed 22:12:37 : INFO - YUM: Non-fatal POSTIN scriptlet failure in rpm package zfs-dkms-0.6.4.1-1.el6.noarch 22:12:37 : INFO - RPM Scriptlet: Loading new zfs-0.6.4.1 DKMS files... 22:12:37 : INFO - YUM: Building for 2.6.32-431.29.2.el6.x86_64 22:12:37 : INFO - YUM: Building initial module for 2.6.32-431.29.2.el6.x86_64 22:12:37 : INFO - YUM: configure: error: 22:12:37 : INFO - YUM: *** Please make sure the kmod spl devel <kernel> package for your 22:12:37 : INFO - YUM: *** distribution is installed then try again. If that fails you 22:12:37 : INFO - YUM: *** can specify the location of the spl objects with the 22:12:37 : INFO - YUM: *** '--with-spl-obj=PATH' option. 22:12:37 : INFO - YUM: Error! Bad return status for module build on kernel: 2.6.32-431.29.2.el6.x86_64 (x86_64) 22:12:37 : INFO - YUM: Consult /var/lib/dkms/zfs/0.6.4.1/build/make.log for more information. 22:12:37 : INFO - YUM: warning: %post(zfs-dkms-0.6.4.1-1.el6.noarch) scriptlet failed, exit status 10 22:12:37 : INFO - libzfs2-0.6.4.1-1.el6.x86_64 is installed 22:12:37 : INFO - spl-0.6.4.1-1.el6.x86_64 is installed 22:12:37 : INFO - zfs-0.6.4.1-1.el6.x86_64 is installed 22:12:38 : INFO - zfs-dracut-0.6.4.1-1.el6.x86_64 is installed 22:12:38 : INFO - zfs-test-0.6.4.1-1.el6.x86_64 is installed 22:12:38 : INFO - libzfs2-devel-0.6.4.1-1.el6.x86_64 is installed 22:12:39 : INFO - Transaction completed successfully
============================================================== The make.log file contains:
DKMS make.log for zfs-0.6.4.1 for kernel 2.6.32-431.29.2.el6.x86_64 (x86_64) Sat Jun 20 22:12:37 CDT 2015 make: *** No targets specified and no makefile found. Stop.
============================================================== Reinstalling the spl-dkms package produces a similar error message:
# yum -y reinstall spl-dkms Loaded plugins: aliases, changelog, downloadonly, fastestmirror, local, presto, : priorities, refresh-packagekit, security, tmprepo, verify, versionlock Setting up Reinstall Process Loading mirror speeds from cached hostfile * base: mirror.us.oneandone.net * epel: mirror.steadfast.net * extras: mirror.us.oneandone.net * rpmfusion-free-updates: mirror.redsox.cc * rpmfusion-nonfree-updates: mirror.redsox.cc * updates: mirror.us.oneandone.net Resolving Dependencies --> Running transaction check ---> Package spl-dkms.noarch 0:0.6.4.1-1.el6 will be reinstalled --> Finished Dependency Resolution
Dependencies Resolved
======================================================================================== Package Arch Version Repository Size ======================================================================================== Reinstalling: spl-dkms noarch 0.6.4.1-1.el6 _local 446 k
Transaction Summary ======================================================================================== Reinstall 1 Package(s)
Total download size: 446 k Installed size: 2.4 M Downloading Packages: Setting up and reading Presto delta metadata Processing delta metadata Package(s) data still to download: 446 k Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : spl-dkms-0.6.4.1-1.el6.noarch 1/1 Non-fatal POSTIN scriptlet failure in rpm package spl-dkms-0.6.4.1-1.el6.noarch Removing old spl-0.6.4.1 DKMS files...
------------------------------ Deleting module version: 0.6.4.1 completely from the DKMS tree. ------------------------------ Done. Loading new spl-0.6.4.1 DKMS files... Building for 2.6.32-431.29.2.el6.x86_64 Building initial module for 2.6.32-431.29.2.el6.x86_64 configure: error: *** Unable to build an empty module. Error! Bad return status for module build on kernel: 2.6.32-431.29.2.el6.x86_64 (x86_64) Consult /var/lib/dkms/spl/0.6.4.1/build/make.log for more information. warning: %post(spl-dkms-0.6.4.1-1.el6.noarch) scriptlet failed, exit status 10 Verifying : spl-dkms-0.6.4.1-1.el6.noarch 1/1
Installed: spl-dkms.noarch 0:0.6.4.1-1.el6
Complete!
On 21 Jun 2015 04:46, "Robert G. (Doc) Savage" dsavage@peaknet.net wrote:
What should have been a routine upgrade to ZFS 0.6.4.1-1.el6.x86_64 somehow failed, and now I've lost access to a 2T raidz2 array. I've tried removing all zfs and related packages (spl*), then starting fresh. For reasons that have have nothing to do with this problem (I don't think), I'm still booted to kernel 2.6.32-431.29.2.el6.x86_64, and there are no other kernels installed.
The %post script in the spl-dkms package appears to have a serious problem. Complete captures follow.
Can anyone explain what's happening (or not happening) here?
--Doc Savage Fairview Heights, IL
============================================================= Here's the yumex installation log:
# yumex --root -n /usr/lib/python2.6/site-packages/guihelpers/__init__.py:256: GtkWarning:
gtk_scrolled_window_add(): cannot add non scrollable widget use gtk_scrolled_window_add_with_viewport() instead
self.add_from_file(filename) 22:00:19 : DEBUG - network interface eth0 (forcedeth) is connected 22:04:53 : INFO - Starting yum child process 22:04:53 : INFO - Using the following repositories :
epel,rpmfusion-free-updates,rpmfusion-nonfree-updates,_local,adobe-linux-x86_64,base,updates,zfs,extras
22:04:53 : INFO - YUM: Yum Version : 3.2.29 22:04:53 : INFO - YUM: Loaded plugins: fastestmirror, local, presto,
priorities, versionlock
22:04:54 : INFO - Getting available updates 22:04:54 : INFO - YUM: Loading mirror speeds from cached hostfile 22:04:54 : INFO - YUM: * base: mirror.metrocast.net 22:04:54 : INFO - YUM: * epel: mirror.steadfast.net 22:04:54 : INFO - YUM: * extras: mirror.metrocast.net 22:04:54 : INFO - YUM: * rpmfusion-free-updates: mirror.redsox.cc 22:04:54 : INFO - YUM: * rpmfusion-nonfree-updates: mirror.redsox.cc 22:04:54 : INFO - YUM: * updates: mirror.metrocast.net 22:04:55 : INFO - 5 packages returned 22:04:55 : INFO - Getting available obsoletes 22:04:55 : INFO - 0 packages returned 22:04:55 : INFO - Adding Packages to view 22:04:55 : INFO - Added 5 Packages to view 22:05:30 : INFO - Getting Category Packages 22:05:31 : INFO - Adding Packages to view 22:05:31 : INFO - Added 134 Packages to view 22:06:53 : INFO - YUM: Package matching dkms-2.2.0.3-14.zfs1.el6.noarch
already installed. Checking for update.
22:06:53 : INFO - YUM: Package matching libzpool2-0.6.4-1.el6.x86_64
already installed. Checking for update.
22:06:54 : INFO - YUM: --> Running transaction check 22:06:54 : INFO - YUM: ---> Package libzfs2.x86_64 0:0.6.4.1-1.el6 will
be installed
22:06:54 : INFO - YUM: ---> Package libzfs2-devel.x86_64 0:0.6.4.1-1.el6
will be installed
22:06:54 : INFO - YUM: ---> Package spl.x86_64 0:0.6.4.1-1.el6 will be
installed
22:06:54 : INFO - YUM: ---> Package spl-dkms.noarch 0:0.6.4.1-1.el6 will
be installed
22:06:54 : INFO - YUM: ---> Package zfs.x86_64 0:0.6.4.1-1.el6 will be
installed
22:06:54 : INFO - YUM: ---> Package zfs-dkms.noarch 0:0.6.4.1-1.el6 will
be installed
22:06:54 : INFO - YUM: ---> Package zfs-dracut.x86_64 0:0.6.4.1-1.el6
will be installed
22:06:54 : INFO - YUM: ---> Package zfs-test.x86_64 0:0.6.4.1-1.el6 will
be installed
22:06:55 : INFO - YUM: --> Finished Dependency Resolution 22:07:11 : INFO - YUM: Setting up and reading Presto delta metadata 22:07:11 : INFO - YUM: Processing delta metadata 22:07:11 : INFO - YUM: Package(s) data still to download: 3.1 M 22:07:12 : INFO - Downloaded : (1/8): libzfs2-0.6.4.1-1.el6.x86_64.rpm (
111 k )
22:07:12 : INFO - Downloaded : (2/8):
libzfs2-devel-0.6.4.1-1.el6.x86_64.rpm ( 284 k )
22:07:12 : INFO - Downloaded : (3/8): spl-0.6.4.1-1.el6.x86_64.rpm ( 24 k
)
22:07:13 : INFO - Downloaded : (4/8): spl-dkms-0.6.4.1-1.el6.noarch.rpm (
446 k )
22:07:14 : INFO - Downloaded : (5/8): zfs-0.6.4.1-1.el6.x86_64.rpm ( 303
k )
22:07:15 : INFO - Downloaded : (6/8): zfs-dkms-0.6.4.1-1.el6.noarch.rpm (
1.9 M )
22:07:15 : INFO - Downloaded : (7/8): zfs-dracut-0.6.4.1-1.el6.x86_64.rpm
( 9.7 k )
22:07:15 : INFO - Downloaded : (8/8): zfs-test-0.6.4.1-1.el6.x86_64.rpm (
41 k )
22:07:16 : INFO - YUM: Running rpm_check_debug 22:07:16 : INFO - YUM: --> Populating transaction set with selected
packages. Please wait.
22:07:16 : INFO - YUM: ---> Package libzfs2.x86_64 0:0.6.4.1-1.el6 will
be an update
22:07:16 : INFO - YUM: ---> Package zfs.x86_64 0:0.6.4.1-1.el6 will be an
update
22:07:16 : INFO - YUM: ---> Package zfs-dracut.x86_64 0:0.6.4.1-1.el6
will be an update
22:07:16 : INFO - YUM: ---> Package spl.x86_64 0:0.6.4.1-1.el6 will be an
update
22:07:16 : INFO - YUM: ---> Package zfs-dkms.noarch 0:0.6.4.1-1.el6 will
be an update
22:07:16 : INFO - YUM: ---> Package libzfs2-devel.x86_64 0:0.6.4.1-1.el6
will be an update
22:07:16 : INFO - YUM: ---> Package zfs-test.x86_64 0:0.6.4.1-1.el6 will
be an update
22:07:16 : INFO - YUM: ---> Package spl-dkms.noarch 0:0.6.4.1-1.el6 will
be an update
22:07:18 : INFO - spl-dkms-0.6.4.1-1.el6.noarch is installed 22:07:26 : INFO - YUM: Non-fatal POSTIN scriptlet failure in rpm package
spl-dkms-0.6.4.1-1.el6.noarch
22:07:26 : INFO - RPM Scriptlet: Removing old spl-0.6.4.1 DKMS files... 22:07:26 : INFO - YUM: ------------------------------ 22:07:26 : INFO - YUM: Deleting module version: 0.6.4.1 22:07:26 : INFO - YUM: completely from the DKMS tree. 22:07:26 : INFO - YUM: ------------------------------ 22:07:26 : INFO - YUM: Done. 22:07:26 : INFO - YUM: Loading new spl-0.6.4.1 DKMS files... 22:07:26 : INFO - YUM: Building for 2.6.32-431.29.2.el6.x86_64 22:07:26 : INFO - YUM: Building initial module for
2.6.32-431.29.2.el6.x86_64
22:07:26 : INFO - YUM: configure: error: *** Unable to build an empty
module.
22:07:26 : INFO - YUM: Error! Bad return status for module build on
kernel: 2.6.32-431.29.2.el6.x86_64 (x86_64)
22:07:26 : INFO - YUM: Consult /var/lib/dkms/spl/0.6.4.1/build/make.log
for more information.
22:07:26 : INFO - YUM: warning: %post(spl-dkms-0.6.4.1-1.el6.noarch)
scriptlet failed, exit status 10
22:07:28 : INFO - zfs-dkms-0.6.4.1-1.el6.noarch is installed 22:12:37 : INFO - YUM: Non-fatal POSTIN scriptlet failure in rpm package
zfs-dkms-0.6.4.1-1.el6.noarch
22:12:37 : INFO - RPM Scriptlet: Loading new zfs-0.6.4.1 DKMS files... 22:12:37 : INFO - YUM: Building for 2.6.32-431.29.2.el6.x86_64 22:12:37 : INFO - YUM: Building initial module for
2.6.32-431.29.2.el6.x86_64
22:12:37 : INFO - YUM: configure: error: 22:12:37 : INFO - YUM: *** Please make sure the kmod spl devel <kernel>
package for your
22:12:37 : INFO - YUM: *** distribution is installed then try again. If
that fails you
22:12:37 : INFO - YUM: *** can specify the location of the spl objects
with the
22:12:37 : INFO - YUM: *** '--with-spl-obj=PATH' option. 22:12:37 : INFO - YUM: Error! Bad return status for module build on
kernel: 2.6.32-431.29.2.el6.x86_64 (x86_64)
22:12:37 : INFO - YUM: Consult /var/lib/dkms/zfs/0.6.4.1/build/make.log
for more information.
22:12:37 : INFO - YUM: warning: %post(zfs-dkms-0.6.4.1-1.el6.noarch)
scriptlet failed, exit status 10
22:12:37 : INFO - libzfs2-0.6.4.1-1.el6.x86_64 is installed 22:12:37 : INFO - spl-0.6.4.1-1.el6.x86_64 is installed 22:12:37 : INFO - zfs-0.6.4.1-1.el6.x86_64 is installed 22:12:38 : INFO - zfs-dracut-0.6.4.1-1.el6.x86_64 is installed 22:12:38 : INFO - zfs-test-0.6.4.1-1.el6.x86_64 is installed 22:12:38 : INFO - libzfs2-devel-0.6.4.1-1.el6.x86_64 is installed 22:12:39 : INFO - Transaction completed successfully
============================================================== The make.log file contains:
DKMS make.log for zfs-0.6.4.1 for kernel 2.6.32-431.29.2.el6.x86_64
(x86_64)
Sat Jun 20 22:12:37 CDT 2015 make: *** No targets specified and no makefile found. Stop.
============================================================== Reinstalling the spl-dkms package produces a similar error message:
# yum -y reinstall spl-dkms Loaded plugins: aliases, changelog, downloadonly, fastestmirror, local,
presto,
: priorities, refresh-packagekit, security, tmprepo,
verify, versionlock
Setting up Reinstall Process Loading mirror speeds from cached hostfile
- base: mirror.us.oneandone.net
- epel: mirror.steadfast.net
- extras: mirror.us.oneandone.net
- rpmfusion-free-updates: mirror.redsox.cc
- rpmfusion-nonfree-updates: mirror.redsox.cc
- updates: mirror.us.oneandone.net
Resolving Dependencies --> Running transaction check ---> Package spl-dkms.noarch 0:0.6.4.1-1.el6 will be reinstalled --> Finished Dependency Resolution
Dependencies Resolved
========================================================================================
Package Arch Version
Repository Size
========================================================================================
Reinstalling: spl-dkms noarch 0.6.4.1-1.el6 _local
446 k
Transaction Summary
========================================================================================
Reinstall 1 Package(s)
Total download size: 446 k Installed size: 2.4 M Downloading Packages: Setting up and reading Presto delta metadata Processing delta metadata Package(s) data still to download: 446 k Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : spl-dkms-0.6.4.1-1.el6.noarch
1/1
Non-fatal POSTIN scriptlet failure in rpm package
spl-dkms-0.6.4.1-1.el6.noarch
Removing old spl-0.6.4.1 DKMS files...
Deleting module version: 0.6.4.1 completely from the DKMS tree.
Done. Loading new spl-0.6.4.1 DKMS files... Building for 2.6.32-431.29.2.el6.x86_64 Building initial module for 2.6.32-431.29.2.el6.x86_64 configure: error: *** Unable to build an empty module. Error! Bad return status for module build on kernel:
2.6.32-431.29.2.el6.x86_64 (x86_64)
Consult /var/lib/dkms/spl/0.6.4.1/build/make.log for more information. warning: %post(spl-dkms-0.6.4.1-1.el6.noarch) scriptlet failed, exit
status 10
Verifying : spl-dkms-0.6.4.1-1.el6.noarch
1/1
Installed: spl-dkms.noarch 0:0.6.4.1-1.el6
Complete!
Given you have based repository enabled but it's not offering you a new kernel or kernel-headers/devel it would appear that you have updated the latter but not booted into the matching kernel and then dkms is failing.
Reboot into the most recent kernel you have installed and try again.
You may find more specific help at the zfsonlinux specific lists. Since the filesystem is not in the mainline kernel Red Hat doesn't support it so the availability of help for it on this mailing list, given CentOS doesn't provide it, is limited.
On 21 Jun 2015 09:16, "James Hogarth" james.hogarth@gmail.com wrote:
On 21 Jun 2015 04:46, "Robert G. (Doc) Savage" dsavage@peaknet.net
wrote:
What should have been a routine upgrade to ZFS 0.6.4.1-1.el6.x86_64 somehow failed, and now I've lost access to a 2T raidz2 array. I've tried removing all zfs and related packages (spl*), then starting fresh. For reasons that have have nothing to do with this problem (I don't think), I'm still booted to kernel 2.6.32-431.29.2.el6.x86_64, and there are no other kernels installed.
The %post script in the spl-dkms package appears to have a serious problem. Complete captures follow.
Can anyone explain what's happening (or not happening) here?
--Doc Savage Fairview Heights, IL
============================================================= Here's the yumex installation log:
# yumex --root -n /usr/lib/python2.6/site-packages/guihelpers/__init__.py:256:
GtkWarning: gtk_scrolled_window_add(): cannot add non scrollable widget use gtk_scrolled_window_add_with_viewport() instead
self.add_from_file(filename) 22:00:19 : DEBUG - network interface eth0 (forcedeth) is connected 22:04:53 : INFO - Starting yum child process 22:04:53 : INFO - Using the following repositories :
epel,rpmfusion-free-updates,rpmfusion-nonfree-updates,_local,adobe-linux-x86_64,base,updates,zfs,extras
22:04:53 : INFO - YUM: Yum Version : 3.2.29 22:04:53 : INFO - YUM: Loaded plugins: fastestmirror, local, presto,
priorities, versionlock
22:04:54 : INFO - Getting available updates 22:04:54 : INFO - YUM: Loading mirror speeds from cached hostfile 22:04:54 : INFO - YUM: * base: mirror.metrocast.net 22:04:54 : INFO - YUM: * epel: mirror.steadfast.net 22:04:54 : INFO - YUM: * extras: mirror.metrocast.net 22:04:54 : INFO - YUM: * rpmfusion-free-updates: mirror.redsox.cc 22:04:54 : INFO - YUM: * rpmfusion-nonfree-updates: mirror.redsox.cc 22:04:54 : INFO - YUM: * updates: mirror.metrocast.net 22:04:55 : INFO - 5 packages returned 22:04:55 : INFO - Getting available obsoletes 22:04:55 : INFO - 0 packages returned 22:04:55 : INFO - Adding Packages to view 22:04:55 : INFO - Added 5 Packages to view 22:05:30 : INFO - Getting Category Packages 22:05:31 : INFO - Adding Packages to view 22:05:31 : INFO - Added 134 Packages to view 22:06:53 : INFO - YUM: Package matching dkms-2.2.0.3-14.zfs1.el6.noarch
already installed. Checking for update.
22:06:53 : INFO - YUM: Package matching libzpool2-0.6.4-1.el6.x86_64
already installed. Checking for update.
22:06:54 : INFO - YUM: --> Running transaction check 22:06:54 : INFO - YUM: ---> Package libzfs2.x86_64 0:0.6.4.1-1.el6 will
be installed
22:06:54 : INFO - YUM: ---> Package libzfs2-devel.x86_64
0:0.6.4.1-1.el6 will be installed
22:06:54 : INFO - YUM: ---> Package spl.x86_64 0:0.6.4.1-1.el6 will be
installed
22:06:54 : INFO - YUM: ---> Package spl-dkms.noarch 0:0.6.4.1-1.el6
will be installed
22:06:54 : INFO - YUM: ---> Package zfs.x86_64 0:0.6.4.1-1.el6 will be
installed
22:06:54 : INFO - YUM: ---> Package zfs-dkms.noarch 0:0.6.4.1-1.el6
will be installed
22:06:54 : INFO - YUM: ---> Package zfs-dracut.x86_64 0:0.6.4.1-1.el6
will be installed
22:06:54 : INFO - YUM: ---> Package zfs-test.x86_64 0:0.6.4.1-1.el6
will be installed
22:06:55 : INFO - YUM: --> Finished Dependency Resolution 22:07:11 : INFO - YUM: Setting up and reading Presto delta metadata 22:07:11 : INFO - YUM: Processing delta metadata 22:07:11 : INFO - YUM: Package(s) data still to download: 3.1 M 22:07:12 : INFO - Downloaded : (1/8): libzfs2-0.6.4.1-1.el6.x86_64.rpm
( 111 k )
22:07:12 : INFO - Downloaded : (2/8):
libzfs2-devel-0.6.4.1-1.el6.x86_64.rpm ( 284 k )
22:07:12 : INFO - Downloaded : (3/8): spl-0.6.4.1-1.el6.x86_64.rpm ( 24
k )
22:07:13 : INFO - Downloaded : (4/8): spl-dkms-0.6.4.1-1.el6.noarch.rpm
( 446 k )
22:07:14 : INFO - Downloaded : (5/8): zfs-0.6.4.1-1.el6.x86_64.rpm (
303 k )
22:07:15 : INFO - Downloaded : (6/8): zfs-dkms-0.6.4.1-1.el6.noarch.rpm
( 1.9 M )
22:07:15 : INFO - Downloaded : (7/8):
zfs-dracut-0.6.4.1-1.el6.x86_64.rpm ( 9.7 k )
22:07:15 : INFO - Downloaded : (8/8): zfs-test-0.6.4.1-1.el6.x86_64.rpm
( 41 k )
22:07:16 : INFO - YUM: Running rpm_check_debug 22:07:16 : INFO - YUM: --> Populating transaction set with selected
packages. Please wait.
22:07:16 : INFO - YUM: ---> Package libzfs2.x86_64 0:0.6.4.1-1.el6 will
be an update
22:07:16 : INFO - YUM: ---> Package zfs.x86_64 0:0.6.4.1-1.el6 will be
an update
22:07:16 : INFO - YUM: ---> Package zfs-dracut.x86_64 0:0.6.4.1-1.el6
will be an update
22:07:16 : INFO - YUM: ---> Package spl.x86_64 0:0.6.4.1-1.el6 will be
an update
22:07:16 : INFO - YUM: ---> Package zfs-dkms.noarch 0:0.6.4.1-1.el6
will be an update
22:07:16 : INFO - YUM: ---> Package libzfs2-devel.x86_64
0:0.6.4.1-1.el6 will be an update
22:07:16 : INFO - YUM: ---> Package zfs-test.x86_64 0:0.6.4.1-1.el6
will be an update
22:07:16 : INFO - YUM: ---> Package spl-dkms.noarch 0:0.6.4.1-1.el6
will be an update
22:07:18 : INFO - spl-dkms-0.6.4.1-1.el6.noarch is installed 22:07:26 : INFO - YUM: Non-fatal POSTIN scriptlet failure in rpm
package spl-dkms-0.6.4.1-1.el6.noarch
22:07:26 : INFO - RPM Scriptlet: Removing old spl-0.6.4.1 DKMS files... 22:07:26 : INFO - YUM: ------------------------------ 22:07:26 : INFO - YUM: Deleting module version: 0.6.4.1 22:07:26 : INFO - YUM: completely from the DKMS tree. 22:07:26 : INFO - YUM: ------------------------------ 22:07:26 : INFO - YUM: Done. 22:07:26 : INFO - YUM: Loading new spl-0.6.4.1 DKMS files... 22:07:26 : INFO - YUM: Building for 2.6.32-431.29.2.el6.x86_64 22:07:26 : INFO - YUM: Building initial module for
2.6.32-431.29.2.el6.x86_64
22:07:26 : INFO - YUM: configure: error: *** Unable to build an empty
module.
22:07:26 : INFO - YUM: Error! Bad return status for module build on
kernel: 2.6.32-431.29.2.el6.x86_64 (x86_64)
22:07:26 : INFO - YUM: Consult /var/lib/dkms/spl/0.6.4.1/build/make.log
for more information.
22:07:26 : INFO - YUM: warning: %post(spl-dkms-0.6.4.1-1.el6.noarch)
scriptlet failed, exit status 10
22:07:28 : INFO - zfs-dkms-0.6.4.1-1.el6.noarch is installed 22:12:37 : INFO - YUM: Non-fatal POSTIN scriptlet failure in rpm
package zfs-dkms-0.6.4.1-1.el6.noarch
22:12:37 : INFO - RPM Scriptlet: Loading new zfs-0.6.4.1 DKMS files... 22:12:37 : INFO - YUM: Building for 2.6.32-431.29.2.el6.x86_64 22:12:37 : INFO - YUM: Building initial module for
2.6.32-431.29.2.el6.x86_64
22:12:37 : INFO - YUM: configure: error: 22:12:37 : INFO - YUM: *** Please make sure the kmod spl devel
<kernel> package for your
22:12:37 : INFO - YUM: *** distribution is installed then try again.
If that fails you
22:12:37 : INFO - YUM: *** can specify the location of the spl objects
with the
22:12:37 : INFO - YUM: *** '--with-spl-obj=PATH' option. 22:12:37 : INFO - YUM: Error! Bad return status for module build on
kernel: 2.6.32-431.29.2.el6.x86_64 (x86_64)
22:12:37 : INFO - YUM: Consult /var/lib/dkms/zfs/0.6.4.1/build/make.log
for more information.
22:12:37 : INFO - YUM: warning: %post(zfs-dkms-0.6.4.1-1.el6.noarch)
scriptlet failed, exit status 10
22:12:37 : INFO - libzfs2-0.6.4.1-1.el6.x86_64 is installed 22:12:37 : INFO - spl-0.6.4.1-1.el6.x86_64 is installed 22:12:37 : INFO - zfs-0.6.4.1-1.el6.x86_64 is installed 22:12:38 : INFO - zfs-dracut-0.6.4.1-1.el6.x86_64 is installed 22:12:38 : INFO - zfs-test-0.6.4.1-1.el6.x86_64 is installed 22:12:38 : INFO - libzfs2-devel-0.6.4.1-1.el6.x86_64 is installed 22:12:39 : INFO - Transaction completed successfully
============================================================== The make.log file contains:
DKMS make.log for zfs-0.6.4.1 for kernel 2.6.32-431.29.2.el6.x86_64
(x86_64)
Sat Jun 20 22:12:37 CDT 2015 make: *** No targets specified and no makefile found. Stop.
============================================================== Reinstalling the spl-dkms package produces a similar error message:
# yum -y reinstall spl-dkms Loaded plugins: aliases, changelog, downloadonly, fastestmirror, local,
presto,
: priorities, refresh-packagekit, security, tmprepo,
verify, versionlock
Setting up Reinstall Process Loading mirror speeds from cached hostfile
- base: mirror.us.oneandone.net
- epel: mirror.steadfast.net
- extras: mirror.us.oneandone.net
- rpmfusion-free-updates: mirror.redsox.cc
- rpmfusion-nonfree-updates: mirror.redsox.cc
- updates: mirror.us.oneandone.net
Resolving Dependencies --> Running transaction check ---> Package spl-dkms.noarch 0:0.6.4.1-1.el6 will be reinstalled --> Finished Dependency Resolution
Dependencies Resolved
========================================================================================
Package Arch Version
Repository Size
========================================================================================
Reinstalling: spl-dkms noarch 0.6.4.1-1.el6 _local
446 k
Transaction Summary
========================================================================================
Reinstall 1 Package(s)
Total download size: 446 k Installed size: 2.4 M Downloading Packages: Setting up and reading Presto delta metadata Processing delta metadata Package(s) data still to download: 446 k Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : spl-dkms-0.6.4.1-1.el6.noarch
1/1
Non-fatal POSTIN scriptlet failure in rpm package
spl-dkms-0.6.4.1-1.el6.noarch
Removing old spl-0.6.4.1 DKMS files...
Deleting module version: 0.6.4.1 completely from the DKMS tree.
Done. Loading new spl-0.6.4.1 DKMS files... Building for 2.6.32-431.29.2.el6.x86_64 Building initial module for 2.6.32-431.29.2.el6.x86_64 configure: error: *** Unable to build an empty module. Error! Bad return status for module build on kernel:
2.6.32-431.29.2.el6.x86_64 (x86_64)
Consult /var/lib/dkms/spl/0.6.4.1/build/make.log for more information. warning: %post(spl-dkms-0.6.4.1-1.el6.noarch) scriptlet failed, exit
status 10
Verifying : spl-dkms-0.6.4.1-1.el6.noarch
1/1
Installed: spl-dkms.noarch 0:0.6.4.1-1.el6
Complete!
Given you have based repository enabled but it's not offering you a new
kernel or kernel-headers/devel it would appear that you have updated the latter but not booted into the matching kernel and then dkms is failing.
Reboot into the most recent kernel you have installed and try again.
You may find more specific help at the zfsonlinux specific lists. Since
the filesystem is not in the mainline kernel Red Hat doesn't support it so the availability of help for it on this mailing list, given CentOS doesn't provide it, is limited.
I just noticed you saying no other kernels installed, doesn't mean the other bits are right then. Do a yum update (actually use yum, don't use yumex) and reboot ... Then try again.