LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 11-10-2015, 05:02 PM   #1
mooasun
LQ Newbie
 
Registered: Jul 2015
Posts: 3

Rep: Reputation: Disabled
RHEL7 Cluster:Can't connect to the clustered service with virtual IP(IPADDR2 resource


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
 
Old 11-12-2015, 11:37 AM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
First, please use code tags

Did you set up stonith? Did you set up any constraints?

What does the following show

Code:
pcs status
 
Old 11-16-2015, 06:42 PM   #3
mooasun
LQ Newbie
 
Registered: Jul 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
I added the followings after I create the cluster:
>pcs cluster start --all
>pcs constraint order start ccVirtualIP then start ccClusterSvc
>pcs property set stonith-enabled=false
>pcs property set no-quorum-policy=ignore
>pcs resource defaults migration-threshold=1
>pcs resource restart ccClusterSvc

Q1: where are these information saved to? I think they must be saved for cluster manager.
Q2: I am expecting it uses "ccVirtualIP" instead of each node's host name(IP Address) to connect(or start or run)
the service "ccClusterSvc".
what could be missing to make it work? when I installed my application(ccClusterSvc) on each node it uses its
host name for URL but I replaced it with "ccVirtualIP" as shown bellow example(one example at the end of this reply)


[root@rh7ha1 ~]# pcs status
Cluster name: rhcluster
Last updated: Mon Nov 16 16:04:37 2015
Last change: Mon Nov 16 15:49:34 2015
Stack: corosync
Current DC: rh7ha2 (2) - partition with quorum
Version: 1.1.12-a14efad
2 Nodes configured
4 Resources configured


Online: [ rh7ha1 rh7ha2 ]

Full list of resources:

Resource Group: ccResourceGroup
cc_lvm (ocf::heartbeat:LVM): Started rh7ha2
cc_fs (ocf::heartbeat:Filesystem): Started rh7ha2
ccVirtualIP (ocf::heartbeat:IPaddr2): Started rh7ha2
ccClusterSvc (lsb:CompliantEnterpriseServer): Stopped

Failed actions:
ccClusterSvc_start_0 on rh7ha1 'unknown error' (1): call=36, status=complete, exit-reason='none', last-rc-change='Mon Nov 16 15:37:15 2015', queued=0ms, exec=80ms
ccClusterSvc_start_0 on rh7ha2 'unknown error' (1): call=36, status=complete, exit-reason='none', last-rc-change='Mon Nov 16 15:49:40 2015', queued=0ms, exec=86ms


PCSD Status:
rh7ha1: Online
rh7ha2: Online

Daemon Status:
corosync: active/enabled
pacemaker: active/enabled
pcsd: active/enabled

--------------------------
ccClusterSvc config file
---------------------------
<Parameter name="ComponentName" value="ccVirtualIP_mgmt"/>
<Parameter name="Location" value="https://ccVirtualIP:443/mgmt"/>
<Parameter name="DMSLocation" value="https://ccVirtualIP:8443/dms"/>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL7 HA Cluster rzg51 Linux - Server 1 09-17-2015 08:23 PM
Unable to start IP Virtual in a service on Red Hat Cluster 6.1 molinapablo2004 Linux - Server 1 04-27-2012 05:14 AM
Resource execution sequence within a service in cluster.conf srithi Linux - Newbie 0 07-11-2010 06:48 PM
What would make the best clustered file system for a website cluster?? helptonewbie Linux - Newbie 0 07-21-2008 01:52 AM
LXer: Tips and tricks: How do I create a clustered virtual service for my Xen guest u LXer Syndicated Linux News 0 01-08-2008 04:30 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 12:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration