Pacemaker - Cluster Configuration for Vsftpd2011/06/18 |
Configure Clustering for Vsftpd. Stop Vsftpd on both Hosts.
This example shows to configure on the environment like follows.
(1) www01.srv.world ( eth0 [192.168.1.60], eth1 [10.0.0.60] ) (2) www02.srv.world ( eth0 [192.168.1.61], eth1 [10.0.0.61] )
This example uses eth0 for inter-connection and uses eth1 for service provider.
|
|
[1] |
Set Virtual IP Address first.
|
[2] | Configure Clustering. Set it on a Host. By the way, if you'd like to configure clustering for ProFTPD or Pure-FTPd, configuration is the same with follows. Simply replace "vsftpd" to "proftpd" or "pure-ftpd" on following config. |
[root@www01 ~]# crm configure crm(live)configure# primitive vsftpd lsb:vsftpd \ > op start interval="0s" timeout="60s" \ > op monitor interval="5s" timeout="20s" \ > op stop interval="0s" timeout="60s" crm(live)configure# group ftpserver vip vsftpd # create a group crm(live)configure# show # confirm settings node www01.srv.world node www02.srv.world primitive vip ocf:heartbeat:IPaddr2 \ params ip="10.0.0.100" nic="eth1" cidr_netmask="24" \ op start interval="0s" timeout="60s" \ op monitor interval="5s" timeout="20s" \ op stop interval="0s" timeout="60s" primitive vsftpd lsb:vsftpd \ op start interval="0s" timeout="60s" \ op monitor interval="5s" timeout="20s" \ op stop interval="0s" timeout="60s" group ftpserver vip vsftpd property $id="cib-bootstrap-options" \ dc-version="1.1.2-f059ec7ced7a86f18e5490b67ebf4a0b963bccfe" \ cluster-infrastructure="openais" \ expected-quorum-votes="2" \ no-quorum-policy="ignore" \ stonith-enabled="false" rsc_defaults $id="rsc-options" \ resource-stickiness="INFINITY" \ migration-threshold="1"crm(live)configure# commit # enable settings crm(live)configure# exit bye |
[3] | Make sure status with crm_mon, then Vsftpd starts on a Host. |
[root@www01 ~]# crm_mon ============ Last updated: Sun Jun 19 06:52:25 2011 Stack: openais Current DC: www01.srv.world - partition with quorum Version: 1.1.2-f059ec7ced7a86f18e5490b67ebf4a0b963bccfe 2 Nodes configured, 2 expected votes 1 Resources configured. ============ Online: [ www01.srv.world www02.srv.world ] Resource Group: ftpserver vip (ocf::heartbeat:IPaddr2): Started www01.srv.world vsftpd (lsb:vsftpd): Started www01.srv.world |
[4] | Access to Virtual IP address with FTP client, then active Host answers like follows. |
Sponsored Link |