Skip to main content

Posts

Showing posts with the label OEL8

Snmpd Service Status Shows "Can't find directory of RPM packages" OEL 9

 One of the oracle linux service is encountering error saying cannot file directory of the RPM packages. # systemctl status snmpd ● snmpd.service - Simple Network Management Protocol (SNMP) Daemon.      Loaded: loaded (/usr/lib/systemd/system/snmpd.service; disabled; vendor preset: disabled)      Active: active (running) since  2024-03-13 16:24:10 <Tz>; 4s ago    Main PID: 6061 (snmpd)       Tasks: 1 (limit: 10913)      Memory: 11.1M         CPU: 61ms      CGroup: /system.slice/snmpd.service              └─6061 /usr/sbin/snmpd -LS0-6d -f   Mar 13 16:11:25 <hostname> systemd[1]: Starting Simple Network Management Protocol (SNMP) Daemon.... Mar 13 16:11:25 <hostname> snmpd[6061]: Can't find directory of RPM packages Mar 13 16:11:25  <hostname...

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

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

Change Time and Timezone on Oracle Linux 8

  In this blogpost we will see how can we change the time and time zone on Oracle Enterprise Linux 8 Server Check the existing configure time and time zone  on Server: [root@OEL8-Server1 ~]# date Mon Mar 13 06:47:05 EDT 2023 [root@OEL8-Server1 ~]# timedatectl                Local time: Mon 2023-03-13 06:47:46 EDT            Universal time: Mon 2023-03-13 10:47:46 UTC                  RTC time: Mon 2023-03-13 10:47:48                 Time zone: America/New_York (EDT, -0400) System clock synchronized: no               NTP service: active           RTC in local TZ: no As you can see NTP service is active it will not allow to change time manually.   [root@OEL8-Server1 ~]# timedatectl set-time 13:48:33 Failed to set time: NTP unit is ac...

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

Configure Local Repository Oracle Enterprise Linux 8

In this blogpost we will see how we can configure local repository on Oracle Enterprise Linux 8, As you know installation of rpm packages is never been very easy when individually  (without using repository), there may be many dependencies for installation of single rpm. Hence its always a good practice to use package repository either local or public for  installation of rpm package. But in this post we will see how we can configure the local repository on the server. We must have the media/DVD to configure the local repository. - Copy media to any valid directory where you want to configure the repository - Create and Edit Local repository file and use the location where the content has been copied recently - Check the newly configure repository - Now the repository is configured an ready to use. Conclusion: Local repository configuration is simple and its helpful on servers where you cannot configure internet on the server for installatio...