[Linux-HA] advice on configuration
George H
george.dma at gmail.com
Mon Jan 15 04:21:15 MST 2007
> There is no reason at all to do that. Heartbeat supports 4 kinds of
> resource agents:
> OCF (preferred)
> heartbeat1 (obsolescent)
> LSB (/etc/init.d)
>
> This is discussed extensively on the web site, and in my tutorial in the
> HeartbeatTutorials directory.
I'll download all the tutorial pdf/slides from
http://www.linux-ha.org/HeartbeatTutorials
to see where I can add more resources there instead of doing what I did.
> > Heartbeat 2.0.7 came with apache 1 start up script but not apache2.
>
> It starts apache2 for me.
With me it would give out all these errors which looked like it was
trying to start apache1. Could this be distro related? I installed
heartbeat 2.0.7 from Gentoo Linux.
> > There are tons of others like ldirectord even.
> >
> > Another thing, if you are like me and have postfix installed as the
> > mailserver, the MailTo script that comes with heartbeat won't work. I
> > googled my butt off to see if anyone had the same problem but no luck.
> > I had to edit it like so for it to work:
> >
> > cd /usr/lib/ocf/resource.d/heartbeat
> > vi MailTo
> > ----
> > MailProgram() {
> > echo -e
> > "Subject:$1<nFrom:Heartbeat<heartbeat at mycluster.net>\nTo:$email"
> > | sendmail root at mycluster.net
> > return $?
>
> I use postfix. It works for me.
If it works for you and not for me then something's wrong on my end.
When I try to use it I get a syntax error occuring and the mail
doesn't get sent. At first it couldn't find the actual sendmail
binary, I had to create a symlink with the same name, but that only
gave me syntax errors.
I'll try to re-produce the errors I get with the mailTo script and
post em here (or on a seperate thread with the appropriate topic)
showing what MTA I use and the config settings ...etc.
I noticed you put several scripts for using rsync to be aware of the
primary/slave status of heartbeat and invoke rsync. Thats pretty
helpful, I don't know why I couldn't find it on the website, I found
it in the /usr/share/doc/heartbeat-2.0.7 dir. Perhaps I couldn't find
it on the site, but either way that stuff is a great help.
--
"Nothing is impossible for the person that doesn't have to do it"
"The probability of anything happening is in inverse ratio to its desirability"
"If I were a roman statue, I'd be made alabastard"
--
George H
george.dma at gmail.com
More information about the Linux-HA
mailing list