LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-20-2017, 05:55 AM   #1
chickenjoy
Member
 
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 239

Rep: Reputation: 30
RHEL7 cluster not failing over when the network link is down (cable unplugged)


Hi guys,

I created a 2 node cluster where in they share one vip. it is active standby setup. if I use 'ipdown' on the network interface card; the VIP and other clustered services will be moved to the other. This is what we want.

But we faced a problem when the NIC is up but we yank the network cable out or the network link is dropped for the active node; the VIP is not switched to the other and remains. Note that there is a 2nd network interface used as a dedicated heartbeat network between the two (10.0.0.1 and 10.0.0.2).

I found this page from rhel support but i wasn't able to get it to work:
https://access.redhat.com/solutions/2139231

Can you send me to a direction on where I can find a solution?
 
Old 08-21-2017, 07:18 AM   #2
chickenjoy
Member
 
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 239

Original Poster
Rep: Reputation: 30
So I found a guide online:

https://access.redhat.com/solutions/2049063

and it suggested to create a ethmonitor on both the nodes:

# pcs resource create eth1-monitor ethmonitor interface=eth1 --clone

and then create a constraint. I did this. but then all the other resources will not start...
 
Old 08-25-2017, 10:17 AM   #3
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
Had you implement fencing ?
Without fencing, cluster would not work well.
 
Old 08-27-2017, 03:05 AM   #4
chickenjoy
Member
 
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 239

Original Poster
Rep: Reputation: 30
Hi,

we found the solution: (ens33 is the data network interface)

# pcs resource create ens33-monitor ethmonitor interface=ens33 --clone
# pcs constraint location <cluster_group_name> rule score=-INFINITY ethmonitor-ens33 ne 1

we use the following command to simulate a link is down (not an interface is down).
ip link set ens33 down
 
Old 08-27-2017, 03:06 AM   #5
chickenjoy
Member
 
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 239

Original Poster
Rep: Reputation: 30
Hi,

we found the solution: (ens33 is the data network interface)

# pcs resource create ens33-monitor ethmonitor interface=ens33 --clone
# pcs constraint location <cluster_group_name> rule score=-INFINITY ethmonitor-ens33 ne 1

we use the following command to simulate a link is down (not an interface is down).
ip link set ens33 down
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
"Network Cable Unplugged" error message in XP after booting Knoppix NanakiXIII Linux - General 31 05-23-2008 06:21 PM
Linux router, windows network cable unplugged smOk3 Linux - Networking 5 05-02-2008 11:34 PM
Solaris 10 8/07 NOT booting to CDE when Network cable UNPLUGGED as400 Solaris / OpenSolaris 7 04-26-2008 08:39 AM
Windows box shows "Network cable unplugged" when hooked up to my Linux router drkstr Linux - Networking 5 10-03-2006 04:44 PM
Network Cable Unplugged on Windows Caused by Linux Redhat 9.0 nader_hos Linux - Networking 8 07-26-2006 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:02 PM.

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