Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)

Friday, July 18, 2014

Package Failover in MCSG + HPUX

Package Fail-over in MCSG.


There are several ways to perform a failover test. The most rigorous way is to shutdown the primary node and see if all packages fail over nicely to the other node. But most of the time we only want to check if all volume groups fail over correct with all their (perhaps newly) assigned luns. This kind of failover test is described below.

  1. Logon to the primary node, which owns the running package.

  1. Execute the following command to find the failover node and confirm the package you want to failover is running on the primary node.
# cmviewcl

3.   You could have a parallel session active to the same node and keep a watch on the package control log file, as you issue the cmhaltpkg command

# tail -f /etc/cmcluster//*.log | grep –i error

4. Halt the package which needs to be tested for failover

# cmhaltpkg –v

If there are no error messages reported in the package control log file, proceed..

5. Start the package on the failover node.

# cmrunpkg –n -v

we are using the –n option of the cmrunpkg command to be 100% sure that we are starting the package on the failover node.

6. Once the package has started on the failover node without any errors, /etc/lvmtab on both the primary and secondary node are in sync. If there do appear errors, try to solve them. Check the package log file or even the syslog for more information. Most of the time they are about missing luns or incorrect volume group information. If no errors were found or the errors are solved, please proceed with the next step.

7. Halt the package.

# cmhaltpkg –v
           
Check the log file if any errors messages are shown by the cmhaltpkg command. Do not try to start the package back on the primary node unless you have cleared the errors in step 7.

 8. Logon to the primary node and execute the following steps.

# cmrunpkg –n -v < pkgname >

If no error message reported by the cmrunpkg command, the startup was successful.

9.The package AUTORUN will be shown disabled. It should be enabled.

# cmviewcl

# cmmodpkg –e < pkgname >   


Thanks...
Kiran Jadhav

**Let's Share our knowledge and keep visiting here**

No comments:

Post a Comment