Migrating from Oracle ASM Filter Driver to Oracle ASMLib for Oracle Restart
Oracle ASM filtering is disabled starting with Linux kernel version 5.14. To continue using filtering, migrate from Oracle ASM Filter Driver (Oracle ASMFD) to Oracle ASMLib 3.1 in rolling mode.
Prerequisites
- If 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.
- Use this procedure on Oracle Linux 8 or later servers running UEK6 (kernel version
5.4.17-2136.342.1or later). - If the Oracle ASM disk group attribute
compatible.rdbmsis lower than 12.2.0.1.0, then setcompatible.rdbmsto 12.2.0.1.0 or higher (preferred), or apply one-off patch for bug 39030808.
- Confirm if Oracle ASMFD is configured and running:
# asmcmd lsdsk Path AFD:DATA1 AFD:DATA2The
AFDprefix in the results indicates that the disks are configured using Oracle ASMFD. Apply the one-off patches for the following bugs to the specified Oracle homes:
- 37347369 (Oracle Grid Infrastructure home)
- 37405185 (Oracle Grid Infrastructure home)
- 37230154 (Oracle Grid Infrastructure home and Oracle Database home)
- 39030808 (Oracle Grid Infrastructure home; required only if
compatible.rdbmsis lower than 12.2.0.1.0 and you cannot set it to a higher release)
As the
griduser, shut down the Oracle Restart stack:$ crsctl stop hasAs the
rootuser, stop the Oracle ACFS kernel modules:# $ORACLE_HOME/bin/acfsload stopDeconfigure Oracle ASMFD filtering:
# $ORACLE_HOME/bin/asmcmd afd_deconfigure- Install Oracle ASMLib v3 by performing the steps in the following link:
https://docs.oracle.com/en/operating-systems/oracle-linux/asmlib/asmlib-InstallingASMLib.html
After installing the
oracleasm-supportandoracleasmlibpackages, configureoracleasmusing the management utility/usr/sbin/oracleasm. Run the Oracle ASM initialization script and configure Oracle ASMLib:
# /usr/sbin/oracleasm init # /use/sbin/oracleasm configure -iStart the Oracle ASMLib service.
# systemctl enable --now oracleasmAs the
rootuser, scan for Oracle ASMLib-labeled disks:# oracleasm scandisksNote:
Ensure that the Oracle ASM disks in
/devare owned by theasmdbagroup.List the Oracle ASMLib disks.
# oracleasm listdisksNote:
The disk list must match the disk list from Step 1.
Start the Oracle ACFS kernel modules.
# $ORACLE_HOME/bin/acfsload startNote:
Run this step even if you do not use Oracle ACFS.
As the
griduser, start the Oracle Restart stack.$ crsctl start has- Confirm if Oracle ASMLib is configured and running.
$ asmcmd lsdsk Path ORCL:DATA1 ORCL:DATA2The
ORCLprefix in the results indicates that the disks are configured using Oracle ASMLib.
Related Topics