07-05-2015 04:47 AM
Hi Guys,
I configured VCS Clustered on single node and my requirement if resaouce going offline or terminated VCS should try to online it.
i set the resfault file but no luck please help.
Solved! Go to Solution.
07-05-2015 08:11 AM
Hi,
In case of unexpected offline/fault/termination of resource, there are 2 ways to restart.
Type level attribute RestartLimit defines whether VCS attempts to restart a failed resource before informing of the fault. If the RestartLimit attribute is set to a non-zero value, the agent attempts to restart the resource before declaring the resource as faulted.
This is very useful if user is skeptical about particular type of resources. Set this attribute at Type level and all resources of that type will restarted. With this feature, only faulted resource is restarted. Service Group and other dependent/independent resources aren’t affected.
E.g.
type.cf snippet...
type Application (
.
.
static int RestartLimit = 3
.
.
)
hatype command...
# hatype -display Application -attribute RestartLimit
#Type Attribute Value
Application RestartLimit 3
In above example, all the Application resources will be retried atleast thrice in case of unexpected offline/fault/termination.
Service Group level attribute OnlineRetryLimit allows a service group to be brought online again on the same system if a non-persistent resource in the service group faults. If, for some reason, the service group cannot be restarted, the VCS engine repeatedly tries to bring the service group online till the number of attempts that are specified by OnlineRetryLimit expires.
This is very useful if user is skeptical about particular Service Group. With this feature, entire Service Group is restarted. Thus, its useful if user wants service group to be restarted while faulted resource is restarted.
main.cf snippet...
group test_sg (
.
.
OnlineRetryLimit = 5
.
.
)
hagrp command...
# hagrp -modify test_sg OnlineRetryLimit 5
# hagrp -display test_sg -attribute OnlineRetryLimit
#Group Attribute System Value
test_sg OnlineRetryLimit localclus 5
In the above example, test_sg service group will be retried atleast 5 times if any of its resource faults.
Thanks & Regards,
Sunil Y
07-05-2015 08:11 AM
Hi,
In case of unexpected offline/fault/termination of resource, there are 2 ways to restart.
Type level attribute RestartLimit defines whether VCS attempts to restart a failed resource before informing of the fault. If the RestartLimit attribute is set to a non-zero value, the agent attempts to restart the resource before declaring the resource as faulted.
This is very useful if user is skeptical about particular type of resources. Set this attribute at Type level and all resources of that type will restarted. With this feature, only faulted resource is restarted. Service Group and other dependent/independent resources aren’t affected.
E.g.
type.cf snippet...
type Application (
.
.
static int RestartLimit = 3
.
.
)
hatype command...
# hatype -display Application -attribute RestartLimit
#Type Attribute Value
Application RestartLimit 3
In above example, all the Application resources will be retried atleast thrice in case of unexpected offline/fault/termination.
Service Group level attribute OnlineRetryLimit allows a service group to be brought online again on the same system if a non-persistent resource in the service group faults. If, for some reason, the service group cannot be restarted, the VCS engine repeatedly tries to bring the service group online till the number of attempts that are specified by OnlineRetryLimit expires.
This is very useful if user is skeptical about particular Service Group. With this feature, entire Service Group is restarted. Thus, its useful if user wants service group to be restarted while faulted resource is restarted.
main.cf snippet...
group test_sg (
.
.
OnlineRetryLimit = 5
.
.
)
hagrp command...
# hagrp -modify test_sg OnlineRetryLimit 5
# hagrp -display test_sg -attribute OnlineRetryLimit
#Group Attribute System Value
test_sg OnlineRetryLimit localclus 5
In the above example, test_sg service group will be retried atleast 5 times if any of its resource faults.
Thanks & Regards,
Sunil Y
07-06-2015 10:39 PM
Hi Sunil,
Thanks alots its work.
cheers
07-07-2015 01:59 AM
Please mark Sunil's post as the answer, not your own post.
Mike
07-07-2015 11:20 PM
Thanks for pointing that out :)
Regards,
Sunil Y
07-07-2015 11:22 PM
It’s my pleasure.
Thanks & Regards,
Sunil Y