hagrp command - differences between disableresources/enableresources and -disable/enable
Created: 15 Aug 2012 | Updated: 18 Jan 2013 | 2 comments
This issue has been solved. See solution.
Hi,
I have installed a two node Veritas Cluster and I would like to know when to use the hagrp -disableresources <service_group>
and the hagrp -disable <service_group> commands?
I have noticed that the -disable option changes only the Enabled value of service group attributes and the -disableresources keeps
that value unattached and changes the Enabled value of the resources attributes.
Regards,
George
Discussion Filed Under:
Comments 2 Comments • Jump to latest comment
Firstly, you don't use either of these commands very often, you normally use hagrp -freeze and this effectively disables the service group on all nodes. Where you would use hagrp -disable is if you wanted to disable a service group on a particular system (as hagrp -freeze disables on all systems), but note if you want to disable all service groups on a particular system, you would use "hasys -freeze", so there are not many situation where you want to stop only a particular service group running on a particular node, so I have rarely used this.
hagrp -disable does not stop the monitor entry points running for the resources within the group and you may want to stop the monitor entry points running if what you are doing would cause errors for these monitor entry points. For instance supposing you were upgrading an application and as part of this you remove application binaries, then the agent may put errors in the log (by default every 5 mins) to say the agent binaries are missing, so here it would be better to run hagrp -disableresources to avoid these errors.
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
Below is the difference between some hagrp command options.
Hagrp –disable SG1:
hagrp -disableresources SG1 :
Hagrp – freeze [-persistent] service_group :
Hasys – freeze [-persistent] sys1 :
If a user doesnot want a SG to be brought online on a node he can use “hagrp -disable”. Along with this if he wants to stop the monitor EP for all the resources of the SG – “hagrp –disableresources” can be used.
Regards,
James
Would you like to reply?
Login or Register to post your comment.