Skip to main content

Posts

Showing posts with the label Linux8

Conifguration of GFS2 File system on Oracle Linux 9

In this blogpost we will see how we can use the GFS2 (Global File System 2) on Oracle Linux 9 allows multiple cluster nodes to concurrently access a shared block storage device—ideal for highly available applications in a clustered environment (e.g., with KVM, OLVM, or Pacemaker clusters). Prerequisites: System Requirements Oracle Linux 9 with UEK kernel Shared block storage (iSCSI, FC, or shared disk) 1. Cluster infrastructure (Pacemaker/Corosync) Fencing configured (GFS2 requires it) Install Required Packages (on all nodes): bash#dnf install -y gfs2-utils lvm2-cluster pcs fence-agents-all 2. Enable and Start Cluster Services: bash#systemctl enable --now pcsd bash#echo "yourpassword" | passwd --stdin hacluster bash#pcs host auth node1 node2 node3 -u hacluster -p yourpassword bash#pcs cluster setup --name gfscluster node1 node2 node3 bash#pcs cluster start --all bash#pcs cluster enable --all 3. Configure Shared Storage: If using LVM, make sure to enable cluster...

OLVM installation on Oracle Linux 9

We were trying to install the ovirt engine and Oracle Linux 9 but we were not able to complete the installation successfully.  We should note that Oracle Linux 9 is not currently supported for the installation of KVM hosts and OLVM engine. The latest release of OLVM is OLVM 4.5, and it only supports Oracle Linux 8.8 or later versions.  Conclusion: So we recommend you to use last available version of Oracle Linux 8 for installation of oVirt engine 4.4.10/oVirt engine 4.5 and KVM Host on Server to avoid any issue. thanks for reading. regards, ZAHEER

Creation of ZPOOL on Oracle Linux 8

In the last blog post we have seen how we can install the ZFS rpm packages on Oracle Linux 8 Operating System and now in this blog post, we will see how to configure and create the zpool on Oracle Linux 8 operating system.  Check the ZFS services: [root@localhost ~]# systemctl -a | grep zfs zfs-import-cache.service loaded inactive dead Import ZFS pools by cache file zfs-mount.service loaded inactive dead Mount ZFS filesystems zfs-share.service loaded inactive dead ZFS file system shares ...

Pulling Docker Images on Oracle Linux 8

This blog post will guide you on how we can pull the Docker images on Oracle Linux Server. The following link provides the available docker images: https://hub.docker.com/_/oraclelinux/ Check the available docker images: [root@localhost ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE [root@localhost ~]# To pull the docker images server should be connected to the internet  Pulling the docker images: [root@localhost ~]# docker pull oraclelinux:7-slim 7-slim: Pulling from library/oraclelinux e83e8f2e82cc: Pull complete Digest: sha256:8a1041ef1238165425de696fae910aa36a16ba370cd1d47b04ad8dd00d3ea655 Status: Downloaded newer image for oraclelinux:7-slim docker.io/library/oraclelinux:7-slim [root@localhost ~]# [root@localhost ~]# docker pull oraclelinux:8-slim 8-slim: Pulling from library/oraclelinux 90e2fb2facff: Pull complete Digest: sha256:c911d89784e56a150d14030091b9fbf7875efb8c4ed190f39313f90691d81fbb Status: Downloaded newer image for oraclelinux:8...

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. ==========================================================================================================================================================...

Error: Unable to find a match: xorg-x11-apps on Oracle Linux 8

Trying to install xorg-x11 rpms on Linux 8 operating system and encountered an error for locating the packages. This blog post will help you in the successful installation of the listed rpm Error while installation of rpm: [root@racnode1 patches]# yum install xorg-x11-apps Last metadata expiration check: 2:03:27 ago on Mon 20 Mar 2023 11:15:02 AM +03. No match for argument: xorg-x11-apps Error: Unable to find a match: xorg-x11-apps [root@racnode1 patches]# Enable the correct repository that contains the xorg-x11 rpm: [root@racnode1 yum.repos.d]# ls local-appstream.repo local-baseos.repo oracle-linux-ol8.repo uek-ol8.repo virt-ol8.repo [root@racnode1 yum.repos.d]# vi oracle-linux-ol8.repo [root@racnode1 yum.repos.d]# grep code oracle-linux-ol8.repo [ol8_codeready_builder] baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL8/codeready/builder/$basearch/ [root@racnode1 yum.repos.d]# Try reinstalling the same package: [root@racnode1 yum.repos.d]# yum install xorg-x11-a...

