Configuring Oracle ASM Filter Driver After Installation

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

  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 grid user, list the nodes and node roles in your cluster.
    $ $ORACLE_HOME/bin/olsnodes -a
  3. Perform the following steps, either in rolling or non-rolling mode, on each cluster node.
    1. As the root user, stop the Oracle Clusterware stack.
      # $ORACLE_HOME/bin/crsctl stop crs
    2. Configure Oracle ASMFD to filter at the node level.
      # $ORACLE_HOME/bin/asmcmd afd_configure
    3. 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'
    4. 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.

    5. 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 discovery string, then afd_scan uses the Oracle ASMFD disk discovery string value in the afd.conf file.

    6. Start the Oracle Clusterware stack on the node.
      # $ORACLE_HOME/bin/crsctl start crs
      
    7. 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 ASMFD will identify and start managing disks, including those previously managed by Oracle ASMLIB.

    See Also:

    Oracle Automatic Storage Management Administrator's Guide for information about Oracle ASMFD management commands.