I actually do need to submit some updates to Pat for those updated ZOL packages. However since they did not contain anything groundbreaking I was frankly waiting on the next release. I also am probably overdue for a suggestion to move ZOL from addons to core and simply maintaining updated kmod packages alongside the kernel for EL6/7. I have noted that the downside (particularly feedback from internal HELiOS customers) is that the DKMS packaging has a rather lengthy rebuild and initial build at end of install time (if selected during install with our HELiOS respin).
ATM tho dkms EL6 package from EPEL is indeed what I test the ZOL DKMS packages against.
regards,
Chris
________________________________________
From: [log in to unmask] [[log in to unmask]] on behalf of John Roberts [[log in to unmask]]
Sent: Friday, November 28, 2014 3:53 PM
To: Denice
Cc: [log in to unmask]
Subject: Re: Unable to install ZFS from sl-addons repo
Hi,
On 2014-11-28 1:17 PM, Denice wrote:
> On Fri, 28 Nov 2014, John Roberts wrote:
>
>> Hi Denice,
>>
>> Thank you. Since these ZFS packages seem to rely strongly on a
>> specific version of a package found in a third-party repository that
>> can be updated separately from the ZFS packages, would it make sense
>> (or be possible) for the sl-addons repository to contain a copy of the
>> dkms package that is always updated in parallel with the ZFS packages?
>
> I found the post about this in the ZoL mailing list archives:
>
>
> https://groups.google.com/a/zfsonlinux.org/forum/#!topic/zfs-discuss/nbuRKb7Zzno
There's some very good advice in there about using yum-plugin-local.
The ZOL repo's updated packages do indeed work with the latest dkms from
EPEL (or at least, they build and install successfully and I can run
"sudo zpool list" to see that I haven't yet created a pool).
Once installed, I can use yum-plugin-versionlock to lock the ZFS and
dkms packages to the current version:
> sudo yum versionlock dkms libnvpair1 libuutil1 libzfs2 libzpool2 spl spl-dkms zfs zfs-dkms
And this should protect our server from out-of-sync updates of this
software, and yum-plugin-local keeps a copy that I can reinstall later,
or on another server.
Cheers, John
> cheers, etc.
>
>> On 2014-11-27 5:20 PM, Denice wrote:
>>> On Thu, 27 Nov 2014, John Roberts wrote:
>>>
>>> > Hello,
>>> > > Installing ZFS from the sl-addons repository is failing on one
>>> of our
>>> > servers. Are there known problems with these packages in the
>>> > sl-addons repository? Should I use the ZFSOnLinux project's own
>>> > repository instead?
>>>
>>> I just did a double-check with reposync to see if something has
>>> changed in the ZFSOnLinux tree at:
>>> http://archive.zfsonlinux.org/
>>>
>>> On Oct. 9th they added these updated packages:
>>>
>>> -rw-r--r-- 1 user 31768 Oct 9 15:40
>>> libuutil1-0.6.3-1.1.el6.x86_64.rpm
>>> -rw-r--r-- 1 user 26716 Oct 9 15:40
>>> libnvpair1-0.6.3-1.1.el6.x86_64.rpm
>>> -rw-r--r-- 1 user 111596 Oct 9 15:40 libzfs2-0.6.3-1.1.el6.x86_64.rpm
>>> -rw-r--r-- 1 user 274724 Oct 9 15:40
>>> libzfs2-devel-0.6.3-1.1.el6.x86_64.rpm
>>> -rw-r--r-- 1 user 385952 Oct 9 15:40
>>> libzpool2-0.6.3-1.1.el6.x86_64.rpm
>>> -rw-r--r-- 1 user 492148 Oct 9 15:40
>>> spl-dkms-0.6.3-1.1.el6.noarch.rpm
>>> -rw-r--r-- 1 user 22388 Oct 9 15:40 spl-0.6.3-1.1.el6.x86_64.rpm
>>> -rw-r--r-- 1 user 288780 Oct 9 15:40 zfs-0.6.3-1.1.el6.x86_64.rpm
>>> -rw-r--r-- 1 user 1886780 Oct 9 15:40
>>> zfs-dkms-0.6.3-1.1.el6.noarch.rpm
>>> -rw-r--r-- 1 user 42704 Oct 9 15:40
>>> zfs-test-0.6.3-1.1.el6.x86_64.rpm
>>> -rw-r--r-- 1 user 8932 Oct 9 15:40
>>> zfs-dracut-0.6.3-1.1.el6.x86_64.rpm
>>>
>>> perhaps they work better with the version of dkms that is currently
>>> in EPEL.
>>>
>>> We have had good luck with the June version of the ZFSOnLinux
>>> repository
>>> and the EPEL version of dkms: # dkms-2.2.0.3-20.el6.noarch
>>>
>>> It might be wise to keep a copy of the EPEL dkms rpm for future
>>> reference,
>>> we certainly will, since we want to be able to repeat an installation
>>> base in the future for well-tested versions of software.
>>>
>>> Note that the ZOL archive has some older versions of dkms in it; i.e.
>>> Jun 26 13:06 dkms-2.2.0.3-14.zfs1.el6.noarch.rpm
>>> Jul 14 14:36 dkms-2.2.0.3-2.zfs1.el6.noarch.rpm
>>>
>>> cheers,
>>> Denice
>>>
>>> > A complete description of what I've done to install ZFS follows.
>>> > > Cheers, John Roberts
>>> > SNOLAB
>>> > > I wish to install the ZFS filesystem on one of our Scientific Linux
>>> > servers. Before today, the server ran SL 6.3. ZFS is found in the
>>> > sl-addons repo which was not added until SL 6.4. So, I installed
>>> > yum-conf-sl6x and ran "yum update" to bring the server up to SL 6.6,
>>> > and rebooted after this was done. So far, so good.
>>> > > After the reboot, I enabled sl-addons in the
>>> > /etc/yum.repos.d/sl-other.repo file. We already have the epel
>>> > repository enabled on this system (required for dkms).
>>> > > When I perform "yum install zfs", there are errors displayed while
>>> > installing two of the dependency packages:
>>> > > spl-dkms-0.6.3-1.el6.noarch
>>> > > > cp: cannot stat `/var/lib/dkms/spl/0.6.3/build/spl_config.h': No
>>> > > such > cp: file or directory
>>> > > > cp: cannot stat
>>> > > `/var/lib/dkms/spl/0.6.3/build/module/Module.symvers': > cp: No
>>> such
>>> > > file or directory
>>> > > zfs-dkms-0.6.3-1.el6.noarch
>>> > > > Non-fatal POSTIN scriptlet failure in rpm package >
>>> > > zfs-dkms-0.6.3-1.el6.noarch
>>> > > > Removing old zfs-0.6.3 DKMS files...
>>> > > > > ------------------------------
>>> > > > Deleting module version: 0.6.3
>>> > > > completely from the DKMS tree.
>>> > > > ------------------------------
>>> > > > Done.
>>> > > > Loading new zfs-0.6.3 DKMS files...
>>> > > > Building for 2.6.32-504.1.3.el6.x86_64
>>> > > > Building initial module for 2.6.32-504.1.3.el6.x86_64
>>> > > > configure: error:
>>> > > > *** Please make sure the kmod spl devel package for your
>>> > > distribution
>>> > > > *** is installed then try again. If that fails you can
>>> specify > > > the
>>> > > > *** location of the spl source with the '--with-spl=PATH'
>>> option.
>>> > > > Error! Bad return status for module build on kernel: >
>>> > > 2.6.32-504.1.3.el6.x86_64 (x86_64)
>>> > > > Consult /var/lib/dkms/zfs/0.6.3/build/make.log for more > >
>>> > information.
>>> > > > warning: %post(zfs-dkms-0.6.3-1.el6.noarch) scriptlet failed,
>>> exit
>>> > > > status 10
>>> > > After this install (which otherwise claims to be successful, even
>>> > "echo $?" returns 0), the ZFS programs do not work, and the zfs.ko
>>> > module cannot be found:
>>> > > > [root@tremor log]# zpool list
>>> > > Failed to load ZFS module stack.
>>> > > Load the module manually by running 'insmod <location>/zfs.ko'
>>> as > > root.
>>> > > [root@tremor log]# sh /etc/cron.daily/mlocate.cron
>>> > > [root@tremor log]# locate zfs.ko
>>> > > Complete transcript of the install process follows.
>>> > > > [root@tremor log]# yum install zfs
>>> > > Loaded plugins: refresh-packagekit, security
>>> > > Setting up Install Process
>>> > > Resolving Dependencies
>>> > > --> Running transaction check
>>> > > ---> Package zfs.x86_64 0:0.6.3-1.el6 will be installed
>>> > > --> Processing Dependency: zfs-kmod = 0.6.3 for package: -->
>>> > > zfs-0.6.3-1.el6.x86_64
>>> > > --> Processing Dependency: spl = 0.6.3 for package:
>>> > > zfs-0.6.3-1.el6.x86_64
>>> > > --> 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: libuutil1 = 0.6.3 for package: -->
>>> > > zfs-0.6.3-1.el6.x86_64
>>> > > --> Processing Dependency: libnvpair1 = 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
>>> > > --> Processing Dependency: libuutil.so.1()(64bit) for package: -->
>>> > > zfs-0.6.3-1.el6.x86_64
>>> > > --> Processing Dependency: libnvpair.so.1()(64bit) for package:
>>> -->
>>> > > zfs-0.6.3-1.el6.x86_64
>>> > > --> 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
>>> > > ---> Package spl.x86_64 0:0.6.3-1.el6 will be installed
>>> > > --> Processing Dependency: spl-kmod = 0.6.3 for package: -->
>>> > > spl-0.6.3-1.el6.x86_64
>>> > > ---> Package zfs-dkms.noarch 0:0.6.3-1.el6 will be installed
>>> > > --> Processing Dependency: dkms >= 2.2.0.3-20 for package: -->
>>> > > zfs-dkms-0.6.3-1.el6.noarch
>>> > > --> Running transaction check
>>> > > ---> Package dkms.noarch 0:2.2.0.3-28.git.7c3e7c5.el6 will be >
>>> > installed
>>> > > ---> Package spl-dkms.noarch 0:0.6.3-1.el6 will be installed
>>> > > --> Finished Dependency Resolution
>>> > > > > Dependencies Resolved
>>> > > > >
>>> ==================================================================================================================================================================================================================
>>>
>>> > > > > Package Arch
>>> > > Version
>>> > > Repository
>>> > > Size
>>> > >
>>> ==================================================================================================================================================================================================================
>>>
>>> > > > > Installing:
>>> > > zfs x86_64
>>> > > 0.6.3-1.el6
>>> > > sl-addons
>>> > > 282 k
>>> > > Installing for dependencies:
>>> > > dkms noarch
>>> > >
>>> 2.2.0.3-28.git.7c3e7c5.el6 epel
>>> > > 77 k
>>> > > libnvpair1 x86_64
>>> > > 0.6.3-1.el6
>>> > > sl-addons
>>> > > 26 k
>>> > > libuutil1 x86_64
>>> > > 0.6.3-1.el6
>>> > > sl-addons
>>> > > 31 k
>>> > > libzfs2 x86_64
>>> > > 0.6.3-1.el6
>>> > > sl-addons
>>> > > 109 k
>>> > > libzpool2 x86_64
>>> > > 0.6.3-1.el6
>>> > > sl-addons
>>> > > 377 k
>>> > > spl x86_64
>>> > > 0.6.3-1.el6
>>> > > sl-addons
>>> > > 22 k
>>> > > spl-dkms noarch
>>> > > 0.6.3-1.el6
>>> > > sl-addons
>>> > > 480 k
>>> > > zfs-dkms noarch
>>> > > 0.6.3-1.el6
>>> > > sl-addons
>>> > > 1.8 M
>>> > > > > Transaction Summary
>>> > >
>>> ==================================================================================================================================================================================================================
>>>
>>> > > > > Install 9 Package(s)
>>> > > > > Total download size: 3.2 M
>>> > > Installed size: 16 M
>>> > > Is this ok [y/N]: y
>>> > > Downloading Packages:
>>> > > (1/9): dkms-2.2.0.3-28.git.7c3e7c5.el6.noarch.rpm
>>> > > | 77 kB 00:00
>>> > > (2/9): libnvpair1-0.6.3-1.el6.x86_64.rpm
>>> > > | 26 kB 00:00
>>> > > (3/9): libuutil1-0.6.3-1.el6.x86_64.rpm
>>> > > | 31 kB 00:00
>>> > > (4/9): libzfs2-0.6.3-1.el6.x86_64.rpm
>>> > > | 109 kB 00:00
>>> > > (5/9): libzpool2-0.6.3-1.el6.x86_64.rpm
>>> > > | 377 kB 00:00
>>> > > (6/9): spl-0.6.3-1.el6.x86_64.rpm
>>> > > | 22 kB 00:00
>>> > > (7/9): spl-dkms-0.6.3-1.el6.noarch.rpm
>>> > > | 480 kB 00:00
>>> > > (8/9): zfs-0.6.3-1.el6.x86_64.rpm
>>> > > | 282 kB 00:00
>>> > > (9/9): zfs-dkms-0.6.3-1.el6.noarch.rpm
>>> > > | 1.8 MB 00:01
>>> > >
>>> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>>
>>> > > > > Total
>>> > > 748 kB/s | 3.2 MB 00:04
>>> > > Running rpm_check_debug
>>> > > Running Transaction Test
>>> > > Transaction Test Succeeded
>>> > > Running Transaction
>>> > > Installing : libuutil1-0.6.3-1.el6.x86_64 Installing : 1/9
>>> > > Installing : libnvpair1-0.6.3-1.el6.x86_64 Installing : 2/9
>>> > > Installing : libzpool2-0.6.3-1.el6.x86_64 Installing : 3/9
>>> > > Installing : dkms-2.2.0.3-28.git.7c3e7c5.el6.noarch Installing
>>> : 4/9
>>> > > Installing : spl-dkms-0.6.3-1.el6.noarch Installing : 5/9
>>> > > Removing old spl-0.6.3 DKMS files...
>>> > > > > -------- Uninstall Beginning --------
>>> > > Module: spl
>>> > > Version: 0.6.3
>>> > > Kernel: 2.6.32-504.1.3.el6.x86_64 (x86_64)
>>> > > -------------------------------------
>>> > > > > Status: This module version was INACTIVE for this kernel.
>>> > > depmod...
>>> > > > > DKMS: uninstall completed.
>>> > > > > ------------------------------
>>> > > Deleting module version: 0.6.3
>>> > > completely from the DKMS tree.
>>> > > ------------------------------
>>> > > Done.
>>> > > Loading new spl-0.6.3 DKMS files...
>>> > > Building for 2.6.32-504.1.3.el6.x86_64
>>> > > Building initial module for 2.6.32-504.1.3.el6.x86_64
>>> > > Done.
>>> > > > > spl:
>>> > > Running module version sanity check.
>>> > > - Original module
>>> > > - No original module exists within this kernel
>>> > > - Installation
>>> > > - Installing to /lib/modules/2.6.32-504.1.3.el6.x86_64/extra/
>>> > > > > splat.ko:
>>> > > Running module version sanity check.
>>> > > - Original module
>>> > > - No original module exists within this kernel
>>> > > - Installation
>>> > > - Installing to /lib/modules/2.6.32-504.1.3.el6.x86_64/extra/
>>> > > Adding any weak-modules
>>> > > > > Running the post_install script:
>>> > > cp: cannot stat `/var/lib/dkms/spl/0.6.3/build/spl_config.h': No
>>> > > such file cp: or directory
>>> > > cp: cannot stat
>>> > > `/var/lib/dkms/spl/0.6.3/build/module/Module.symvers': No cp: such
>>> > > file or directory
>>> > > > > depmod...
>>> > > > > DKMS: install completed.
>>> > > Installing : spl-0.6.3-1.el6.x86_64 Installing : 6/9
>>> > > Installing : zfs-dkms-0.6.3-1.el6.noarch Installing : 7/9
>>> > > Non-fatal POSTIN scriptlet failure in rpm package
>>> > > zfs-dkms-0.6.3-1.el6.noarch
>>> > > Removing old zfs-0.6.3 DKMS files...
>>> > > > > ------------------------------
>>> > > Deleting module version: 0.6.3
>>> > > completely from the DKMS tree.
>>> > > ------------------------------
>>> > > Done.
>>> > > Loading new zfs-0.6.3 DKMS files...
>>> > > Building for 2.6.32-504.1.3.el6.x86_64
>>> > > Building initial module for 2.6.32-504.1.3.el6.x86_64
>>> > > configure: error:
>>> > > *** Please make sure the kmod spl devel package for your >
>>> > distribution
>>> > > *** is installed then try again. If that fails you can
>>> specify the
>>> > > *** location of the spl source with the '--with-spl=PATH' option.
>>> > > Error! Bad return status for module build on kernel:
>>> > > 2.6.32-504.1.3.el6.x86_64 (x86_64)
>>> > > Consult /var/lib/dkms/zfs/0.6.3/build/make.log for more
>>> information.
>>> > > warning: %post(zfs-dkms-0.6.3-1.el6.noarch) scriptlet failed, exit
>>> > > status
>>> > > 10
>>> > > Installing : libzfs2-0.6.3-1.el6.x86_64 Installing : 8/9
>>> > > Installing : zfs-0.6.3-1.el6.x86_64 Installing : 9/9
>>> > > Verifying : spl-0.6.3-1.el6.x86_64
>>> > > 1/9
>>> > > Verifying : zfs-0.6.3-1.el6.x86_64
>>> > > 2/9
>>> > > Verifying : zfs-dkms-0.6.3-1.el6.noarch
>>> > > 3/9
>>> > > Verifying : dkms-2.2.0.3-28.git.7c3e7c5.el6.noarch
>>> > > 4/9
>>> > > Verifying : libnvpair1-0.6.3-1.el6.x86_64
>>> > > 5/9
>>> > > Verifying : libzfs2-0.6.3-1.el6.x86_64
>>> > > 6/9
>>> > > Verifying : libzpool2-0.6.3-1.el6.x86_64
>>> > > 7/9
>>> > > Verifying : spl-dkms-0.6.3-1.el6.noarch
>>> > > 8/9
>>> > > Verifying : libuutil1-0.6.3-1.el6.x86_64
>>> > > 9/9
>>> > > > > Installed:
>>> > > zfs.x86_64 0:0.6.3-1.el6
>>> > > > > Dependency Installed:
>>> > > dkms.noarch 0:2.2.0.3-28.git.7c3e7c5.el6 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 spl.x86_64
>>> > > 0:0.6.3-1.el6
>>> > > spl-dkms.noarch 0:0.6.3-1.el6 zfs-dkms.noarch
>>> > > 0:0.6.3-1.el6
>>> > > > > Complete!
>>> > > [root@tremor log]# zpool list
>>> > > Failed to load ZFS module stack.
>>> > > Load the module manually by running 'insmod <location>/zfs.ko'
>>> as > > root.
>>> > > [root@tremor log]# sh /etc/cron.daily/mlocate.cron
>>> > > [root@tremor log]# locate zfs.ko
>>> > > Cheers, John Roberts
>>> > SNOLAB
>>>
>>>
>>
>>
>>
>
|