• 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. How to delete archives from only 1 archive destination when 2 or more are in use
  2. Apache HTTP server – most commonly used containers (special configuration directives)
  3. Understanding Cluster Fencing Policy in RedHat Virtualization (RHV)
  4. How to recreate the spfile for RAC instances where the spfile is stored in ASM
  5. ORA-01031 When Compiling A Synonym
  6. How to remove unwanted entries in /etc/shadow file
  7. Adding Users to Oracle Passwordfile (Oracle Passwordfile Authentication)
  8. Understanding Power Management in RedHat Virtualization (RHV)
  9. How to clear the buffer/pagecache (disk cache) under Linux
  10. How to disable lvmetad in CentOS/RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • qemu-system-x86_64: command not found
  • timedatectl: command not found
  • mpirun.openmpi: command not found
  • startkde: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright