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 replaced all of host name with "VirtualIP" in my application "configuration.xml".
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 by my ADMIN module which should be connected by "VirtualIP/Admin".
Issue:
1. I got an unknown host name error for "VirtualIP" to connect to the ADMIN module for registering.
2. No bind from "VirtualIP" to the running node, I guess.
3. from resource group, two resource are with OCF type but service resource is with LSB type. should I use the same type for all?
Env:
node1 & 2: redhat7.2.Beta, pacemaker-1.1.12-22*, pacemasker-*,
corosync-2.3.4-4*, corosync_*
shared storage: Openfiler