Adding SWAP space by extending LVM volume

This blog post will guide you on how we can extend the swap space for an existing LVM volume. For using this method LVM volume must have free capacity to accommodate the new swap space. If the space is not available in an existing LVM then this method is not helpful. Check the existing swap : [root@racnode1 yum.repos.d]# grep swap /etc/fstab /dev/mapper/ol_racnode1-swap none swap defaults 0 0 [root@racnode1 yum.repos.d]# ls -l /dev/mapper/ol_racnode1-swap lrwxrwxrwx 1 root root 7 Mar 15 23:00 /dev/mapper/ol_racnode1-swap -> ../dm-1 [root@racnode1 yum.repos.d]# ls -al /dev/mapper/ol_racnode1-swap lrwxrwxrwx 1 root root 7 Mar 15 23:00 /dev/mapper/ol_racnode1-swap -> ../dm-1 [root@racnode1 yum.repos.d]# Before extending the swap volume disable the swap: [root@racnode1 yum.repos.d]# swapoff -v /dev/mapper/ol_racnode1-swap swapoff /dev/mapper/ol_racnode1-swap [root@racnode1 yum.repos.d]# Now extend the LVM swap volume: [root@racnode1 yum.repos.d]# ...

Adding SWAP space on Oracle Linux 8.x using swap file

This article will guide you how you can add the swap space on Oracle Linux 8.x operating system. In this method we will use the swap file for adding it to the swap memory. Currently allocated swap memory – 8 GB New swap memory to be added – 32 GB [root@racnode1 ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 756G 0 756G 0% /dev tmpfs 756G 4.0K 756G 1% /dev/shm tmpfs 756G 27M 756G 1% /run tmpfs 756G 0 756G 0% /sys/fs/cgroup /dev/mapper/ol-root 100G 2.8G 98G 3% / /dev/sda2 945M 223M 658M 26% /boot /dev/sda1 488M 5.2M 483M 2% /boot/efi /dev/mapper/ol-oracle 500G 3.6G 497G 1% /oracle /dev/mapper/ol-ortrace 500G 3.6G 497G 1% /oracle/trace tmpfs 152G 0 152G 0% /run/user/0 [root@racnode1 ~]# Create swap file with 32GB size: [root@racnode1 ~]# dd if=/dev/zero of=/root/newswap bs=1M count=327...

Installation of Docker on Oracle Enterprise Linux 8

This article will provide the details for  the installation of the docker package on Oracle Enterprise Linux 8.7: Installation of Pre-Requisite packages: [root@localhost ~]# dnf install -y dnf-utils zip unzip Oracle Linux 8 BaseOS Latest (x86_64) 10 kB/s | 3.6 kB 00:00 Oracle Linux 8 BaseOS Latest (x86_64) 6.1 MB/s | 58 MB 00:09 Oracle Linux 8 Application Stream (x86_64) 12 kB/s | 3.9 kB 00:00 Oracle Linux 8 Application Stream (x86_64) 4.7 MB/s | 46 MB 00:09 Oracle Linux 8 CodeReady Builder (x86_64) - Uns 9.8 kB/s | 3.3 kB 00:00 Oracle Linux 8 CodeReady Builder (x86_64) - Uns 3.0 MB/s | 8.4 MB 00:02 Oracle Linux 8 Distro Builder (x86_64) - Unsupp 10 kB/s | 3.3 kB 00:00 Oracle Linux 8 Distro Builder (x86_64) - Unsupp 1.5 MB/s | 1.7 MB 00:01 Latest Unbreakable Enterprise Kernel Release 7 9.4 kB/s | 3.0 kB 00:00 Package zip-3.0-23.el8.x86_64 is already installed. Package unzip...