Installation of ZFS rpm's on Oracle Linux 8

In this blog post, we will see how we can install the ZFS rpm packages on Oracle Linux 8 operating system. Install pre-requiste package:
[root@localhost ~]# dnf install -y yum-utils
Last metadata expiration check: 1:16:13 ago on  25 May 2023 03:34:37 AM EDT.
Package yum-utils-4.0.21-19.0.1.el8_8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@localhost ~]#
Install the EPEL repository:
[root@localhost ~]# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Last metadata expiration check: 1:17:42 ago on Wed 31 May 2023 03:34:37 AM EDT.
epel-release-latest-8.noarch.rpm                                                                                                                                                    33 kB/s |  25 kB     00:00    
Dependencies resolved.
===================================================================================================================================================================================================================
 Package                                              Architecture                                   Version                                            Repository                                            Size
===================================================================================================================================================================================================================
Installing:
 epel-release                                         noarch                                         8-19.el8                                           @commandline                                          25 k

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

Total size: 25 k
Installed size: 35 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                           1/1 
  Installing       : epel-release-8-19.el8.noarch                                                                                                                                                              1/1 
  Running scriptlet: epel-release-8-19.el8.noarch                                                                                                                                                              1/1 
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.

  Verifying        : epel-release-8-19.el8.noarch                                                                                                                                                              1/1 

Installed:
  epel-release-8-19.el8.noarch                                                                                                                                                                                     

Complete!
[root@localhost ~]# yum repolist
repo id                                                                        repo name
docker-ce-stable                                                               Docker CE Stable - x86_64
epel                                                                           Extra Packages for Enterprise Linux 8 - x86_64
ol8_UEKR7                                                                      Latest Unbreakable Enterprise Kernel Release 7 for Oracle Linux 8 (x86_64)
ol8_appstream                                                                  Oracle Linux 8 Application Stream (x86_64)
ol8_baseos_latest                                                              Oracle Linux 8 BaseOS Latest (x86_64)
ol8_codeready_builder                                                          Oracle Linux 8 CodeReady Builder (x86_64) - Unsupported
ol8_distro_builder                                                             Oracle Linux 8 Distro Builder (x86_64) - Unsupported
[root@localhost ~]# 
Enable the EPEL repository:
[root@localhost ~]# yum config-manager --enable epel
[root@localhost ~]#
Check the repository:
[root@localhost ~]# yum repolist
repo id                                                                        repo name
docker-ce-stable                                                               Docker CE Stable - x86_64
epel                                                                           Extra Packages for Enterprise Linux 8 - x86_64
ol8_UEKR7                                                                      Latest Unbreakable Enterprise Kernel Release 7 for Oracle Linux 8 (x86_64)
ol8_appstream                                                                  Oracle Linux 8 Application Stream (x86_64)
ol8_baseos_latest                                                              Oracle Linux 8 BaseOS Latest (x86_64)
ol8_codeready_builder                                                          Oracle Linux 8 CodeReady Builder (x86_64) - Unsupported
ol8_distro_builder                                                             Oracle Linux 8 Distro Builder (x86_64) - Unsupported
[root@localhost ~]# 
Install the "dkms" rpm package:
[root@localhost ~]#  yum install -y dkms
Last metadata expiration check: 0:00:24 ago on  25 May 2023 04:58:25 AM EDT.
Dependencies resolved.
===================================================================================================================================================================================================================
 Package                                                Architecture                            Version                                                   Repository                                          Size
===================================================================================================================================================================================================================
Installing:
 dkms                                                   noarch                                  3.0.11-1.el8                                              epel                                                90 k
Installing dependencies:
 elfutils-libelf-devel                                  x86_64                                  0.187-4.el8                                                        

Complete!
[root@localhost ~]# 
Download the ZFS rpm file:
[root@localhost ~]# rpm -Uvh http://download.zfsonlinux.org/epel/zfs-release.el8_2.noarch.rpm
Retrieving http://download.zfsonlinux.org/epel/zfs-release.el8_2.noarch.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:zfs-release-1-9                  ################################# [100%]
[root@localhost ~]# 
Installation of ZFS rpm:
[root@localhost ~]# yum install -y zfs
ZFS on Linux for EL8 - dkms                                                                                                                                                         47 kB/s |  89 kB     00:01    
Last metadata expiration check: 0:00:03 ago on  25 May 2023 05:15:39 AM EDT.
Dependencies resolved.
===================================================================================================================================================================================================================
 Package                                         Architecture                           Version                                                            Repository                                         Size
===================================================================================================================================================================================================================
Installing:
 zfs                                             x86_64                                 0.8.5-1.el8                                                        zfs                                               516 k
Installing dependencies:
 libnvpair1                                      x86_64                                 0.8.5-1.el8                                                        zfs                                                37 k
 libuutil1                                       x86_64                                 0.8.5-1.el8                                                        zfs                                                31 k
 libzfs2                                         x86_64                                 0.8.5-1.el8                                                        zfs                                               217 k
 libzpool2                                       x86_64                                 0.8.5-1.el8                                                        zfs                                               874 k
 lm_sensors-libs                                 x86_64                                 3.4.0-23.20180522git70f7e08.el8                                    ol8_baseos_latest                                  59 k
 sysstat                                         x86_64                                 11.7.3-9.0.1.el8                                                   ol8_appstream                                     427 k
 zfs-dkms                                        noarch                                 0.8.5-1.el8                                                        zfs                                               6.1 M

Transaction Summary
===================================================================================================================================================================================================================
Install  8 Packages

