Operating System - HP-UX
1834163 Members
2705 Online
110064 Solutions
New Discussion

Re: How change HP service Guard Primary node into secondary node

 
Asif_8
Regular Advisor

How change HP service Guard Primary node into secondary node

Hi !

I have 2 node HP service Guard .. I want change primary node to secondary node and secondary to primary..
exp primary
expw secondary

expw primary
exp secondary
14 REPLIES 14
Turgay Cavdar
Honored Contributor

Re: How change HP service Guard Primary node into secondary node

In the package config file set the nodes as in the order you want the package to run:

node_name primary
node_name secondary

Then use cmcheckconf/cmapplyconf to apply the new config.

S.N.S
Valued Contributor

Re: How change HP service Guard Primary node into secondary node

Yes, make the changes to the package config file (under the package dir):

NODE_NAME first_priority_node
NODE_NAME second_priority_node

then:


cmcheckconf -v -P pkg1.ascii

After it passes the test; distribute the file

cmapplyconf -v -P pkg1.ascii

You may need to halt the package.

HTH
SNS
"Genius is 1% inspiration, 99% Perspiration" - Edison
SoorajCleris
Honored Contributor

Re: How change HP service Guard Primary node into secondary node

Hi ,

are you asking about running all the package in another node in running cluster?

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Doug O'Leary
Honored Contributor

Re: How change HP service Guard Primary node into secondary node

Hey;

As others have attempted to explain, the primary/secondary/tertiary/etc setting isn't at the cluster level, it's at the package level.

The system order on which packages run is determined by the NODE_NAME parameter in the package configuration file.

1. Shut the package down
2. Edit the configuration file, reorder as desired.
3. cmapplyconf -P ${pkg}.conf
4. cmrunpkg ${pkg}

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Asif_8
Regular Advisor

Re: How change HP service Guard Primary node into secondary node

thanks ..

now Cluster is running. and pkg is running secondary node .
I did following and got the error

1. cmhaltpkg -n hostname rmsexped
2.edit the pkg.conf file and distributed
3. cmapplyconf -p rmsexped.conf
"-p" option specified. Opening package reference file: rmsexped.conf.
cmapplyconf: Nonexistent package ascii file: PACKAGE_NAME rmsexped




.
R.O.
Esteemed Contributor

Re: How change HP service Guard Primary node into secondary node

Hi,

It is "-P" (capital)

Regards,
"When you look into an abyss, the abyss also looks into you"
Asif_8
Regular Advisor

Re: How change HP service Guard Primary node into secondary node

Now i got error
Unable to communicate with node rmsexp
please cmviewcl output attached
R.O.
Esteemed Contributor

Re: How change HP service Guard Primary node into secondary node

Hi,

The node "rmsexp" seems to be down. Have you tried to start it up?

# cmrunnode rmsexp

Regards,
"When you look into an abyss, the abyss also looks into you"
S.N.S
Valued Contributor

Re: How change HP service Guard Primary node into secondary node

Hi Asif,

Let us know what was done after the package was running successfully (you had posted that it was a success)

Give us the related errors from syslog...

For encouragement, kindly assign point to those who try to help you :-)

HTH
SNS

"Genius is 1% inspiration, 99% Perspiration" - Edison
Kapil Jha
Honored Contributor

Re: How change HP service Guard Primary node into secondary node

There is no concept of primary and secondary node from cluster point of view.

It comes in picture when u define package which server you want the package to run normally.
so you have to change in pgk.conf fiel and cmapply.

I don think you should halt the package for cosmetic reason, next time it would automatically take the new config.

BR,
Kapil+

I am in this small bowl, I wane see the real world......
S.N.S
Valued Contributor

Re: How change HP service Guard Primary node into secondary node

Hi Asif,

What finally happened?

Good,Bad or Ugly?


Do assign all with points, kindly

HTH
SNS
"Genius is 1% inspiration, 99% Perspiration" - Edison
S-M-S
Valued Contributor

Re: How change HP service Guard Primary node into secondary node

Hi Asif.

Lets try following steps.

1. Halt package and cluster
2. Login to expw
3. Edit package configuration file for changing the node sequence
4. cmcheckconf -P pkg conf file
5 cmapplyconf -P pkg conf file
6. Edit cluster configuration file inside /etc/cmcluster for node sequence and n/w interfaces
7. cd etc/cmcluster
8. cmcheckconf -C clusterconf file
9. cmapplyconf -C clusterconf file
10. cmviewcl
11 if everything is fine ftp both the configuration file to host exp
12. start package (cmrunpkg packagename) from expw
Abhijitkrao
New Member

Re: How change HP service Guard Primary node into secondary node

If your Serviceguard version is 11.19, it is not necessary to halt the package or the cluster.

Edit the package ascii file, basically
the NODE_NAME field in the order you want to run the package and do a cmcheckconf and cmapplyconf.
This would do.
Suraj K Sankari
Honored Contributor

Re: How change HP service Guard Primary node into secondary node

Hi,
If you satisfied with the answer and your problem got solved then please make a habit to assign points,
Those people who give there valuable time for your problem they should expect some apparition from you in terms of points.

To know how to assign points please go through the below link

http://forums13.itrc.hp.com/service/forums/helptips.do?admit=109447627+1256027208667+28353475#33

Thanks