Skip to main content

Posts

Showing posts from March, 2023

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