• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Archives for July 2019

“yum clean all” not clearing yum repository cache in CentOS/RHEL/OEL

By admin

The Problem "Yum clean all" not clearing the yum cache information under /var/cache/yum for orcle Linux server which use Oracle public yum repository or local yum repository. # yum repolist Loaded plugins: refresh-packagekit, security, ulninfo public_ol6_UEK_latest | 1.2 kB 00:00 public_ol6_UEK_latest/primary | 26 MB 00:04 public_ol6_UEK_latest 554/554 public_ol6_latest | 1.4 kB 00:00 public_ol6_latest/primary | 58 MB 00:04 public_ol6_latest 36051/36051 repo id repo name … [Read more...] about “yum clean all” not clearing yum repository cache in CentOS/RHEL/OEL

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux, OEL 6, OEL 7

How To Enable PHP 7.0 And httpd24 On Oracle Linux 7

By admin

PHP7 is available and supported on OL7. The YUM distribution channel must be manually enabled for the RPM packages to be available: 1. Edit /etc/yum.repos.d/public-yum-ol7.repo file and make sure you enable "ol7_software_collections" repo. [ol7_software_collections] name=Software Collection Library release 3.0 packages for Oracle Linux 7 … [Read more...] about How To Enable PHP 7.0 And httpd24 On Oracle Linux 7

Filed Under: CentOS/RHEL 7, Linux, OEL 7

CentOS/RHEL: How to find the package with a missing file using YUM

By admin

Question: How to find the package with a missing file in the system using YUM? This how-to is also applicable when the file is not missing and is already installed, but for some reason, it is required to know the package that provides it. The YUM package manager tool uses repositories to retrieve information and download packages. The repositories configurations are at /etc/yum.repos.d/*.repo files and in these files it can be multiple repositories enabled and others disabled. 1. The sub … [Read more...] about CentOS/RHEL: How to find the package with a missing file using YUM

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux

How to Access Docker Container’s Network Namespace from Host

By admin

This post is to illustrate how to access the docker container's network namespace. 1. Identify the docker container id you want to access and run below command as root on host. # docker ps 2. Get docker container's PID: # pid=$(docker inspect -f '{{.State.Pid}}' ${container_id}) 3. Create netns directory: # mkdir -p /var/run/netns/ 4. Create the name space softlink: # ln -sfT /proc/$pid/ns/net /var/run/netns/[container_id] 5. Run ip netns command to access this name … [Read more...] about How to Access Docker Container’s Network Namespace from Host

Filed Under: DevOps, Docker

How To Change The Time Zone For A Docker Container

By admin

The goal of this post is to set up the timezone on the container to match the same timezone on the Docker server, this will allow users to see the same time in both instances (Docker Server and Container). Most of the time Containers do not use the same time as the Docker server, this post will show how to configure this. This is how this looks like before making the changes. Container Time: # docker exec 15c0c99b5c65 date Wed Aug 23 15:40:24 UTC 2019 Docker Server Time: # date Wed … [Read more...] about How To Change The Time Zone For A Docker Container

Filed Under: DevOps, Docker

Understanding Ksplice Effective Kernel Version

By admin

This post will explain the meaning behind the output of the "ksplice kernel uname" (Ksplice Enhanced client) or "uptrack-uname" (Ksplice Uptrack client) command and how to interpret Ksplice's effective kernel version string. The effective kernel version that is reported by Ksplice when running the command "ksplice kernel uname -r" reflects the security position of the kernel that is running based on the patches that have been applied by Ksplice. This effective kernel version usually differs … [Read more...] about Understanding Ksplice Effective Kernel Version

Filed Under: Linux, OEL 6, OEL 7

XFS Filesystem Gets Mounted As Readonly (CentOS/RHEL)

By admin

The Problem Command 'df' shows statistics but 'ls -ld' fails below: # df ... /dev/mapper/vgapp-appsvol 419221508 15095588 404125920 4% /lapps/app # ls -l /lapps/apps ls: cannot access /lapps/app: Input/output error The Solution Disk failure cases input/output operation stopped, so filesystem is re-mounted as read-only. This is an expected behavior of the kernel to mount a filesystem as read-only to avoid further file system corruption leading to inconsistencies, whenever … [Read more...] about XFS Filesystem Gets Mounted As Readonly (CentOS/RHEL)

Filed Under: CentOS/RHEL 5, CentOS/RHEL 6

How To Create a Local Yum Repository for MySQL Enterprise Packages

By admin

1. Obtaining the yum repo tarball 1. Log on to support.oracle.com using your Oracle SSO ID. 2. Click on the "Patches & Updates" tab. 3. Click the "Product or Family (Advanced)" button to search by product. 4. Type "MySQL Server" for the Product. 5. Select the desired version in the "Release" pulldown. 6. Select "Linux x86-64" in the "Platform" pulldown. 7. Select "Description" in the first "and" pulldown under "Platform". 8. Select "contains" in the search type … [Read more...] about How To Create a Local Yum Repository for MySQL Enterprise Packages

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux, mysql, MySQL Cluster

How to Check the Size of the Yum Channels in Oracle Linux

By admin

Question: How to find out how large a yum channel repository is, to know how much data the channel will sync to a local yum repository? To see the actual size of the repository use either the "yum repolist -v" or "yum repoinfo" command. 1. Example for checking the size of latest OL7 yum channel # yum repoinfo ol7_latest Loaded plugins: langpacks, ulninfo Repo-id : ol7_latest/x86_64 Repo-name : Oracle Linux 7Server Latest (x86_64) Repo-status : enabled Repo-updated : Fri Jan 25 … [Read more...] about How to Check the Size of the Yum Channels in Oracle Linux

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux, OEL 6, OEL 7

Yum Fails with “Error: database disk image is malformed” in /var/log/messages

By admin

The Problem Unable to execute any command related to yum and below error messages found in /var/log/messages file. For example: # yum update Loaded plugins: aliases, changelog, downloadonly, kabi, presto, refresh-packagekit, security, tmprepo, verify, versionlock Loading support for kernel ABI Setting up Install Process Ol6_latest | 3.0 kB 00:00 Ol6_latest/primary_db | 78 MB 00:10 [Errno 2] No such file or directory: '/var/cache/yum/x86_64/6Server/Ol6_latest/primary.sqlite.bz2' Loaded … [Read more...] about Yum Fails with “Error: database disk image is malformed” in /var/log/messages

Filed Under: Linux

Next Page »

Primary Sidebar

Recent Posts

  • How to disable ICMP redirects on CentOS/RHEL
  • What are Oracle Key Vault Roles
  • What Is Oracle Key Vault
  • Auditing with Oracle Database Vault Reports
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary