Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

Now to Create a Virtual IP also called a Floating IP:

The guide doesn’t have you add nic=eno### to this command, but it failed for me if I didn’t use it.
You can find your device number via the following command

cat /etc/sysconfig/network-scripts/ifcfg-e* | grep DEVICE

Mine is eno16777984 so this is my example command.

UPDATE : change-centos-7-eno-back-to-eth0

pcs resource create virtual_ip ocf:heartbeat:IPaddr2 ip=192.168.1.30 cidr_netmask=32 nic=eno16777984 op monitor interval=30s
pcs resource create virtual_ip ocf:heartbeat:IPaddr2 ip=192.168.1.30 cidr_netmask=32 nic=eth0 op monitor interval=30s

Make sure it started using the following command:

pcs cluster start --all 
pcs status resources
 pcs constraint location virtual_ip prefers node1
  • No labels