Create High-Available FTP Server with Pacemaker

Notes

First read Installing Pacemaker and Corosync, Create High-Available DRBD Device with Pacemaker and Create High-Available NFS Server with Pacemaker

Installation

Create a ssl certificate for tls connections

Configuration





Configure some parameters

Remove UnixAuthentication method

Activate PureDB authentification

Create a user, needed for our pure-ftpd virtual users

Edit init script to make it lsb compatible and add this at line 106

Start pure-ftpd for testing

Stop pure-ftpd and remove from init.d

Integration in Pacemaker

Use the Cluster Resource Manager tool to manage cluster resources on lb1 or lb2

If You have following the tutorials Installing Pacemaker and Corosync, Create High-Available DRBD Device with Pacemaker and Create High-Available NFS Server with Pacemaker You should have this status

Go into the configuration section

Configure resource

Update the created group services, You need to type edit on the configuration section and add resFTP manualy, I don’t find a way to alter the group from crm command line.

Commit changes

Exit configuration section

Show status