Return to site

Installing Dkms On Centos 7

broken image


Developed by Sun Microsystems, later acquired by Oracle Corporation, ZFS is one of the most popular storage systems today. It was created by combining the file system and Logical Volume Manager (LVM). ZFS comes with some great enterprise-level features such as data compression, copy-on-writes, data redundancy, snapshots, error checking and many more.

Centos

Installing dkms on CENTOS 6. Just find the package you need download and install. 1.-Download and install redhat 7 binaries ISO 2.-Register. Install vboxdrv Kernel Module. VirtualBox uses the vboxdrv kernel module to control and allocate.

Install Virtualbox 6.1 On Centos 7

  1. For CentOS / RHEL If the dkms package was installed in the OS prior to the time when you install Veeam Agent, to install the product, use the following command: yum install kmod-veeamsnap veeam. With this command, the veeamsnap kernel module will be installed from the binary kmod-veeamsnap package.
  2. Download dkms-2.7.1-1.el7.noarch.rpm for CentOS 7 from EPEL repository.

ZFS was fully open source during Sun Microsystems but after acquiring Sun, Oracle reverted ZFS to closed source. In response, OpenZFS was born in 2013 to bring individual developer and companies together to continue maintaining ZFS in an open source manner. ZFS is not enabled by default in CentOS 7. In this guide, we are going to learn how to configure ZFS on CentOS 7.4 and above.

Step 1: Add ZFS Repository

First, we need to check which version of CentOS is currently installed using the following command:

After the CentOS version is verified, we can add the repo of ZFSOnLinux using the following command:

Step 2: DKMS vs kABI

DKMS and kABI are two ways ZFS module can be loaded into the kernel. If DKMS is used then if CentOS kernel is ever updated, the ZFS module will need to be recompiled again. But with kABI no recompilation is necessary. In this guide, we are going to use kABI. We can enable it by editing the ZFS repository:

The following content should be in the repository file where [zfs] is for DKMS and [zfs-kmod] is for kABI. We can see that the DKMS is enabled by default and kABI is disabled:

We are going to disable DKMS and enable kABI by editing the enable= in both sections as following:

Step 3: Installing ZFS

With repository fully configured, we are now ready to install ZFS using the following command:

Reboot the computer to activate ZFS so modules can be loaded:

Step 4: Check ZFS Kernel Module

Installing Dkms On Centos 7 6

After rebooting is done, use the following command to check if the ZFS kernel module is loaded automatically:

If the module is loaded properly, we should see it as follows:

If for some reason the module is not loaded, we can manually load it using the following command and check again:

Step 5: Creating ZFS Pool

How To Install Dkms

A ZFS pool combines drives together to perform single storage. Pools should always be created on disks which are currently not in use. So when the storage needs to be expanded simply add drives to the pool to increase overall storage capacity. This offers to scale without restriction.

Installing Dkms On Centos 7 2

Step 5a: Pool Naming Convention

ZFS pool and dataset name must follow the strict naming convention:

  • The name can only contain alphanumeric characters including the following four special characters:
    • Hyphen -
    • Underscore _
    • Colon ;
    • Period .
  • The name must begin with a letter with the following exceptions:
    • Reserved names cannot be used: log, mirror, raidz, raidz1, raidz2, raidz3, spare.
    • Name must not contain percent (%) symbol.
    • The naming sequence must never be as c[0-9].

There are three types of pools that can be created in ZFS:

  • Stripped Pool
  • Mirrored Pool
  • Raid Pool

Each offers its own sets of advantages and disadvantages. It is important to decide which type of pool is going to be used. Because once the pool is created it cannot be undone. In order to change pool, a new pool would need to be created, then migrate all data from the old pool to the new pool then delete the old pool.

Installing Dkms On Centos 7 32-bit

Step 5b: Creating Striped Pool

This is the basis ZFS storage pool where incoming data is dynamically striped across all disks in the pool. Although this offers maximum write performance, it also comes with a price. Any single failed drive will make the pool completely unusable and data loss will occur. Besides the performance, the biggest advantage of Stripped pool is total storage capacity is equal to the total size of all disks. We can use the following command to create a ZFS Striped pool:

To increase the size of the striped pool, we can simply add a drive using the following command:

