• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Disable os-prober in CentOS/RHEL 7

by admin

What is os-prober

The os-prober package detects all operating systems available on the machine and returns the results in a generic machine-readable format. Sometimes os-prober may cause problems when probing some special disks (Ex: Oracle ASM disks). This post describes how to disable os-prober.

Disabling os-prober

os-prober is invoked by the command grub2-mkconfig when generating a new GRUB configuration file. Running grub update on a busy Oracle ASM LUNS with OS probe results in timeouts on ASM disks. You would see below errors in oracle trace files:

ORA-15080: synchronous I/O operation failed to write block 567864873 of disk 6 in >disk group REDO
ORA-27061: waiting for async I/Os failed
Linux-x86_64 Error: 1: Operation not permitted

To disable os-prober:

1. The variable GRUB_DISABLE_OS_PROBER in the file /etc/default/grub should be set to true. For example:

# vi /etc/default/grub
GRUB_DISABLE_OS_PROBER=true

2. After the modification of /etc/default/grub, the GRUB configuration should be regenerated.

– On BIOS based systems:

# grub2-mkconfig -o /boot/grub2/grub.cfg

– On UEFI based systems:

# grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg

Conclusion

From the grub info page regarding the behavior of the GRUB_DISABLE_OS_PROBER=true option:

'GRUB_DISABLE_OS_PROBER'
     Normally, 'grub-mkconfig' will try to use the external 'os-prober'
     program, if installed, to discover other operating systems
     installed on the same system and generate appropriate menu entries
     for them.  Set this option to 'true' to disable this.

The command grub2-mkconfig scans all disks presented to the system when making the grub.cfg. If the system has a large number of disks this can take quite a while and the system will appear to hang. So it is advised to disable it when you have a busy oracle database system with a larger number of ASM disks.

Filed Under: ASM, CentOS/RHEL, CentOS/RHEL 7, oracle

Some more articles you might also be interested in …

  1. CentOS/RHEL: How to find the package with a missing file using YUM
  2. How to disable ICMP redirects on CentOS/RHEL
  3. List of SELinux Utilities
  4. Beginners Guide to Linux Software Management with RPM
  5. How to remove bonding Network configuration in CentOS/RHEL
  6. Create Password file for database in ASM Diskgroup – Oracle 12c RAC only
  7. Oracle Database 12c New Feature: SYSRAC administrative privilege
  8. Oracle Database 12c2 : CPU_COUNT is Wrong
  9. How to run ssh on multiple ports
  10. Cron Script does not Execute as Expected from crontab – Troubleshoot

You May Also Like

Primary Sidebar

Recent Posts

  • “az storage blob” Command Examples (Manage blob storage containers and objects in Azure)
  • “az storage account” Command Examples (Manage storage accounts in Azure)
  • “az sshkey” Command Examples (Manage ssh public keys with virtual machines)
  • “az redis” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright