How to Install and Configure ASM Filter Driver -- For Oracle Database
From Oracle 12.1.0.2 Start , have access to asmfd To replace udev Under the rules asm Disk device binding , At the same time, he also has the ability to filter illegal IO Characteristics of operation .
Check that the operating system version supports ASMFD, You can use the following code :
acfsdriverstate -orahome $ORACLE_HOME supported
Step 1> Stop Crs
Step 2> Configure AFD (ASM Filter Driver)
asmcmd afd_configure
Step 3> Configure Disk Discovery for AFD
Modify the below mentioned files as shown
cat /etc/afd.conf
afd_diskstring='/dev/xvd*'
afd_filtering=enable
cat /etc/oracleafd.conf
afd_diskstring='/dev/xvd*'
afd_filtering=enable
At this point AFD is configured you can verify the status as below
asmcmd afd_state
ASMCMD-9526: The AFD state is 'LOADED' and filtering is 'ENABLED' on host 'wdtest05'
I would recommend to restart acfs before you proceed
acfsload stop
acfsload start
lsmod | grep acfs
Step5> Label the Disks using AFD to be used by ASM
#asmcmd afd_label DATA01 /dev/xvhg
#asmcmd afd_label FRA01 /dev/xvhh
#asmcmd afd_label REDO01 /dev/xvhi
#asmcmd afd_lsdsk
Known Issue 1 )
AFD: AFD Is Not Loaded Automatically After Node Reboot Due To Incorrect Dependencies (Doc ID 2724726.1)
Bug 31771370 - INCORRECT OHASD/AFD SERVICE DEPENDENCIES AT OS LEVEL AFTER OS UPDATE TO LINUX 7.8 AFFECTING AFD AND/OR CLUSTERWARE STARTUP
Solution we did was to rescan afd_scan
. oraenv
+ASM4
crsctl stop crs -f
asmcmd afd_state
acfsload stop # stop acfs driver stack
afdload stop # stop acfsd driver
asmcmd afd_scan # scan the devices
acfsload start # start acfs driver stack
asmcmd afd_lsdsk # list asm disks
asmcmd afd_filter -e # enable ASM filter
asmcmd afd_state
crsctl start crs -wait # start crs
$GRID_HOME/bin/afdload start # start acfsd driver
/usr/bin/afdboot -scandisk
$GRID_HOME/bin/crsctl stop crs -f
$GRID_HOME/bin/crsctl start crs
We same issue was faced after server migration we also executed below before enable ASM filter
asmcmd afd_configure
Comments
Post a Comment