[Linux-HA] Stupid newbie problem... Any ideas? Anyone?

Mike Bernhardt bernhardt at bart.gov
Thu Dec 21 10:46:54 MST 2006


Here is the /var/log/messages output when I make the last resource on the
last line of haresources my script "dns-check" instead of one of the
included resource scripts. DNS check is a simple perl script I wrote that
takes the "start" and "stop" arguments to just test dns resolution and send
result to a remove syslog. But if I end the line in with MailTo, or now
SendArp, everything, including dns-check, works fine.

]ec 20 16:04:40 dnsserver-pri ResourceManager[18138]: info: Retrying failed
stop operation [dns-check
Dec 20 16:04:40 dnsserver-pri ResourceManager[18138]: ERROR: Cannot locate
resource script dns-check
Dec 20 16:04:40 dnsserver-pri ResourceManager[18138]: ERROR: Cannot locate
resource script dns-check
]ec 20 16:04:41 dnsserver-pri ResourceManager[18138]: info: Retrying failed
stop operation [dns-check
Dec 20 16:04:41 dnsserver-pri ResourceManager[18138]: ERROR: Cannot locate
resource script dns-check
Dec 20 16:04:41 dnsserver-pri ResourceManager[18138]: ERROR: Cannot locate
resource script dns-check
]ec 20 16:04:42 dnsserver-pri ResourceManager[18138]: info: Retrying failed
stop operation [dns-check
Dec 20 16:04:42 dnsserver-pri ResourceManager[18138]: ERROR: Cannot locate
resource script dns-check
Dec 20 16:04:42 dnsserver-pri ResourceManager[18138]: ERROR: Cannot locate
resource script dns-check
]ec 20 16:04:43 dnsserver-pri ResourceManager[18138]: info: Retrying failed
stop operation [dns-check
Dec 20 16:04:43 dnsserver-pri ResourceManager[18138]: ERROR: Cannot locate
resource script dns-check

> My heartbeat needs are simple: I have 2 servers which share an IP 
> provided by heartbeat, and I keep named running on the one with the active
IP.
> Everything works fine when the last line in haresources is this:
> dns-pri.domain.com   192.168.0.1 named MailTo::me at domain.com
> 
> where dns-pri is the normally active server and named refers to the 
> named startup script in /etc/init.d. I decided that I don't want to 
> email myself anymore, so I simply removed MailTo::me at domain.com from the
end of the line.
> When I do that, heartbeat says that it can't find named, and therefore 
> IpAddr doesn't take over either. If I remove named also, then IpAddr 
> complains about address formatting and it doesn't work. If I put back 
> the way it is above, then all is OK again.
> 
> What am I missing? Do I need some sort of line termination or what? 
> Also, Can someone clarify the purpose of the dns-pri.domain.com at the 
> beginning of that line? Is that the name of the group and can it be 
> anything, or am I correct that it is the name of the normally active 
> server? I am not using auto-fallback.
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 4382 bytes
Desc: not available
Url : http://lists.community.tummy.com/pipermail/linux-ha/attachments/20061221/22165944/winmail.bin


More information about the Linux-HA mailing list