AFD in an HA environment (cont.) If you use heartbeat or pacemaker there is a script in the AFD source package that does all the necessary checks and starts/stops AFD during a switch over. The script can be found in the directory script and is also just called afd. Since this script is also used for starting AFD when system boots, you have to rename this to afdha to activate it's HA features. In the case of heartbeat you would just need to issue the following command: cp scripts/afd /etc/ha.d/resource.d/afdha