Highly Available HP-UX Internet Services (May 2008)
that no FTP processes are running in the system in which case, the script triggers HP
ServiceGuard to perform the FTP package failover operation.
For a sample FTP monitor script, see “HP ServiceGuard Monitor Script for FTP”
(page 28).
FTP HP ServiceGuard Startup/Stop Script
The FTP package script starts and stops an FTP service depending on the command-line
option. When the FTP package script is run with the start command-line option, the
package starts the FTP service in the system. When the script is run with the stop
command-line option, the package stops the FTP service in the system.
For a sample FTP startup script, see “FTP HP ServiceGuard Startup/Stop Script”
(page 17).
Integrating HP ServiceGuard with FTP
Before integrating HP ServiceGuard with FTP, consider the following points:
• The same version of WU-FTPD is installed on all the nodes in the cluster to ensure
consistency of behavior among the respective FTP clients.
• The host lookup mechanism and configuration is consistent across all cluster nodes.
• All the cluster nodes exhibit consistency in terms of identity management so that
all the cluster nodes have the same user and group entries in the corresponding
system files.
To configuring FTP 2.6.1 with HP ServiceGuard, complete the following steps:
NOTE: Ensure that you perform these steps on all nodes in the HP ServiceGuard
cluster.
1. Create a shared volume, for example, /var/opt/ftpd, on which all FTP
configuration files must reside after HP ServiceGuard is operative. This volume
must be accessible by all nodes in the cluster.
2. To move the FTP server configuration file, /etc/ftpd/ftpaccess, to the shared
volume, enter the following command:
mv /etc/ftpd/ftpaccess /var/opt/ftpd/
3. To create a symbolic link to the shared volume file from the default location of the
ftpaccess file (/etc/ftpd/), enter the following command:
ln -s /var/opt/ftpd/ftpaccess /etc/ftpd/ftpaccess
4. Move other FTP server-related configuration files in the /etc/ftpd directory to
the shared volume.
Configuring FTP with HP ServiceGuard 17