Uninstall/ Upgrade CTE with active ASMFD Setup
For an Active ASMFD Standalone Setup
- 
Shutdown all databases running on guarded devices.
 - 
Shutdown the CRS and ACFS, type:
crsctl stop resource -all crsctl stop has afdload stop - 
Perform CTE maintenance, uninstall or upgrade.
 - 
Restart ACFS and CRS, type:
afdload start crsctl start has crsctl start resource –all - 
Restart related databases.
 
For an Active ASMFD RAC Setup
To perform CTE maintenance on all ASMFD RAC nodes in a cluster:
- 
Shutdown all databases running on guarded devices.
 - 
Shutdown CRS, ACFS, and AFD on all nodes, type:
$GRID_HOME/bin/crsctl stop cluster -all $GRID_HOME/bin/acfsload stop cluster -all $GRID_HOME/bin/afdload stop cluster –all - 
Perform CTE maintenance, uninstall, or upgrade on all targeted RAC nodes.
 - 
Restart AFD, ACFS, and CRS on all nodes, type:
$GRID_HOME/bin/afdload start cluster -all $GRID_HOME/bin/acfsload start cluster -all $GRID_HOME/bin/crsctl start cluster –all - 
Restart related databases.
 
To perform CTE maintenance on a ASMFD RAC cluster in a rolling fashion:
- 
Shutdown all instances running on guarded devices on the targeted RAC node only.
 - 
Shutdown CRS, ACFS, and AFD on the targeted RAC node only. Type:
$GRID_HOME/bin/crsctl stop has $GRID_HOME/bin/acfsload stop $GRID_HOME/bin/afdload stop - 
Perform CTE maintenance, uninstall, or upgrade on the targeted RAC node only.
 - 
Restart AFD, ACFS, and CRS on a targeted RAC node only, type:
$GRID_HOME/bin/afdload start $GRID_HOME/bin/acfsload start $GRID_HOME/bin/crsctl start has - 
Restart related instances on the targeted RAC node.
 
Note
If AFD fails to stop, try the following OS command:
modprobe -r oracleafd