Wednesday, September 29, 2010

yum to update your system kernel Unbreakable Enterprise Kernel

Oracle has released the Unbreakable Enterprise Kernel for x86_64 servers via the Oracle Public Yum Server. We can review Oracle Linux features.

Ensure that your system is running
Oracle Linux 5 Update 5 (x86_64) before installing the Unbreakable Enterprise Kernel.

But I tested on Enterprise Linux Server release 5.4. (just test ^ ^)
# cat /etc/enterprise-release
Enterprise Linux Enterprise Linux Server release 5.4 (Carthage)

# uname -a
Linux oel 2.6.18-164.el5 #1 SMP Thu Sep 3 04:15:13 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repo
--2010-09-29 11:18:45-- http://public-yum.oracle.com/public-yum-el5.repo
Resolving public-yum.oracle.com... 141.146.44.34
Connecting to public-yum.oracle.com|141.146.44.34|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2083 (2.0K) [text/plain]
Saving to: `public-yum-el5.repo'

100%[===============================================================================>] 2,083 --.-K/s in 0s

2010-09-29 11:18:46 (76.4 MB/s) - `public-yum-el5.repo' saved [2083/2083]

# vi public-yum-el5.repo
# yum install kernel
# cat /boot/grub/grub.conf
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Enterprise Linux Enterprise Linux Server (2.6.32-100.0.19.el5)
root (hd0,0)
kernel /vmlinuz-2.6.32-100.0.19.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.32-100.0.19.el5.img
title Enterprise Linux (2.6.18-164.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-164.el5.img

# reboot

# uname -a
Linux oel 2.6.32-100.0.19.el5 #1 SMP Fri Sep 17 17:51:41 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
That is on Enterprise Linux Server release 5.4, then tested on Enterprise Linux Server release 5.5
Steps:
1. Ensure that your system is running Oracle Linux 5 Update 5 (x86_64) before installing the Unbreakable Enterprise Kernel.
2. Download and install the Oracle Linux 5 repo file to your system.
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repo
3. Enable both the [el5_u5_base] and the [ol5_u5_base] repositories in the yum configuration file by changing enable=0 to enable=1 in those sections.
4. To update your system kernel to the Unbreakable Enterprise Kernel, use the following yum command:
# yum install kernel
OR To upgrade all recommended packages associated with the Unbreakable Enterprise Kernel, use the following yum command:
# yum install oracle-linux
5. Reboot your system to run the newly-installed Unbreakable Enterprise Kernel.
Start to Test on OEL5.5:
# cat /etc/enterprise-release
Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)

# uname -a
Linux oel 2.6.18-194.el5 #1 SMP Mon Mar 29 22:10:29 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repo
--2010-09-29 18:59:52-- http://public-yum.oracle.com/public-yum-el5.repo
Resolving public-yum.oracle.com... 141.146.44.34
Connecting to public-yum.oracle.com|141.146.44.34|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2083 (2.0K) [text/plain]
Saving to: `public-yum-el5.repo'

100%[===================================================================================================================>] 2,083 --.-K/s in 0s

2010-09-29 19:00:09 (90.3 MB/s) - `public-yum-el5.repo' saved [2083/2083]

# vi public-yum-el5.repo

[el5_u5_base]
name=Enterprise Linux $releasever U5 - $basearch - base
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/5/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=1

[ol5_u5_base]
name=Oracle Linux $releasever - U5 - x86_64 - base
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/5/base/x86_64/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=1

# yum install kernel
.
.
.
Complete!

# reboot
# uname -a
Linux oel 2.6.32-100.0.19.el5 #1 SMP Fri Sep 17 17:51:41 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

# yum install oracle-linux
.
.
.
Complete!
After I updated Kernel... It can mount btrfs, that is good.

Reference:
http://www.oracle.com/us/technologies/linux/025994.htm
http://public-yum.oracle.com

No comments: