[Linux-ha-dev] OCF RA for rsync daemon Active-Passive setup
dejanmm at fastmail.fm
Tue Oct 31 04:12:00 MST 2006
On Mon, Oct 30, 2006 at 06:03:10PM +0100, Lars Marowsky-Bree wrote:
> On 2006-10-27T08:39:52, Oza Dhairesh <odhairesh at novell.com> wrote:
> Hi Oza,
> > Lars, David, Thomas thanks a lot for the comments. I was under the
> > naive impression that only 1 instance of rsync daemon can be started!
> > Lars' comment on other users being able to start it if port is greater
> > that 1024 made me see my error.
> Not just that, but you could run several on the same port but bound to
> different IPs as well.
> > If the PID file is mentioned in the config file, I can pick it up from
> > there. But what should I do in case it is not mentioned?
> > a) edit the conf file in the RA script to add an entry (In which case,
> > on stopping I have to remove this line also)
> > b) don't edit the conf file, but create a pid file in the script, like
> > I did here, but the pid file can be unique by using
> > $OCF_RESOURCE_INSTANCE. (as Lars mentioned this is likely to break)
> > c) refuse to start and print an error stating that PID file entry is
> > mandatory for the RA to work. (also check this in validate-all)
> > Any suggestions on this?
> I think a) or c) is the best option. I don't really have a strong
> opinion on either. c) is less work for you ;-)
I think that a) leads to an unmanageable configuration file. It
would be partly user and partly computer edited. There's no
guarantee that user won't restore the previous version while the
cluster is running. It's better to make them fix it themselves.
> > Here I should check if these values are set, and if they aren't
> > correct, then it should return error no? So this it should be:
> Right. I was wrong on this one and misparsed. Sorry about that.
> Lars Marowsky-Br?e
> High Availability & Clustering
> SUSE Labs, Research and Development
> SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin
> "Ignorance more frequently begets confidence than does knowledge"
> Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> Home Page: http://linux-ha.org/
More information about the Linux-HA-Dev