It is important to note here that, when a new disk is added to a striped pool, ZFS will not redistribute existing data over to the new disk, but will favour the newly added disk for new incoming data. The only way to redistribute existing data is to delete, then recopy the data in which case data will be stripped on all disks.

Step 5c: Creating Mirrored Pool

As the name suggests, this pool is consists of mirrored disks. There are no restrictions on how the mirror can be formed. The main caveat using the mirrored pool is we lose 50% of total disk capacity due to the mirror.

To create a mirror pool of just two disks:

To expand a mirror pool we simply need to add another group of the mirrored disk:

When adding another mirror group, data is striped on to the new mirrored group of the disk. Although it is rare, it is also possible to create a mirror of more than two disks:

Step 5d: Creating Raid-Z1, Raid-Z2 or Raid-Z3 Pool

ZFS offers software-defined RAID pools for disk redundancy. Since it is not depended on hardware RAID, all disks of a pool can be easily relocated to another server during a server failure. All Raid-ZX in ZFS works similarly with the difference in disks tolerance. The main difference between Raid-Z1, Raid-Z2 and Raid-Z3 are they can tolerate a maximum of 1, 2 and 3 disk failure respectively without any data loss.

To create Raid-Z1 we need a minimum of two drives:

To create Raid-Z2 we need a minimum of 3 drives:

To create Raid-Z3 we need a minimum of 4 drives:

When using any raidzX pool, it is important to keep in mind that, a disk loss puts the pool under heavy load due to data rebalancing. The bigger the pool, the longer it will take for rebalancing to complete.

Once a Raid-ZX pool is created it cannot be expanded just by adding new disk to it. In order to expand the pool we need to add another complete vdev. A vdev is a complete group of disks which can be standalone forming a pool or multiple vdevs forming a pool. For example, a Raid-Z3 consisting of 4 drives is one vdev. To expand the pool we need to another vdev of mirror, Raid-Z1, Raid-Z2 or Raid-Z3 vdev. Following command is to expand a Raid-Z3 with another Raid-Z3 vdev:

Step 6: Adding Cache/Log Disk

We can increase both read and write performance significantly by adding faster disks such as SSD or NVMe. Cache disks increased read performance while Log disks increases write performance. These disks can be added during pool creation or even after the pool has been created. The cache and log disks can also be mirrored to increase performance redundancy.

To add mirror Cache disks during pool creation to increase read performance:

Note that it may take a while to achieve maximum read performance because ZFS will automatically copy most frequently accessed data to the Cache disk over time.

To add mirror Log disks during pool creation to increase write performance:

Common ZFS Commands

To check pool status: Dawn of war 2 graphics mod.

To see list of ZFS datasets

To import a ZFS pool which was created on another server:

[OPTIONAL] Download and install the latest DeckLink driver

  1. Download the latest driver from the Blackmagic Design website
  2. Become the root user:

    $ su -

    When prompted, enter your root user's password.

  3. If you already have an older DeckLink driver installed, uninstall it:

    # rpm -qa | grep desktopvideo | xargs rpm -e

  4. If GNOME didn't uncompress it for you already, uncompress the downloaded driver package:

    # tar xvfz /path/to/downloaded/driver/location/Blackmagic_Desktop_Video_Linux_.tar.gz

  5. cd into the rpm folder, since this is CentOS

    # cd /Blackmagic_Desktop_Video_Linux_/rpm/

  6. Install the latest Desktop Video driver, GUI, and Media Express. Type:

    1. # rpm -ivh desktopvideo-.x86_64.rpm

    2. # rpm -ivh desktopvideo-gui-.x86_64.rpm

    3. # rpm -ivh mediaexpress-.x86_64.rpm

      1. The installer might fail and tell you that you mediaexpress needs libGLU.so.1, so install libGLU and try again:

        # yum install mesa-libGLU

  7. After the installation completes, you should see the terminal prompt. Reboot.
  8. After the machine has rebooted, open a Terminal shell again
  9. Become the root user again:

    $ su -

    When prompted, please enter your root user's password

  10. You might need to update the firmware on your DeckLink card. Type:

    # BlackmagicFirmwareUpdater update 0

  11. If a firmware update was applied, reboot the machine after it completes. If no firmware update was required, a reboot is not necessary.




broken image