RHEL 7 grub modification

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

RHEL 7 grub modification

Post by cah »

In order to disable I/O schedule in RHEL, the following steps need to be followed:

1. Append "elevator=noop" to the end of "GRUB_CMDLINE_LINUX" line in /etc/default/grub.

Code: Select all

GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=rootvg/LogVol00 rd.lvm.lv=rootvg/
LogVol01 rhgb quiet audit=1 elevator=noop"
2. Regenerate the "grub.cfg" file

Code: Select all

# grub2-mkconfig -o /boot/grub2/grub.cfg
4. After rebooting the server, check if the change is working as expected.

Code: Select all

# cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.10.0-957.10.1.el7.x86_64 root=/dev/mapper/rootvg-LogVol00 ro crashkernel=auto rd.lvm.lv=rootvg/LogVol00 rd.lvm.lv=rootvg/LogVol01 rhgb quiet audit=1 elevator=noop
CAH, The Great
Post Reply