Operating System - HP-UX
1833178 Members
2768 Online
110051 Solutions
New Discussion

manual failover, init 3 to init 4

 
SOLVED
Go to solution
robert griffin_2
New Member

manual failover, init 3 to init 4

We have a manual failover procedure that requires us to manually move our failover server from init 3 to init 4. Does moving from init 3 to init 4 stop any running processes? Specifically the process is MQSeries. I'm wondering if MQSeries can be started in init 3 and keep running when moving to init4.

4 REPLIES 4
Peggy Fong
Respected Contributor
Solution

Re: manual failover, init 3 to init 4

Hi
Any processes started in init 3 will continue to run at higher levels (unless you put a kill script at the higher level which is not the way we usually do kill scripts).

When you go from init 3 to init 2 or init S then the Kill scripts in the lower levels will run. Check your script for MQ and see when it gets shutdown.
# ll -d /sbin/rc*.d/*MQ*
(or whatever the name of the script is and include the * before and after the name to get the scripts.

The startup script will have a "S" and the shutdown script will start with "K"

(e.g. /sbin/rc3.d/S900MQueue to bring up and /sbin/rc2.d/K100MQueu to come down and both would be linked from the same script in /sbin/init.d/MQueue)

HTH
Peggy Fong (back from a long vacation!

James R. Ferguson
Acclaimed Contributor

Re: manual failover, init 3 to init 4

Hi Robert:

When moving from a lower to a higher run ('init') level, start scripts in the /sbin/rc.d/ directories are executed for all levels transited, including the final level entered. When moving from a higher to a lower level, kill scripts are run for all levels transited, including the initial and final levels.

Hence, processes started at run level-3 persist as run level-4 is entered, but are killed as run level-4 is reduced to run level-3.

An excellent overview of the startup/shutdown process is contained in the white paper:

"HP-UX 10.X Startup and Configuration" :

http://docs.hp.com/hpux/onlinedocs/os/startup.pdf

...JRF...
Ravi_8
Honored Contributor

Re: manual failover, init 3 to init 4

Hi, robert
MQ series wouldn't be affected if u move from lower level to higher level or if u upgrade the OS level to higher level. since i am in the IBM's MQ series project, i will asure u this.
never give up
Thierry Poels_1
Honored Contributor

Re: manual failover, init 3 to init 4

Hi,
I think the magical answer has already been given, but anyway ....
When switching to a LOWER run level all /sbin/rc?.d/K-scripts for the relevant run level will be executed. No processes are stopped by default, this is strictly done bye the K-scripts.
good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.