Total download size: 8.3 M
Installed size: 37 M
Downloading Packages:
(1/8): lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64.rpm                                                                                                                   69 kB/s |  59 kB     00:00    
(2/8): sysstat-11.7.3-9.0.1.el8.x86_64.rpm                                                                                                                                         391 kB/s | 427 kB     00:01    
(3/8): libnvpair1-0.8.5-1.el8.x86_64.rpm                                                                                                                                            32 kB/s |  37 kB     00:01    
(4/8): libuutil1-0.8.5-1.el8.x86_64.rpm                                                                                                                                             38 kB/s |  31 kB     00:00    
(5/8): libzpool2-0.8.5-1.el8.x86_64.rpm                                                                                                                                            670 kB/s | 874 kB     00:01    
(6/8): libzfs2-0.8.5-1.el8.x86_64.rpm                                                                                                                                              136 kB/s | 217 kB     00:01    
(7/8): zfs-0.8.5-1.el8.x86_64.rpm                                                                                                                                                  399 kB/s | 516 kB     00:01    
(8/8): zfs-dkms-0.8.5-1.el8.noarch.rpm                                                                                                                                             3.1 MB/s | 6.1 MB     00:01    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                              1.8 MB/s | 8.3 MB     00:04     
ZFS on Linux for EL8 - dkms                                                                                                                                                        146 kB/s | 1.7 kB     00:00    
Importing GPG key 0xF14AB620:
 Userid     : "ZFS on Linux zfs@zfsonlinux.org"
 Fingerprint: C93A FFFD 9F3F 7B03 C310 CEB6 A9D5 A1C0 F14A B620
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                           1/1 
  Installing       : libnvpair1-0.8.5-1.el8.x86_64                                                                                                                                                             1/8 
  Running scriptlet: libnvpair1-0.8.5-1.el8.x86_64                                                                                                                                                             1/8 
  Installing       : libuutil1-0.8.5-1.el8.x86_64                                                                                                                                                              2/8 
  Running scriptlet: libuutil1-0.8.5-1.el8.x86_64                                                                                                                                                              2/8 
  Installing       : libzfs2-0.8.5-1.el8.x86_64                                                                                                                                                                3/8 
  Running scriptlet: libzfs2-0.8.5-1.el8.x86_64                                                                                                                                                                3/8 
  Installing       : libzpool2-0.8.5-1.el8.x86_64                                                                                                                                                              4/8 
  Running scriptlet: libzpool2-0.8.5-1.el8.x86_64                                                                                                                                                              4/8 
  Installing       : zfs-dkms-0.8.5-1.el8.noarch                                                                                                                                                               5/8 
  Running scriptlet: zfs-dkms-0.8.5-1.el8.noarch                                                                                                                                                               5/8 
Loading new zfs-0.8.5 DKMS files...
Deprecated feature: REMAKE_INITRD (/usr/src/zfs-0.8.5/dkms.conf)
Building for 5.15.0-3.60.5.1.el8uek.x86_64 4.18.0-425.3.1.el8.x86_64
Module build for kernel 5.15.0-3.60.5.1.el8uek.x86_64 was skipped since the
kernel headers for this kernel do not seem to be installed.
Module build for kernel 4.18.0-425.3.1.el8.x86_64 was skipped since the
kernel headers for this kernel do not seem to be installed.

  Installing       : lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64                                                                                                                                    6/8 
  Running scriptlet: lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64                                                                                                                                    6/8 
  Installing       : sysstat-11.7.3-9.0.1.el8.x86_64                                                                                                                                                           7/8 
  Running scriptlet: sysstat-11.7.3-9.0.1.el8.x86_64                                                                                                                                                           7/8 
  Installing       : zfs-0.8.5-1.el8.x86_64                                                                                                                                                                    8/8 
  Running scriptlet: zfs-0.8.5-1.el8.x86_64                                                                                                                                                                    8/8 
  Verifying        : lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64                                                                                                                                    1/8 
  Verifying        : sysstat-11.7.3-9.0.1.el8.x86_64                                                                                                                                                           2/8 
  Verifying        : libnvpair1-0.8.5-1.el8.x86_64                                                                                                                                                             3/8 
  Verifying        : libuutil1-0.8.5-1.el8.x86_64                                                                                                                                                              4/8 
  Verifying        : libzfs2-0.8.5-1.el8.x86_64                                                                                                                                                                5/8 
  Verifying        : libzpool2-0.8.5-1.el8.x86_64                                                                                                                                                              6/8 
  Verifying        : zfs-0.8.5-1.el8.x86_64                                                                                                                                                                    7/8 
  Verifying        : zfs-dkms-0.8.5-1.el8.noarch                                                                                                                                                               8/8 

Installed:
  libnvpair1-0.8.5-1.el8.x86_64  libuutil1-0.8.5-1.el8.x86_64  libzfs2-0.8.5-1.el8.x86_64  libzpool2-0.8.5-1.el8.x86_64  lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64  sysstat-11.7.3-9.0.1.el8.x86_64 
  zfs-0.8.5-1.el8.x86_64         zfs-dkms-0.8.5-1.el8.noarch  

Complete!
[root@localhost ~]# 
We can successfully install the ZFS rpm on Oracle Linux 8 operating system. In our next blog post we will see how to configure the ZFS service and create Zpool on Oracle Linux 8 operating Environment.

thanks for reading.

regards,
ZAHEER

Comments

Popular posts from this blog

Disable Firewall on Oracle Linux 8

Installation of Oracle Applications R12.1.1 on Linux and vmware

Enable Desktop on Oracle Solaris 11.4