Modifying service group attributes

To modify a service group attribute

hagrp -modify service_group attribute value [-sys system]

The variable value represents:

system_name1 priority system_name2 priority2

If the attribute being modified has local scope, you must specify the system on which to modify the attribute, except when modifying the attribute on the system from which you run the command.

For example, to populate the system list of service group groupx with Systems A and B, type:

hagrp -modify groupx SystemList -add SystemA 1 SystemB 2

Similarly, to populate the AutoStartList attribute of a service group, type:

hagrp -modify groupx AutoStartList SystemA SystemB

You may also define a service group as parallel. To set the Parallel attribute to 1, type the following command. (Note that the default for this attribute is 0, which designates the service group as a failover group.):

hagrp -modify groupx Parallel 1

This attribute cannot be modified if resources have already been added to the service group.

You can modify the attributes SystemList, AutoStartList, and Parallel only by using the command hagrp -modify. You cannot modify attributes created by the system, such as the state of the service group.

About modifying the SystemList attribute

When using the hagrp -modify command ot change a service group's existing system list, you can use the options -modify, -add, -update, -delete, or -delete -keys.

For example, suppose you originally defined the SystemList of service group groupx as SystemA and SystemB. Then after the cluster was brought up you added a new system to the list:

hagrp -modify groupx SystemList -add SystemC 3

You must take the service group offline on the system being modified.

When you add a system to a service group's system list, the system must have been previously added to the cluster. When using the command line, you can use the hasys -add command.

When you delete a system from a service group's system list, the service group must not be online on the system to be deleted.

If you attempt to change a service group's existing system list using hagrp -modify without other options (such as -add or -update) the command fails.