1826219 Members
2983 Online
109691 Solutions
New Discussion

Cluster creation.

 
santtarius
New Member

Cluster creation.

Hi,

We have a clarification on cluster creation using HP MC/Serviceguard. We have two application APP1 and APP2 to be deployed on same host. First application APP1 will create cluster on the host first and later second application APP2 want to create cluster on same host. Currently what we are doing is :

#1. Halt cluster.
#2. Delete existing cluster.
#3. Append the cluster configuration file (.conf) so that it contains both application details.
#4. Recreate cluster.

In this approach ,when APP2 is deployed the existing cluster is deleted. Hence it will affect the APP1. So instead of deleting and recreating the cluster, is it possible to add/create cluster for APP2 when the cluster of first application(APP1) is up and running.


Regards
Shan
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Cluster creation.

Shalom Shan,

It is possible to migrate the cluster hot.

Make changes to the cluster configuration as needed.

Make changes to package configuration as needed.

Then:

cmcheckconf
cmapplyconf

You may have to go through a brief application outage.

No need to Delete the existing cluster.

I'd try this in a lab before doing it in production.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
P Arumugavel
Respected Contributor

Re: Cluster creation.

hi,

It is possible to create a new package and add it to the cluster configuration while the cluster is up and while other packages are running. The number of packages you can add is subject to the value of MAX_CONFIGURED_PACKAGES as defined in the cluster-wide ASCII file.

Normal package creation:
#cmmakepkg â v -p pkgB.conf and edit as usual
#cmmakepkg â v -s pkgB.cntl and edit as usual
#chmod +x pkgB.cntl
#rcp pkgB.cntl node2:/etc/cmcluster/pkgB/pkgB.cntl

Apply the new package:
#cmcheckconf -v -P pkgB.conf
#cmapplyconf -v -P pkgB.conf
#cmmodpkg -v -e pkgB

Ensure that you do not specify the cluster name when verifying and distributing the configuration.

Remember to copy the control script to the /etc/cmcluster/pkg_name directory on all
nodes that can run the package.

Rgds...