03 ASCII-based Cluster Configuration PDF
03 ASCII-based Cluster Configuration PDF
Enhancement: ASCII-based
Well defined and well documented XML Configuration File structure using a Document Type Definition and an XML Schema Will allow configuration data for all features, not just ones handled by OLPW Defined paths from one configuration format to another Updated tools that produce an XML configuration file that will pass validation in XML editors
June-August 2005 | Teach The Trainer (T3)
HACMP 5.3
Challenges
Customers need an easy way to modify cluster configurations and apply to many clusters Previously, users were told not to create their own XML cluster configuration files or edit existing ones, except with OLPW XML files generated by OLPW and Export Definition File for Online Planning Worksheets with the embedded Document Type Definition (DTD) configuration do not pass validation in XML editors without effort by the user
June-August 2005 | Teach The Trainer (T3)
HACMP 5.3
Challenges (Cont)
The data stored in HACMP cluster snapshots cannot be easily used by OLPW or cl_opsconfig cl_opsconfig does not perform extensive validation resulting in users getting error messages they may not understand
June-August 2005 | Teach The Trainer (T3)
HACMP 5.3
Terminology
XML eXtensible Markup Language DTD Document Type Definition. It defines the document structure with a list of legal elements
June-August 2005 | Teach a Trainer (T3) XML Namespace Provides Themethod to avoid element name conflicts
XML Schema an XML based alternative to DTD that describes the structure of an XML document
HACMP 5.3
Terminology
OLPW Online Planning Worksheets. Also known as Cluster Worksheets OLPW Worksheet an XML file containing a cluster configuration. This file is created by OLPW and by the cl_exportdefinition utility
June-August 2005 | Teach The Trainer (T3)
cl_opsconfig The cluster utility used by OLPW that takes an OLPW Worksheet file and configures an HACMP cluster based upon the information contained. This feature will update it to also take ASCII-based cluster configuration files created by a user cl_exportdefinition The cluster utility that creates an OLPW Worksheet file from an existing HACMP cluster. This feature will update it to create the XML file from an existing cluster snapshot
HACMP 5.3 Train The Trainer: ASCII-based Cluster Configuration
2005 IBM Corporation
HACMP 5.3
5 Required Child elements for <CONFIG>. Each of these have their own required elements:
<VERSION> June-August <CLUSTER> <NODES> <NETWORKS> <INTERFACES>
2005 | Teach The Trainer (T3)
HACMP 5.3
<xs:sequence> <xs:element name="CLUSTERNAME" type="name32"></xs:element> <xs:element name="AUTHOR" type="xs:string" June-August 2005 | Teach The Trainer (T3) minOccurs="0"></xs:element> <xs:element name="COMPANY" type="xs:string" minOccurs="0"></xs:element> <xs:element name="DATE" type="xs:string" minOccurs="0"></xs:element> <xs:element name="NOTES" type="xs:string" minOccurs="0"></xs:element> <xs:sequence>
<xs:complexType>
<xs:element>
HACMP 5.3
Solution: SMITs
A new SMIT panel will allow the user to convert an existing snapshot to and XML Configuration file for use by OLPW or an XML editor cl_exportdefinition will do the conversion
-> Extended Configuration -> Snapshot Configuration -> Convert Existing Snapshot For Online Planning Worksheets
Convert Existing Snapshot for Online Planning Worksheets Type or select values in entry fields. Press Enter AFTER making all desired changes. Cluster Snapshot Name * File Name Description [Entry Fields] cluster_snapshot [/var/hacmp/log/cluster.haw] [Cluster snapshot 06/07/2006]
June-August 2005 | Teach The Trainer (T3)
HACMP 5.3
HACMP Cluster
diff
Differences File
Convert Existing Snapshot for OLPW Old Snapshot file XML File
HACMP 5.3
XML File
HACMP Cluster
HACMP 5.3 Train The Trainer: ASCII-based Cluster Configuration
2005 IBM Corporation
HACMP 5.3
HACMP 5.3
Limitations
Custom Snapshot Methods
Information gathered by custom snapshot methods will not be included when converting a Cluster Snapshot to an XML file
In XML files, the use of shorthand beginning and ending tags for elements with June-August 2005 | Teach The Trainer (T3) no data, such as <COMPANY/>, is not allowed. Both the beginning and ending tags must be used, for example <COMPANY></COMPANY> OLPW does not use the provided XML Schema to validate the configuration file, but rather uses its own internal validation code
HACMP 5.3
Troubleshooting
No new log files were added as part of this feature Existing debug options for cl_opsconfig will help
cl_opsconfig can be run with debug flags turned on. Each key will display the debug information for a different cl_opsconfig operation cl_opsconfig dkey1[,,keyn] filename cl_opsconfig can also | be runTrainer (T3) test flag that wont configure the June-August 2005 Teach The with the cluster, but will instead display the commands used to configure the cluster cl_opsconfig -t filename
cl_opsconfig will only validate documents if Java and OLPW is installed on the cluster node
XML configuration files should be validated using OLPW installed on a laptop or workstation or have an XML editor validate it using the provided XML Schema
HACMP 5.3 Train The Trainer: ASCII-based Cluster Configuration
2005 IBM Corporation
Summary
Simplifies the process of creating and saving cluster definition files Provides multiple options for creation of a cluster definition file Allows creation, modification, and manual editing of a cluster June-August 2005 | Teach The Trainer (T3) configuration file using any XML editor Converts an HACMP snapshot into an XML cluster definition file Automated management of cluster definition files reduces administration and maintenance time
HACMP 5.3
10