Previous  |  Next  >  
Product: Cluster Server Guides   
Manual: Cluster Server 4.1 User's Guide   

Adding Resources

  To add a resource


hares -add resource resource_type service_group

This command creates a new resource, resource, which must be a unique name throughout the cluster, regardless of where it resides physically or in which service group it is placed. The resource type is resource_type, which must be defined in the configuration language. The resource belongs to the group service_group.

When new resources are created, all non-static attributes of the resource's type, plus their default values, are copied to the new resource. Three attributes are also created by the system and added to the resource:

  • Critical (default = 1). If the resource or any of its children faults while online, the entire service group is marked faulted and failover occurs.
  • AutoStart (default = 1). If the resource is set to AutoStart, it is brought online in response to a service group command. All resources designated as AutoStart=1 must be online for the service group to be considered online. (This attribute is unrelated to AutoStart attributes for service groups.)
  • Enabled. If the resource is set to Enabled, the agent for the resource's type manages the resource. The default is 1 for resources defined in the configuration file main.cf,
    0 for resources added on the command line.

  • Note   Note    Adding resources on the command line requires several steps, and the agent must be prevented from managing the resource until the steps are completed. For resources defined in the configuration file, the steps are completed before the agent is started.

 ^ Return to Top Previous  |  Next  >  
Product: Cluster Server Guides  
Manual: Cluster Server 4.1 User's Guide  
VERITAS Software Corporation
www.veritas.com