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

The Geek Diary

CONCEPTS | BASICS | HOWTO

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

How to load SELinux Module For Oracleasm

By admin

Question: How to load the SELinux module for oracleasm?

When searching for the selinux oracleasm module with the locate command it may return as if the file exists:

# locate /oracleasm.pp
/etc/selinux/targeted/modules/active/modules/oracleasm.pp

However, when running the command semodule to load the oracleasm.pp module it fails:

# semodule --verbose -i /etc/selinux/targeted/modules/active/modules/oracleasm.pp
Attempting to install module '/etc/selinux/targeted/modules/active/modules/oracleasm.pp':
semodule: Failed on /etc/selinux/targeted/modules/active/modules/oracleasm.pp!
NOTE: DO NOT run and enable selinux directly on any active systems, test it first. Make sure ASM dependent services are stopped first.

By default the file “/etc/selinux/targeted/modules/active/modules/oracleasm.pp” does not exist in that path, which can be checked by performing an ls command:

# ls /etc/selinux/targeted/modules/active/modules/oracleasm.pp
ls: cannot access /etc/selinux/targeted/modules/active/modules/oracleasm.pp: No such file or directory

To create the file execute the following commands:

# cd /usr/share/selinux/targeted/
# bunzip2 /usr/share/selinux/targeted/oracleasm.pp.bz2

Load the module:

# semodule --verbose -i /usr/share/selinux/targeted/oracleasm.pp
Attempting to install module '/usr/share/selinux/targeted/oracleasm.pp':
Ok: return value of 0.
Committing changes:
Ok: transaction number 0.

Check if the module was loaded successfully:

# semodule -l |grep ora
oracleasm 1.0.0

Filed Under: ASM, Linux, oracle

Some more articles you might also be interested in …

  1. How to create partitions inside loopback device
  2. Understanding /etc/hosts file in Linux
  3. Replacing a Failed Mirror Disk in a Software RAID Array (mdadm)
  4. How to enable IPv6 on CentOS / RHEL 7
  5. “java” command does not run the JVM that has been installed
  6. How to Test Port [TCP/UDP] Connectivity from a Linux Server
  7. CentOS / RHEL 6 : How to completely remove device mapper multipath (dm-multipath)
  8. Understanding the Network interface configuration file /etc/sysconfig/network-scripts/ifcfg-eth#
  9. How to recover from deleted root entry in /etc/shadow and/or /etc/passwd files in CentOS / RHEL 6
  10. Beginners Guide to “journalctl” – How To Use Journalctl to View and Manipulate Systemd Logs

You May Also Like

Primary Sidebar

Recent Posts

  • CentOS/RHEL 8: “ACPI MEMORY OR I/O RESET_REG” Server Hung after reboot
  • How to Create a Physical Standby Database by Using SQL and RMAN Commands
  • Basics of client connectivity in Oracle Data Guard configuration
  • ORA-354 ORA-353 and ORA-312: Possible corruption in Online Redo Log File Members in a Redo Log Group
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary