LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-16-2013, 03:14 AM   #1
tripialos
Member
 
Registered: Apr 2012
Posts: 166

Rep: Reputation: Disabled
drbd - heartbeat (ha.d) error


hi guys

I have a problem here, i am breaking my head, any help would be much appreciated

I have installed "HA" on two small embedded boxes to manage drbd and samba services. My problem is that both servers are secondary/secondary (none becomes primary).

I searched around and found on my ha.d (ha-log) log on one of the servers the below error:

Quote:
heartbeat[2460]: 2013/04/16_16:02:37 ERROR: glib: Error sending packet: Operation not permitted
heartbeat[2460]: 2013/04/16_16:02:37 info: glib: euid=0 egid=0
heartbeat[2460]: 2013/04/16_16:02:37 ERROR: write_child: write failure on ping 192.168.0.1.: Operation not permitted

I googled around and found out that most people recommend that this
is caused by security permissions.

I checked and confirmed tha SElinux is disabled.
OS: CentOS 5.5 x86


Any ideas
 
Old 04-17-2013, 03:59 AM   #2
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361

Rep: Reputation: Disabled
I assume that you are talking about drbd when you say secondary/secondary? You have to run a command to tell that one of the nodes is the primary server. I don't have my documentation at hand, but if I remember well it was something like this:
Code:
drbdsetup /dev/drbd0 primary -o
Regarding to the heartbeat error, do you have a firewall that is blocking something?
 
Old 04-23-2013, 04:29 AM   #3
tripialos
Member
 
Registered: Apr 2012
Posts: 166

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Blue_Ice View Post
I assume that you are talking about drbd when you say secondary/secondary? You have to run a command to tell that one of the nodes is the primary server. I don't have my documentation at hand, but if I remember well it was something like this:
Code:
drbdsetup /dev/drbd0 primary -o
Regarding to the heartbeat error, do you have a firewall that is blocking something?
Hi Blue

Indeed i am talking about drbd however i am using HA (high availability services) in order to "automate" the procedure of which server will become primary.

I have both SELinux of and iptables stopped but i still received the same error which was very strange.


After digging around i noticed that in the file /etc/ha.d/haresources the one server did not include the word , smb which it actually starts samba service.

Once i added the smb on the second server and restarted the servers then they successfully got synchronized and one of the servers automatically became primary.
 
  


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
DRBD and Heartbeat baddah Linux - Software 0 07-06-2012 08:33 AM
DRBD and Heartbeat problem linuxexpress Linux - Newbie 1 05-14-2009 11:29 AM
drbd heartbeat saavik Linux - Networking 0 11-29-2005 09:56 AM
DRBD + heartbeat kridkom Linux - Software 2 04-13-2004 11:01 AM
drbd + heartbeat kridkom Linux - Networking 1 03-18-2004 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration