Migrating from Oracle ASM Filter Driver to Oracle ASMLib for Oracle Restart

Oracle ASM filtering is disabled starting with kernel version 5.14. To avail the filtering functionality, migrate from Oracle ASMFD to Oracle ASMLIB 3.1 in rolling mode.

Prerequisites

  • If Oracle ASM Filter Driver (Oracle ASMFD) is installed and configured for an existing Oracle ASM installation, then you must explicitly deconfigure Oracle ASMFD filtering before installing and configuring Oracle ASMLib.
  • These steps apply to Oracle Linux 8 or later version servers that are running UEK6 or kernel version 5.4.17-2136.342.1 or later.
  1. Confirm if Oracle ASMFD is configured and running:
    # asmcmd lsdsk
    Path
    AFD:DATA1
    AFD:DATA2
    The AFD in the results indicate that the disks are configured using Oracle ASMFD.
  2. Apply one-off patches for the following bugs:
    1. 37347369
    2. 37214236
    3. 37230154
    4. 37405185
  3. As the grid user, shut down the Oracle Restart stack:
    $ crsctl stop has
  4. As the root user, stop the Oracle ACFS kernel modules:
    # $ORACLE_HOME/bin/acfsload stop
  5. Deconfigure Oracle ASMFD filtering:
    # $ORACLE_HOME/bin/asmcmd afd_deconfigure
  6. Install Oracle ASMLib v3 by performing the steps in the following link:
    After installing the oracleasm-support and oracleasmlib packages, configure oracleasm using the management utility /usr/sbin/oracleasm.
  7. Run the Oracle ASM initialization script and configure Oracle ASMLib:
    # /usr/sbin/oracleasm init
    # /use/sbin/oracleasm configure -i
  8. Start the oracleasm service:
    # systemctl enable --now oracleasm
  9. As the root user, scan for Oracle ASM labeled disks:
    # oracleasm scandisks

    Note:

    Ensure that the Oracle ASM disks in /dev are owned by the asmdba group.
  10. List the Oracle ASMLib disks. This command lists the same disks as the asmcmd lsdsk that you ran in Step 1.
    # oracleasm listdisks
  11. Start the Oracle ACFS kernel modules.
    # $ORACLE_HOME/bin/acfsload start

    Note:

    This step is required even if you do not use Oracle ACFS.
  12. As the grid user, start the Oracle Restart stack.
    $ crsctl start has
  13. Confirm if Oracle ASMLib is configured and running.
    $ asmcmd lsdsk
    Path
    ORCL:DATA1
    ORCL:DATA2
    The ORCL in the results indicates that the disks are configured using Oracle ASMLib.