Migrating from Oracle ASM Filter Driver to Oracle ASMLib

Oracle ASMFD is deprecated and Oracle ASM filtering is disabled starting with kernel version 5.14. You can migrate from Oracle ASMFD to Oracle ASMLib 3.1 in rolling mode to enable Oracle ASM filtering.

Prerequisites

  • If Oracle ASM Filter Driver (Oracle ASMFD) is installed and configured for an existing Oracle ASM installation, then you must explicitly disable 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 the one-off patches for the following bugs:
    1. 37347369
    2. 37214236
    3. 37230154
    4. 37405185
  3. Shut down the Oracle Clusterware stack on the local node.
    # crsctl stop crs
  4. Depending on your operating system, install the latest versions (3.1.x or later) of the oracleasmlib and oracleasm-support packages on the local node.
    # rpm -ihv oracleasm-support-3.1.x.rpm
    # rpm -ihv oracleasmlib-3.1.x.rpm

    Note:

    Oracle Unbreakable Enterprise Kernel (UEK) includes driver module, so you do not need to install kmod-oracleasm. For more information about installing the Oracle ASMLib packages, refer to Installing and Configuring Oracle ASMLib v3.
  5. Run the Oracle ASM initialization script and configure Oracle ASMLib on the local node.
    # /etc/init.d/oracleasm init
    # /etc/init.d/oracleasm configure -i
  6. To scan for Oracle ASM labeled disks, enter the following command as root on the local node.
    # /etc/init.d/oracleasm scandisks
  7. List Oracle ASMLib disks on the local node.
    # /etc/init.d/oracleasm listdisks
  8. Verify the status of the Oracle ASMLib disks on the local node.
    # /etc/init.d/oracleasm status
  9. Disable Oracle ASMFD filtering.
    # $ORACLE_HOME/bin/asmcmd afd_filter -d
  10. Start the Oracle Clusterware stack on the local node.
    # crsctl start crs
  11. Confirm if Oracle ASMLib is configured and running.
    # asmcmd lsdsk
    Path
    ORCL:DATA1
    ORCL:DATA2
    The ORCL in the results indicate that the disks are configured using Oracle ASMLib.
  12. Repeat steps 1 through 11 on all other cluster nodes.