Operating System - HP-UX
1833016 Members
2178 Online
110048 Solutions
New Discussion

Re: Switching of a package

 
SOLVED
Go to solution
UniRock
Regular Advisor

Switching of a package

Hello All,

Coming directly to the point..
Cluster (serviceguard 11.18) has 2 nodes (node1 and node2).

Package is running on node1.
Now, suppose for any reason, I want to switch/transfer/run the package to node2 but with following condition:
-Package should not be halted
-Node1 should be continue running

I know, if something happens to node1, the package will switch over to node2 without interruption (switching is enabled).

How can we achieve this manually?
I do not require this but just wanted to know.

Thanks
6 REPLIES 6
R.O.
Esteemed Contributor
Solution

Re: Switching of a package

Hi,

Package must be restarted, to release resources from one node (application, ip, VGs) and be available for the other node. VGs have exclusive activation, so they cannot be activated by two nodes at the same time and must be deactivated in one node before they can be activated by the 2nd node.

Regards,
"When you look into an abyss, the abyss also looks into you"
Michal Kapalka (mikap)
Honored Contributor

Re: Switching of a package

hi,

this is not possible, to make it without application downtime.

mikap
melvyn burnard
Honored Contributor

Re: Switching of a package

Now, suppose for any reason, I want to switch/transfer/run the package to node2 but with following condition:
-Package should not be halted
-

Well you cannot do that, the package must first be halted on node1, then started on node2.
Use either cmhaltpkg/cmrunpkg, or use the SGMGR Gui to do this.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
S.N.S
Valued Contributor

Re: Switching of a package

Hi Rock,

Hi,

I doubt that the package can be switched to the other node without the package being halted on 1st node.

From my understanding, if we run manually
cmrunpkg -n node2 package >> would (try to)run the SAME package =>
TWO instances of ORACLE (for example) -- corrupting the Database itself.

That is my logic! :-)

HTH
SNS
"Genius is 1% inspiration, 99% Perspiration" - Edison
UniRock
Regular Advisor

Re: Switching of a package

Thanks all..

That is what I wanted to clear.

@SNS
# cmrunpkg -n node2 package

I have already tried that, but got message something like "package already running on node1".

Have a great day !!
S.N.S
Valued Contributor

Re: Switching of a package

Hi (again),

The command wont work without halting the package :-) => not possible manually

(But, there is a way, of course cmruncl -n node2 >> and there you would get database CORRUPTION for a properly functional server & I wont try that out, normally!)

Danke,
SNS
"Genius is 1% inspiration, 99% Perspiration" - Edison