Db2 High Availability Instance Configuration Utility (db2haicu) input file XML schema definition
The Db2® high availability instance configuration utility (db2haicu) input file XML schema definition (XSD) defines the cluster domain objects that you can specify in a db2haicu XML input file. This db2haicu XSD is located in the file called db2ha.xsd in the sqllib/samples/ha/xml directory.
DB2ClusterType
The root element of the db2haicu XML
schema definition (XSD) is DB2Cluster, which is of
type DB2ClusterType. A db2haicu XML
input file must begin with a DB2Cluster element.
XML schema definition
<xs:complexType name='DB2ClusterType'>
<xs:sequence>
<xs:element name='DB2ClusterTemplate'
type='DB2ClusterTemplateType'
minOccurs='0'
maxOccurs='unbounded'/>
<xs:element name='ClusterDomain'
type='ClusterDomainType'
maxOccurs='unbounded'/>
<xs:element name='FailoverPolicy'
type='FailoverPolicyType'
minOccurs='0'/>
<xs:element name='DB2PartitionSet'
type='DB2PartitionSetType'
minOccurs='0'
maxOccurs='unbounded'/>
<xs:element name='HADRDBSet'
type='HADRDBType'
minOccurs='0'
maxOccurs='unbounded'/>
<xs:element name='HADBSet'
type='HADBType'
minOccurs='0'
maxOccurs='unbounded'/>
</xs:sequence>
<xs:attribute name='clusterManagerName' type='xs:string' use='optional'/>
</xs:complexType>
Subelements
- DB2ClusterTemplate
-
- Type:
DB2ClusterTemplateType- Usage notes:
- Do not include a
DB2ClusterTemplateTypeelement in your db2haicu XML input file. TheDB2ClusterTemplateTypeelement is currently reserved for future use.
- ClusterDomain
-
- Type:
ClusterDomainTypeA
ClusterDomainTypeelement contains specifications about: the machines or computers in the cluster domain (also called cluster domain nodes); the network equivalencies (groups of networks that can fail over for one another); and the quorum device (tie-breaking mechanism).- Occurrence rules:
- You must include one or more
ClusterDomainelement in yourDB2ClusterTypeelement.
- FailoverPolicy
-
- Type:
FailoverPolicyTypeA
FailoverPolicyTypeelement specifies the failover policy that the cluster manager should use with the cluster domain.- Occurrence rules:
- You can include zero or one
FailoverPolicyelement in yourDB2ClusterTypeelement.
- DB2PartitionSet
-
- Type:
DB2PartitionSetTypeA
DB2PartitionSetTypeelement contains information about database partitions. TheDB2PartitionSetTypeelement is only applicable in a partitioned database environment.- Occurrence rules:
- You can include zero or more
DB2PartitionSetelements in yourDB2ClusterTypeelement, according to the db2haicu db2haicu XML schema definition.
- HADRDBSet
-
- Type:
HADRDBTypeA
HADRDBTypeelement contains a list of High Availability Disaster Recovery (HADR) primary and standby database pairs.- Occurrence rules:
- You can include zero or more
HADRDBSetelements in yourDB2ClusterTypeelement, according to the db2haicu db2haicu XML schema definition. - Usage notes:
- You must not include
HADRDBSetin a partitioned database environment. - If you include
HADRDBSet, then you must specify a failover policy ofHADRFailoverin theFailoverPolicyelement.
- You must not include
- HADBSet
-
- Type:
HADBTypeA
HADBTypeelement contains a list of databases to include in the cluster domain, and to make highly available.- Occurrence rules:
- You can include zero or more
HADBSetelements in yourDB2ClusterTypeelement, according to the db2haicu db2haicu XML schema definition.
Attributes
- clusterManagerName (optional)
- The
clusterManagerNameattribute specifies the cluster manager.Valid values for this attribute are specified in the following table:
Table 1. Valid values for the clusterManagerattributeclusterManagerNamevalueCluster manager product TSA IBM Tivoli System Automation for Multiplatforms (SA MP)
Usage notes
In a single partition database environment, you will usually only create a single cluster domain for each database manager instance.
- Set the
FailoverPolicyelement toMutual - In the
DB2Partitionsubelement ofDB2PartitionSet, use theMutualPairelement to specify two cluster domain nodes that are in a single cluster domain