• 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 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 Drop Undo Tablespace in Oracle Database
  2. Oracle RMAN 11g New Feature – MultiSection Backups
  3. How To Remove Disk from a LVM Volume Group
  4. feedreader: command not found
  5. restorecon Command Examples in Linux
  6. UNIX / Linux : How to lock or disable an user account
  7. How to Count lines in a file in UNIX/Linux
  8. Oracle Data Guard Security Enhancement – SYSDG Administration Privilege
  9. Unable to start Nagios Service (CentOS/RHEL)
  10. Active Directory Users Unable to Login via SSH using SSSD and Getting “Permission Denied, Please Try Again” [CentOS/RHEL]

You May Also Like

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright