[Linux-ha-dev] OCF RA for rsync daemon Active-Passive setup
Lars Marowsky-Bree
lmb at suse.de
Mon Oct 30 10:03:10 MST 2006
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 ;-)
> 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.
Sincerely,
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"
More information about the Linux-HA-Dev
mailing list