Operating System - HP-UX
1754917 Members
2899 Online
108827 Solutions
New Discussion юеВ

Define default node for a package

 
SOLVED
Go to solution
Jos├й Matos
New Member

Define default node for a package

Hi,

I want to be able to define a default node for a package so that when I issue a cmruncl, the packages start in specific nodes.

Example of actual configuration:
Node 1: No packages running;
Node 2: No packages running;
Node 3: No packages running;
Node 4: No packages running;
Packages not running: PackageA; PackageB; PackageC; PackageD;

Issue cmruncl:
Node 1: PackageA running; PackageB running; PackageC running; PackageD running;
Node 2: No packages running;
Node 3: No packages running;
Node 4: No packages running;
Packages not running: none

-------------------------
Example of WANTED configuration:
Node 1: No packages running;
Node 2: No packages running;
Node 3: No packages running;
Node 4: No packages running;
Packages not running: PackageA; PackageB; PackageC; PackageD;

Issue cmruncl:
Node 1: PackageA running;
Node 2: PackageB running;
Node 3: PackageC running;
Node 4: PackageD running;
Packages not running: none

-------------------------

I know that I can configure the cluster to do this type of distribution using the FAILOVER_POLICY (using MIN_PACKAGE_NODE instead of CONFIGURED_NODE) and NODE_NAME (specifying the node order), but I would like to know if there is a command like cmmodpkg or something to alter it without having to modify the package configuration.

If my only option is to alter the package configuration (change NONE_NAME, probably), can I do it with the package running or do I have to stop it?

Sorry for such a long question,
Jos├й Matos
3 REPLIES 3
Solution

Re: Define default node for a package

Jose,

Yes you'll need to reconfigure the package (I guess you could fiddle around with disabling node swithcing on packages before you start them, but you'd only have to re-enable all that after the package started to be sure you can filover)

You can change the order of nodes the packages start on while the package is up - see table 7-2 here:

http://docs.hp.com/en/B3936-90079/ch07s05.html#babcidhg

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Stephen Doud
Honored Contributor

Re: Define default node for a package

The package requires that you configure either MIN_PACKAGE_NODE or CONFIGURED_NODE, so your question is almost moot. However, you could configure AUTO_RUN to NO so that after starting the package, you can manually start packages on the nodes that you want them to run, but they would not automatically start.
Jos├й Matos
New Member

Re: Define default node for a package

Question answered.

Thanks for your help,
Jos├й