1833051 Members
2582 Online
110049 Solutions
New Discussion

confused on cmapply

 
Lakshmikanth Baddam
Frequent Advisor

confused on cmapply

i am have used cmapplyconf -C test.ascii

it added nodes to the cluster. now i have 1 Q i did not create pkg's yet can i create now and need to do cmapplyconf -p pkg.conf again or just need to copy the file's to the other node..



5 REPLIES 5
IT_2007
Honored Contributor

Re: confused on cmapply

Create packages with all necessary config and control file information and then run cmapplyconf.

You can create a template for a package using /usr/sbin/cmmakepkg and edit it with vi.
IT_2007
Honored Contributor

Re: confused on cmapply

see examples from man cmmakepkg

cmmakepkg -p /etc/cmcluster/pkg1/pkg1.config
cmmakepkg -p /etc/cmcluster/pkg2/pkg2.config
cmmakepkg -s /etc/cmcluster/pkg1/pkg1.control.script
cmmakepkg -s /etc/cmcluster/pkg2/pkg2.control.script
Lakshmikanth Baddam
Frequent Advisor

Re: confused on cmapply

yeah i have created that

test.conf and test.sh

i added the pkg name in the .conf file...and do i need to change any other things here in .sh file.. and .conf file. before doing cmapply

IT_2007
Honored Contributor

Re: confused on cmapply

If you already put required information for package in both files then compile it with cmapplyconf

cmapplyconf -P test1.ascii
Stephen Doud
Honored Contributor

Re: confused on cmapply

You can add packages to the cluster at any time, assuming all member nodes are reachable.

As described previously, a package is composed of at least a package configuration file, and a control script.

The configuration file must be customized, and is used to load the cluster binary file (cmclconfig) with information on how to administer the package.

To be useful, the control script must be customized to operate the system resources and business applications, much like a run level script.

When cmapplyconf is performed, Serviceguard checks whether the package control script exists in the same directory on every NODE_NAME referenced in the package configuration file. Serviceguard does not inspect the content of the package control script, thus, it is not referenced in the cmapplyconf command.
You may change the content of the package control script without need to perform cmapplyconf on it. Be careful to duplicate the file to the other NODE_NAME systems.

All this basic information is documented in the "Managing Serviceguard" manual, located at:
http://docs.hp.com/en/ha.html#Serviceguard