Configuring Oracle ASM Filter Driver During Installation

You can optionally enable automated installation and configuration of Oracle ASM Filter Driver (Oracle ASMFD) for your system during the installation of Oracle Grid Infrastructure.

If you do not use udev on the Oracle Grid Infrastructure server, then you can provision disks for Oracle ASMFD before the installer is launched. This procedure must be performed after the Oracle Grid Infrastructure installation zip files have been unzipped in the Oracle Grid Infrastructure home, but before you enable the Configure ASM Filter Driver check box during the installation process when the setup script is run.
  1. As the root user, set the environment variable $ORACLE_HOME to the location of the Grid home and the environment variable $ORACLE_BASE to a temporary location.
    $ su root
    # export ORACLE_HOME=/u01/app/oracle/product/23.0.0/grid
    # export ORACLE_BASE=/tmp
    The ORACLE_BASE environment variable is set to a temporary location to avoid creating diagnostic or trace files in the Grid home before the Oracle Grid Infrastructure installation.
  2. Add the ORACLE_HOME/bin directory to the PATH environment variable.
    # export PATH=$ORACLE_HOME/bin:$PATH
  3. Ensure that the disk devices that you are using for Oracle ASMFD are owned by the user performing the Oracle Grid Infrastructure installation.
    # chown grid:asmdba /dev/sda1
    # ls -l /dev/sda1
       brw-rw---- 1 grid asmdba 8, 49 Dec  8 04:49  /dev/sda1

    Alternatively, you can change disk ownership to the root user and the oinstall group, and assign read and write permissions to the user performing the Oracle Grid Infrastructure installation.

  4. Use the ASMCMD afd_label command to provision disk devices for use with Oracle ASM Filter Driver.
    # $ORACLE_HOME/bin/asmcmd afd_label DATA1 /dev/sda1 --init
  5. Use the ASMCMD afd_lslbl command to verify if the device has been marked for use with Oracle ASMFD.
    # $ORACLE_HOME/bin/asmcmd afd_lslbl /dev/sda1
  6. Unset the ORACLE_BASE environment variable after you finish provisioning disks for Oracle ASMFD.
    # unset ORACLE_BASE
  7. On the Create ASM Disk Group page during the Oracle Grid Infrastructure installation, select the Configure ASM Filter Driver check box to enable configuration of Oracle ASM Filter Driver, and then add your provisioned disks to the initial disk group (typically named DATA).

    Note:

    If the disks are not listed on the Create ASM Disk Group page when you use the default discovery string /dev/sd*, then click Change Discovery Path and enter your specific disk discovery string.