1830899 Members
2847 Online
110017 Solutions
New Discussion

ServiceGuard command

 
SOLVED
Go to solution
RiclyLeRoy
Frequent Advisor

ServiceGuard command

I have 3 HP-UX server (server 1, 2, 3) with multiple Oracle packages (a,b,c,d,e,f,g,h,i) , how I decide on which server to run package? with cmrunpkg -n nodename package_name ?

There is configuration file where I can decide where to run specific pkg at boot?

If a package has configured 2 IP address and I need to delete one of two 2 ones in order to make it I have to change configutation file,  run cmhaltpkg package_name and cmrunpkg -n nodename package_name ?

3 REPLIES 3
Sush_S
HPE Pro

Re: ServiceGuard command

Hi RiclyLeRoy 

  • Starting Serviguard package
    When Serviceguard starts or when you explicitly start the package using the cmrunpkg command without specifying any node names, it looks at the "node_name" parameter in the package configuration file. If there are multiple node names listed, Serviceguard will attempt to start the package on the first node mentioned in the list.

If the first node name listed is not available or encounters an issue during startup, Serviceguard will try to start the package on the next available node specified in the list and so on.

But, if you specify a node name while running the cmrunpkg command it will override the "node_name" parameter specified in the package configuration file. The package will be started specifically on the node you have specified in the command.

  • Deleting IP address from the package
    To delete one of the two IP addresses configured for a package, you would need to make changes to the package's configuration file. After making the necessary modifications, you would typically follow these steps:
  1. Use the cmhaltpkg command to gracefully stop the package on the node where it is currently running.
  2. Edit the package's configuration file to remove the unwanted IP address and apply the configuration.
  3. Use the cmrunpkg -n <node_name> <package_name> command to start the package on the desired server.


Regards,

SUSH_S

 


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Amanda001
New Member
Solution

Re: ServiceGuard command

In ServiceGuard, the decision on which server to run a package can be controlled through package configuration and cluster configuration. Here are some guidelines:

Package Configuration: Each package has a configuration file (usually located in the /etc/cmcluster directory) that determines its behavior and dependencies. Within the package configuration file, you can specify the node affinity for the package using the CMrunNodeList parameter. For example, if you want package "a" to run on server 1, you can set CMrunNodeList="server1" in the package configuration.

Cluster Configuration: The cluster configuration file (/etc/cmcluster/cmclconfig) defines the overall behavior of the cluster. It includes information such as node definitions and package preferences. Within the cluster configuration, you can set package preferences using the CMpreference parameter. This allows you to define the preferred node or group of nodes for a package.

Regarding deleting an IP address for a package, you can follow these steps:

Modify the package configuration file (/etc/cmcluster/pkg_name).
Remove the IP address entry from the configuration file.
Save the changes to the configuration file.
Halt the package using cmhaltpkg package_name.
Start the package on the desired node using cmrunpkg -n nodename package_name.
It's important to note that making changes to ServiceGuard configurations requires careful consideration and understanding of your specific environment. It's recommended to consult the ServiceGuard documentation or seek assistance from experienced administrators to ensure proper configuration and operation of your cluster.

Sunitha_Mod
Honored Contributor

Re: ServiceGuard command

Hello @RiclyLeRoy,

Let us know if you were able to resolve the issue.

If you have no further query and you are satisfied with the answer then kindly mark the topic as Solved so that it is helpful for all community members.