Oracle

From DikapediaV2
Revision as of 14:18, 11 September 2024 by Ardika Sulistija (talk | contribs) (Created page with "====Download Locations==== ---- * <b>ISOs</b> can be found here:https://yum.oracle.com/oracle-linux-isos.html * <b>Kernels</b> can be found in places like these, just google if you can't find what you're looking for: https://yum.oracle.com/repo/OracleLinux/OL7/UEKR6/x86_64/index.html</br> https://yum.oracle.com/repo/OracleLinux/OL7/UEKR5/archive/x86_64/index.html ====How to install kernel-devel in Oracle Linux 7==== ---- [+] Testing in my own environment. Oracl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Download Locations


https://yum.oracle.com/repo/OracleLinux/OL7/UEKR6/x86_64/index.html
https://yum.oracle.com/repo/OracleLinux/OL7/UEKR5/archive/x86_64/index.html


How to install kernel-devel in Oracle Linux 7


[+] Testing in my own environment.

     Oracle 7 - 3.10.0-1160.80.1.0.1.el7.x86_64
       * Agent installation with --install-boot-driver was successful. Replicated until CDP.  `ce_disable_rmmod`  was indeed Y. 


 Now testing on attempting to test on the same kernel as the customer's. (Used Oracle Linux 7.9 ISO). 
 1) wget https://yum.oracle.com/repo/OracleLinux/OL7/UEKR5/x86_64/getPackage/kernel-uek-4.14.35-2047.517.3.el7uek.x86_64.rpm
 2) rpm -i kernel-uek-4.14.35-2047.517.3.el7uek.x86_64.rpm
 3) reboot
 4) Confirmed, it booted into the correct kernel:
     uname -r
     4.14.35-2047.517.3.el7uek.x86_64
 5) Installed the ce agent using --install-boot-driver
     sudo python ./installer_linux.py -t F8E3-5544-5E07-B3F2-A7A3-1A8D-DF3C-54B3-BDA9-6330-C8AA-2CC4-6E59-428E-294B-397C --install-boot-driver --compile  --no-prompt
 6) Keep failing to install. In my cloudendure.log, I see "kernel development package for '4.14.35-2047.517.3.el7uek.x86_64' are missing from repositories. 
   But in the customer's cloudendure.log, they don't have that either, but they were able to install the agent. 
   Tried running: `sudo yum install kernel-uek-devel-$(uname -r)`, no package available. I can only find the kernel-uek-devel package for another kernel (kernel-uek-devel-4.14.35-1818.1.x86_64.rpm  ). 
   yumdownloader kernel-uek-devel-4.14.35-2047.517.3.el7uek.x86_64 # THIS WORKED!!
   yum -y install libdtrace-ctf # This is a dependency to install kernel-uek-devel
   rpm -i kernel-uek-devel-4.14.35-2047.517.3.el7uek.x86_64.rpm
   
         ->>>> This helped: https://sites.google.com/a/orabuntu-lxc.com/brandydandyoracle/oracle-linux-uek-kernel/getting-kernel-headers-for-oracle-linux-uek-kernels


[+] rpm -qi kernel-uek-4.14.35-2047.517.3.el7uek.x86_64.rpm

   Build Date: Wed 07 Sep


Can also find the kernel-uek-devel rpm files from here: https://yum.oracle.com/repo/OracleLinux/OL7/UEKR5/archive/x86_64/index.html


Setting Up Oracle 8 and DRS


1) Spin up Oracle 8 linux.


2) Set device configuration (Optional: with same LVM setup).


3) Set up steps: - turned networking on (via gui if you installed with gui). Confirmed ping 8.8.8.8 works. - edit /etc/resolv.conf with the following and confirmed ping google.com works:

   nameserver 8.8.8.8

4) Update kernel to kernel-uek-5.4.17-2136.321 and install gcc:

   # yum -y install gcc
   # yum -y update
   # sudo reboot

5) install DRS agent:

   $ wget -O ./aws-replication-installer-init https://aws-elastic-disaster-recovery-us-east-1.s3.us-east-1.amazonaws.com/latest/linux/aws-replication-installer-init
   $ chmod +x aws-replication-installer-init; sudo ./aws-replication-installer-init