Redhat Enterprise 5.6 Kernel
It is hard to be the Newbie on the block!
I have a Redhat Enterprise 5.6 server. I have to use 5.6 because the Software that runs on it requires that version. I recently upgraded the Memory from 32GB to 96GB and the change in memory is not recognized by Redhat even though when I look up 5.6 it is supposed to be to support up to 1TB. Then I find out since I have a XEN kernel 2.6ish that memory above 32GB will not be recognized. From what I understand I only need the XEN kernel if I am running a virtual machine which I am not and I am not sure why I have the XEN kernel.
The server is used for single application with a sql database. What can I do to utilized the additional memory?
Do I change the kernel? Which kernel? how?
or
Can I allocate the memory to a VM that will only get utilized by that application?
Responses
If you are running on bare-metal, you can swap in the regular kernel in /boot/grub/grub.conf. It will require a reboot.
1- add a new entry in grub.conf for the bare-metal kernel
2- test new entry is what you want
3- set as default
Format for new entry in grub.conf can be found at: https://access.redhat.com/site/documentation//en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/s1-kernel-boot-loader.html
Use the same root disk as for the current entry
Use "kernel /vmlinuz.x.y"
Use "initrd /initrd.x.y"
No need to run a VM.
I would make sure that you actually have the correct kernel installed
# for KERNEL in `rpm -qa kernel | sed 's/kernel-//g'`; do grep $KERNEL /boot/grub/grub.conf; done
title Red Hat Enterprise Linux Server (2.6.18-348.6.1.el5)
kernel /vmlinuz-2.6.18-348.6.1.el5 ro root=/dev/VolGroup00/LogVol01 rhgb quiet
initrd /initrd-2.6.18-348.6.1.el5.img
title Red Hat Enterprise Linux Server (2.6.18-348.el5)
kernel /vmlinuz-2.6.18-348.el5 ro root=/dev/VolGroup00/LogVol01 rhgb quiet
initrd /initrd-2.6.18-348.el5.img
Then, I would do one of the following (probably leaning towards option b. in case things didn't work out, you technically haven't changed anything).
a.) update your /boot/grub/grub.conf to boot to a non-XEN kernel and reboot.
b.) reboot your system and select the non-XEN kernel
# yum remove <xen kernel>
# rpm -qa | grep -i xen
The last step will update /boot/grub/grub.conf for you, make sure that the update that it made now points to the correct kernel.
A final step that I would take (but I invite others to provide feedback)
Add exclude=kernel-xen* to /etc/yum.conf
I agree with Jan Gerritt that this should not be happening, but I have seen quite a few threads lately regarding XEN showing up unexpectedly.
James,
Blocking yum from install kernel-xen is not my concern.
Manually editing grub.conf is a concern to me, for the next kernel update or kernel erase may undo the manual change or get corrupted.
The later most of the time if someone removed the title for old kernel releases/versions so the post script in the rpm fails.
Kind regards,
Jan Gerrit
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
