[Linux-HA] how to config a 3+1 cluster .
Alan Robertson
alanr at unix.sh
Fri Aug 19 08:11:55 MDT 2005
Huang Mingyou wrote:
> hello,
> now I have another trouble. in our cluster the ip resources is not
> the private ip ,and the default route will depend on it. if the ip is
> release,the route will release.have some resources script to do
> route? in our test cluster, I add one command in the IPaddr2 shell
> script,but I think this is not a good idea.
You're right. That's not a good idea.
We don't have a default route resource agent. You could take the
command you added to IPaddr2, and then write your own resource agent
around this command.
If you want it to be an OCF resource agent (which I would suggest), then
you need to write these actions:
start save old route and set new one
stop restore old default route
monitor see if route is still there
metadata return information about this resource agent
The following are optional:
verify-all tell if parameters are all present and legal
status (status is required for LSB compliance)
can be the same action as monitor.
Return codes for error cases technically should
be slightly different.
Hope this helps.
--
Alan Robertson <alanr at unix.sh>
"Openness is the foundation and preservative of friendship... Let me
claim from you at all times your undisguised opinions." - William
Wilberforce
More information about the Linux-HA
mailing list