• 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. ORA-14652: reference partitioning foreign key is not supported
  2. ip Command Examples to Manage Networking in Linux
  3. How to Use Startup, Shutdown, and Alter Database commands in Oracle 12c
  4. How to Check if any of the RPM files were tampered with
  5. How to create an XFS Filesystem
  6. 6 Useful journalctl Command Examples in CentOS / RHEL 7 (Cheat Sheet)
  7. CentOS / RHEL 7 : How to enable or disable automatic updates (via packagekit)
  8. Oracle database – How to create pfile or spfile using the current parameters
  9. How to Use Udev Rules to Create oracleasm Disks in CentOS/RHEL 8
  10. How to Extend the Last Existing Filesystem Partition with Parted

You May Also Like

Primary Sidebar

Recent Posts

  • named Command Examples in Linux
  • namcap: command not found
  • namcap Command Examples in Linux
  • mycli: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright