Table of Contents Previous Next


3 Installing and Configuring Failover Manager : 3.6 Using Failover Manager with Virtual IP Addresses

Failover Manager uses the efm_address script to assign or release a virtual IP address.
# efm_address add4 interface_name IPv4_addr/prefix
# efm_address add6 interface_name IPv6_addr/prefix
# efm_address del interface_name IP_address/prefix
interface_name matches the name specified in the virtualIp.interface property in the cluster properties file.
IPv4_addr or IPv6_addr matches the name specified in the virtualIp property in the cluster properties file.
prefix matches the value specified in the virtualIp.prefix property in the cluster properties file.
You must invoke the efm_address script as the root user. The efm user is created during the installation, and is granted privileges in the sudoers file to run the efm_address script. For more information about the sudoers file, see Section 3.4, Extending Failover Manager Permissions.
Please note: If a VIP address (or any address other than the bind.address) is assigned to a node, the operating system can choose the source address used when contacting the database. Be sure that you modify the pg_hba.conf file on all monitored databases to allow contact from all addresses within your replication scenario.
Please note: the virtualIp.prefix specifies the number of significant bits in the virtual Ip address.
2. Run the efm_address add4 command on the Master node to assign the VIP and then confirm with ip address:
4. Use the efm_address del command to release the address on the master node and confirm the node has been released with ip address:
Please note: the network interface used for the VIP does not have to be the same interface used for the Failover Manager agent's bind.address value. The master agent will drop the VIP as needed during a failover, and Failover Manager will verify that the VIP is no longer available before promoting a standby. A failure of the bind address network will lead to master isolation and failover.

3 Installing and Configuring Failover Manager : 3.6 Using Failover Manager with Virtual IP Addresses

Table of Contents Previous Next