Tuesday 22 November 2011

Enable / Disable Node switching in service guard cluster: How to ??


Consider its a 2 node cluster. If package got failed in nodeA then it should start on nodeB automatically means we need to enable node switching on both the node and we should enable AUTO_RUN option also.
(package name : prodpkg , server name : nodeA and nodeB )
root# cmviewcl -v -p prodpkg

    PACKAGE        STATUS           STATE            AUTO_RUN    NODE
    prodpkg                 halt                   down               disabled       nodeA


    Node_Switching_Parameters:
      NODE_TYPE     STATUS       SWITCHING     NAME
      Primary              up            disabled          NODEA
      Alternate           up            disabled          NODEB


Note : Before enable node switching on both the node we should not enable AUTO_RUN.

#cmmodpkg -v -n nodeA -e prodpkg

#cmmodpkg -v -n nodeB -e prodpkg

Now on both the node package switching has enabled ..now u can start the package on primary node and then start the AUTO_RUN.



root# cmviewcl -v -p prodpkg

    PACKAGE        STATUS      STATE            AUTO_RUN    NODE
    prodpkg                  halt              down              disabled        nodeA


    Node_Switching_Parameters:
      NODE_TYPE    STATUS       SWITCHING    NAME
      Primary          up              enabled        NODEA
      Alternate       up               enabled        NODEB

Now we can start the package on nodeA and then we can enable the AUTO_RUN.

#cmrunpkg -v -n nodeA prodpkg

#cmmodpkg -e prodpkg


root# cmviewcl -v -p prodpkg

    PACKAGE        STATUS           STATE            AUTO_RUN    NODE
    prodpkg               halt              down                enabled       nodeA



    Node_Switching_Parameters:
      NODE_TYPE    STATUS       SWITCHING    NAME
      Primary                   up           enabled     NODEA
      Alternate                 up           enabled     NODEB

To disable the AUTO_RUN run the below command

#cmmodkg -d prodpkg

To disable package switching on one node

#cmmodpkg -v -n nodeB -d prodpkg


No comments:

Post a Comment