Configuring Oracle ASM Filter Driver After Installation

You can install and configure Oracle ASM Filter Driver for your system after installing Oracle Grid Infrastructure for a standalone server.

  1. As the grid user, update the Oracle ASM disk discovery string to enable Oracle ASMFD to discover devices in the future.
    1. Retrieve the current value of the Oracle ASM disk discovery string.
      $ $ORACLE_HOME/bin/asmcmd dsget
      The value of disk_string in the above command is the current Oracle ASM disk discovery string value retrieved by dsget. If the disks are in the default location for the operating system environment and disk discovery string has not been set, then the disk discovery string is empty.
    2. Update the Oracle ASM disk discovery string. If the string is empty, then update the value of the disk discovery string to include the default disk location.
      $ $ORACLE_HOME/bin/asmcmd dsset 'disk_string,AFD:*'
      
  2. As the root user, stop Oracle Grid Infrastructure for a standalone server.
    # $ORACLE_HOME/bin/crsctl stop has
  3. Configure Oracle ASMFD.
    # $ORACLE_HOME/bin/asmcmd afd_configure
  4. As the grid user, verify the status of Oracle ASMFD.
    $ $ORACLE_HOME/bin/asmcmd afd_state
    ASMCMD-9526: The AFD state is 'LOADED' and filtering is 'ENABLED' on host 'myhost'
  5. As the root user, label all the Oracle ASM disks for Oracle ASMFD.
    # $ORACLE_HOME/bin/asmcmd afd_label 'label_name' 'device_path' --migrate

    The afd_label command sets a user-defined label to the Oracle ASMFD disk that you specify.

  6. Scan all the Oracle ASM disks.
    $ $ORACLE_HOME/bin/asmcmd afd_scan disk_string

    The afd_scan command scans for Oracle ASMFD disks using the discovery string that you specify. If you run the command without specifying a disk string, then afd_scan uses the Oracle ASMFD discovery disk string value in the afd.conf file.

  7. Start Oracle Grid Infrastructure for a standalone server.
    # $ORACLE_HOME/bin/crsctl start has
  8. As the grid user, set the Oracle ASMFD discovery disk string to the updated Oracle ASM disk discovery string value from Step 1.
    $ $ORACLE_HOME/bin/asmcmd afd_dsset disk_string

    After you set the Oracle ASMFD discovery disk string, Oracle ASM Filter Driver will identify and start managing disks, including those previously managed by Oracle ASMLIB.