Log in to the Linux node where the exp2chef.pl was copied in section ’Environment Preparation’.

Specify the cluster configuration XML file as an argument, and run the exp2chef.pl script.

~/Chef/exp2chef.pl <Cluster information XML file>

Example: The Cluster information XML file is ~/Chef/resource.xml

$ ~/Chef/exp2chef.pl ~/Chef/resource.xml

When this script is run, two attribute files are generated in the same directory as the input XML file. One for the LifeKeeper communication paths and one for the LifeKeeper resource hierarchies.

The output file names generated by exp2chef.pl use the input xml file name minus the xml extension (resource.xml minus the xml extension results in the base name ‘resource’ for the output scripts). The base name and the attribute file extension ‘rb’ are combined with the attribute file type, comm for the LifeKeeper communication paths and ‘res’ for the LifeKeeper resource hierarchies to produce the names of the individual attribute files (e.g. base_name + attribute_file_type + attribute_file_extesion).

Examples:

Cluster information XML file … resource.xml

Attribute file for communication paths … resource.comm.rb

Attribute file for resource hierarchies … resource.res.rb

Below are examples of the attribute conversion output files.

Attribute file for communication paths:

Attribute file for resource hierarchies:

Feedback

Thanks for your feedback.

Post your comment on this topic.

Post Comment