1836611 Members
3754 Online
110102 Solutions
New Discussion

Re: Add a new package

 
maurizio_6
Occasional Contributor

Add a new package

Hi guys,

I would add a new package, on a cluster, without shutdown this, is it possible?
In the case of a new package, does the ascii and ctrl file are created automaticly?
May i modify the cluster.ascii file?
Is it possible to configure the new package only for one of the two cluster nodes?
How can i do this?

Best regards
6 REPLIES 6
melvyn burnard
Honored Contributor

Re: Add a new package

If the package will use a subnet that is already in the cluster, and the shared discs are available, this can be done online.
You need to create the package config and control files.
Read the Managing Servcieguard manual available at:
http://docs.hp.com/en/ha
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Sanjay_6
Honored Contributor

Re: Add a new package

Hi,

Some reconfiguration effors for a cluster can be done while the cluster is running. Check this link from hp docs site for what can be done with the cluster running.

http://docs.hp.com/en/B3936-90065/ch07s05.html

The package ascii and control files are not generated automatically. you need to create a template manually using the cmmakepkg command and then edit the template to put the custom information regarding your package, volume group , LV's IP's and that sort of stuff.. Check this link below on how to create package configuration.

http://docs.hp.com/en/B3936-90065/ch06s01.html

Hope this helps.

Regds
Geoff Wild
Honored Contributor

Re: Add a new package

Yes you can - as long as there is enough room in the cluster for more packages...

cmgetconf |grep MAX_CONFIGURED_PACKAGES

cmviewcl -l package |egrep "up|down" |wc

Follow step in "Managing ServiceGuard"...on docs.hp.com

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Stephen Doud
Honored Contributor

Re: Add a new package

A package can be added to the cluster while the cluster is running.

The package ASCII and ctlr file must be created manually (unless you use the latest version of Serviceguard Manager), available via http://software.hp.com

To make a package:
# mkdir /etc/cmcluster/
# cd /etc/cmcluster/
To make the package configuration file:
# cmmakepkg -p
To make the package control script:
# cmmakepkg -s

Edit the file, customizing it to your needs.
In this file, you will find NODE_NAME parameters. For each server that you want to be able to run the package, add a NODE_NAME entry.

Edit the adding VG's, LVOLs, mount points, relocatable IP and references to the application that you want the package to start (or stop) in the customer_defined_run_cmds (or customer_defined_halt_cmds) functions.

Copy these files to the adoptive nodes.

Apply the package to the cluster:
# cmapplyconf -P

See pg 271 of this document:
http://docs.hp.com/en/B3936-90095/B3936-90095.pdf for more detail.
Thomas J. Harrold
Trusted Contributor

Re: Add a new package

*Please* test your package, including failover, before going live. Next outage, re-test other cluster packages. I've seen many instances where "on-the-fly" changes seem to work...the typos/bugs aren't discovered until a failover occurs. (which is when you LEAST want to discover problems)

-tjh
I learn something new everyday. (usually because I break something new everyday)
Jayasuntar
Valued Contributor

Re: Add a new package

Dear Maurizio,

Adding the new package is allowed while cluster is running.

Please see the service gurd admin guide for details.


All the best

Jay