• 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

Oracle Linux

How to rename a KVM VM with virsh

By admin

The syntax is to rename a KVM VM with virsh is as follows: # virsh domrename {domain} {new-name} Let's see an example of renaming a VM using virsh. 1. To rename VM from serverA to serverB, first shutdown the VM: # virsh shutdown serverA 2. Now to rename a VM, run: # virsh domrename serverA serverB Domain successfully renamed 3. To start the VM/domain: # virsh start serverB Rename KVM domain with virsh and XML 1. First get domain information in XML and save it to a new … [Read more...] about How to rename a KVM VM with virsh

Filed Under: CentOS/RHEL, Linux, Oracle Linux

How to Rebuild GRUB on MSDOS Partition Type in CentOS/RHEL/OEL 7

By admin

Question: How to Rebuild Grub on Linux servers with MSDOS Partition type. (proc) (hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) 1. Execute the following commands in Grub prompt to set the root device and to load the boot image and initialize boot loader. > set root=(hd0,msdos1) > linux16 /vmlinuz-3.10.0-327.el7.x86_64 root=/dev/sda5 > initrd16 /initramfs-3.10.0-327.el7.x86_64.img Then boot the server. 2. Once the server boots up, rebuild the Grub config file. You can edit … [Read more...] about How to Rebuild GRUB on MSDOS Partition Type in CentOS/RHEL/OEL 7

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

How to configure EPEL repository in OEL 7

By admin

Question: How to install/get packages from EPEL Repository on OEL 7? 1. Create a repo file like /etc/yum/repos.d/epel-yum-ol7.repo. For example: # cat /etc/yum.repos.d/epel-yum-ol7.repo [ol7_epel] name=Oracle Linux $releasever EPEL ($basearch) baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/developer_EPEL/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck=1 enabled=1 2. And then run "yum repolist" command to see if repository is in there. # yum … [Read more...] about How to configure EPEL repository in OEL 7

Filed Under: Linux, OEL 7

“The requested URL returned error: 403 Forbidden” – yum update error

By admin

The Problem CentOS/RHEL/OEL 6 server's configured to use local yum server for updates are getting following errors at time of yum update. Downloading Packages: (1/5): kernel-2.6.32-754.12.1.el6.x86_64.rpm | 32 MB 00:01 (2/5): kernel-headers-2.6.32-754.12.1.el6.x86_64.rpm | 4.6 MB 00:00 (3/5): kernel-uek-4.1.12-124.26.10.el6uek.x86_64.rpm | 42 MB 00:00 (4/5): kernel-uek-firmware-4.1.12-124.26.10.el6uek.noarch.rpm | 2.5 MB … [Read more...] about “The requested URL returned error: 403 Forbidden” – yum update error

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

“Metadata File Does Not Match Checksum” Issue When Yum Installs or Updates Package

By admin

The Problem Scenario 1: The user is unable to perform "yum install oracle-rdbms-server-11gR2-preinstall". The yum tries to download the latest metadata ("http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/repodata/primary.xml.gz" ) and rejects it with the error message "[Errno -1] Metadata file does not match checksum". Upon this, yum tries the next mirror where it encounters the same error and goes to the next mirror and so on until it have tried all mirrors and ends with … [Read more...] about “Metadata File Does Not Match Checksum” Issue When Yum Installs or Updates Package

Filed Under: Linux, OEL 6

How to install/get packages from Oracle EPEL Repository on OEL 7

By admin

Question: How to install/get packages from Oracle EPEL Repository on OL7? 1. Create a repo file like /etc/yum/repos.d/epel-yum-ol7.repo. For example: # cat /etc/yum.repos.d/epel-yum-ol7.repo [ol7_epel] name=Oracle Linux $releasever EPEL ($basearch) baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/developer_EPEL/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck=1 enabled=1 2. And then run "yum repolist" command to see if repository is in there. # yum … [Read more...] about How to install/get packages from Oracle EPEL Repository on OEL 7

Filed Under: Linux, OEL 7

“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

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

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

Next Page »

Primary Sidebar

Recent Posts

  • Oracle Database – Configuring Secure Application Roles
  • Extend rule sets by using factors in Oracle Database Vault
  • What are Command Rules in oracle Database
  • Using Rule Sets in Oracle Database Vault
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary