No binding virtualIP to a clustered node for a generic app service

Latest response

I have 2 nodes cluster as follow:
- node1: 10.20.30.100 installed RHEL 7.2 pacemaker corosync myapp /etc/init.d/LA_myapp
- node2: 10.20.30.101 installed RHEL 7.2 pacemaker corosync myapp /etc/init.d/LA_myapp
- create and configure cluster: hacluster
- create resource group: myRG
- create resources as follow:

pcs resource create cc_fs Filesystem device="/dev/ccvg/cclv1" directory="/mnt/ccstor" fstype="ext4" --group myRG
pcs resource create VirtualIP IPaddr2 ip=10.20.30.105 cidr_netmask=24 --group myRG
pcs resource create mySvc LSB:LA_myapp --group myRG
I have several functional modules which run based on tomcat, they are supposed to launch by https://node_IP/appName from internet browser.
When I create and start "myapp" above, it should register all of my app modules using https://VirtualIP/appName.

My problem is:
1. I got an unknown host name error for "VirtualIP" for registering above.
2. No bind from "VirtualIP" to the running node.
Please help me out of these trouble.

Responses

I understood I can use "VirtualIP" to connect the service which run on one of clustered node, but it does not work: can not connect.
I added this "VirtualIP" and IP address on my DNS, but no difference.

Am I supposed to use "cluster name" instead of "VirtualIP"?
any other issue on me?
Please provide me an advice.

Thanks in advance.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.