星期三, 8月 30, 2017

FW: 如何切換Oracle Linux 改用redhat kernel 進行開機

會用到此方法主要是因為qlogic HBA Card在官網上面可以下載到的driverfor redhat kernel, 而客戶的作業系統又是使用免費的Oracle Linux 7 (目前還號稱免費使用) ...

Ref:
Switching Default UEK kernel to Redhat Kernel on Oracle Linux 7
This article will describe how to Switching Default UEK kernel to Redhat Kernel on Oracle Linux 7 with the following steps :
1. Original Kernel for Oracle Linux 7 will likely as below :
# uname -a
Linux localhost.localdomain 3.8.13-55.1.6.el7uek.x86_64 #2 SMP Wed Feb 11 14:18:22 PST 2015 x86_64 x86_64 x86_64 GNU/Linux
2. Grep the list of the available kernel in Oracle Linux 7. The sequence of entry will start with 0.
a) To display with command 1 :
# egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \'
Oracle Linux Server 7.1, with Linux 3.10.0-229.el7.x86_64
Oracle Linux Server 7.1, with Unbreakable Enterprise Kernel 3.8.13-55.1.6.el7uek.x86_64
Oracle Linux Server 7.1, with Linux 0-rescue-26ad0b77c2de4840ba8402282bdd9d17
b) To display with command 2 :
# grep '^menuentry' /boot/grub2/grub.cfg | cut -f 2 -d \'
Oracle Linux Server 7.1, with Linux 3.10.0-229.el7.x86_64
Oracle Linux Server 7.1, with Unbreakable Enterprise Kernel 3.8.13-55.1.6.el7uek.x86_64
Oracle Linux Server 7.1, with Linux 0-rescue-26ad0b77c2de4840ba8402282bdd9d17
3. Set entry 0 as the default kernel with this command :
# grub2-set-default 0
# grub2-mkconfig -o /etc/grub2.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-229.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-229.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.8.13-55.1.6.el7uek.x86_64
Found initrd image: /boot/initramfs-3.8.13-55.1.6.el7uek.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-26ad0b77c2de4840ba8402282bdd9d17
Found initrd image: /boot/initramfs-0-rescue-26ad0b77c2de4840ba8402282bdd9d17.img
done
4. Reboot the server :
# init 6
5. After reboot, verify that Red Hat Compatible Kernel will become the default :
# uname -a
Linux localhost.localdomain 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 04:05:24 PST 2015 x86_64 x86_64 x86_64 GNU/Linux

沒有留言:

LinkWithin-相關文件

Related Posts Plugin for WordPress, Blogger...